From owner-freebsd-ports Sat Apr 27 15:50:19 2002 Delivered-To: freebsd-ports@freebsd.org Received: from dignus.com (sdsl-64-32-254-102.dsl.iad.megapath.net [64.32.254.102]) by hub.freebsd.org (Postfix) with ESMTP id B6F8737B400; Sat, 27 Apr 2002 15:49:45 -0700 (PDT) Received: from lakes.dignus.com (lakes.dignus.com [10.0.0.3]) by dignus.com (8.11.6/8.11.3) with ESMTP id g3RMjfA22761; Sat, 27 Apr 2002 18:45:41 -0400 (EDT) (envelope-from rivers@dignus.com) Received: (from rivers@localhost) by lakes.dignus.com (8.11.6/8.11.3) id g3RMlJS84696; Sat, 27 Apr 2002 18:47:19 -0400 (EDT) (envelope-from rivers) Date: Sat, 27 Apr 2002 18:47:19 -0400 (EDT) From: Thomas David Rivers Message-Id: <200204272247.g3RMlJS84696@lakes.dignus.com> To: kris@obsecurity.org, rivers@dignus.com Subject: Re: HEADS UP! XFree86 has been upgraded to 4.2.0 in 4.5-STABLE Cc: portmgr@FreeBSD.ORG, ports@FreeBSD.ORG, stable@FreeBSD.ORG In-Reply-To: <20020427140128.A89621@xor.obsecurity.org> Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Kris Kennaway wrote: > > On Sat, Apr 27, 2002 at 07:50:10AM -0400, Thomas David Rivers wrote: > > > Since this is a nontrivial change and the 4.6 release cycle is > > > just around the corner (code freeze: May 1), please test this > > > as much as possible and report any problems or unexpected > > > behaviour to ports@FreeBSD.org and portmgr@FreeBSD.org. > > > > > > > Several people have already reported this particular issue > > with XF86 4.2 (on FreeBSD 4.5-RELEASE). > > > > And - thus far, there is no resolution. > > > > When I install Netscape (ftp'd from ftp.netscape.org) and > > try and run it, I get: > > I've never seen that. I presume it would go away if you remove > your /usr/X11R6 installation and reinstall it, since this failure > is not there for clean installations -- it must be due to some > stale directory on your system which netscape is detecting, which > does not have any files in it. If you ktrace the netscape binary > you should be able to find where it's looking. > > Kris Ah! Excellent idea! And - by some lucky coincidence, I have more to report on the problem. I started to ktrace the netscape executable - when I thought I should be root to do this... And - surprise - surprise - as root - there is no problem. Well - I should say that netscape seems to start up as usual (it does give the message about XNLS - but doesn't dump core.) When I try to run netscape as a non-root user, I see the message about XNLS and then it dumps. So... let's worry about the locale problems first. It seems netscape opens & successfully reads the following locale related files: 84483 netscape NAMI "/usr/X11R6/lib/X11/locale/C/XI18N_OBJS" 84483 netscape NAMI "/usr/X11R6/lib/X11/locale/common/xlcDef.so.2" 84483 netscape NAMI "/usr/X11R6/lib/X11/locale/locale.alias" 84483 netscape NAMI "/usr/X11R6/lib/X11/locale/locale.dir" Netscape successfully opens /usr/X11R6/lib/X11/locale/common/xlcDef.so.2, then reads the first 32 bytes - getting an ELF header. It then declares that `C' locales are not supported. Here's the meaningful kdump info: 84483 netscape CALL stat(0xd24540,0xbfbfdef4) 84483 netscape NAMI "/usr/X11R6/lib/X11/locale/common/xlcDef.so.2" 84483 netscape RET stat 0 84483 netscape CALL open(0xd24540,0,0) 84483 netscape NAMI "/usr/X11R6/lib/X11/locale/common/xlcDef.so.2" 84483 netscape RET open 8 84483 netscape CALL read(0x8,0xbfbfded4,0x20) 84483 netscape GIO fd 8 read 32 bytes "\^?ELF\^A\^A\^A \0\0\0\0\0\0\0\0\^C\0\^C\0\^A\0\0\0`\a\0\0004\0\0\0" 84483 netscape RET read 32/0x20 84483 netscape CALL close(0x8) 84483 netscape RET close 0 84483 netscape CALL write(0x2,0xbfbfe1d0,0x24) 84483 netscape GIO fd 2 wrote 36 bytes "netscape: locale `C' not supported. " Could the problem be that there is a missing a.out-style shared library for xlcDef.so.2? Now - as to the second problem - Netscape just dumping core... After the close(0x8) you see above, Netscape does a socket() (i.e. fd #8 is now a socket.) (Which I'm guessing is the X11 socket - it could be that setting the DISPLAY to :0 avoids the core dump.) Netscape seems to do a writev() to that socket, and then immediately SIGSEGV: 84483 netscape GIO fd 8 read 32 bytes "\^A\^A\M-n\^O\0\0\0\0*\0\0\0\0\0\0\0\^E\0\f\0\0\0\0\0\v\0\0\0p\^PD\b" 84483 netscape RET read 32/0x20 84483 netscape CALL writev(0x8,0xbfbfe098,0x2) 84483 netscape GIO fd 8 wrote 2060 bytes ... lots of stuff (probably X11 packets) ... 84483 netscape RET writev 2060/0x80c 84483 netscape PSIG SIGSEGV caught handler=0x9052d0 mask=0x0 code=0x0 84483 netscape CALL getpid 84483 netscape RET getpid 84483/0x14a03 84483 netscape CALL kill(0x14a03,0xa) 84483 netscape PSIG SIGBUS SIG_DFL 84483 netscape NAMI "netscape.core" And - as I mentioned at the start - if I run Netscape as root, I don't get the SIGSEGV. - Dave Rivers - -- rivers@dignus.com Work: (919) 676-0847 Get your mainframe programming tools at http://www.dignus.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message