Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Aug 2006 10:09:45 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        John Baldwin <jhb@freebsd.org>
Cc:        amd64@freebsd.org
Subject:   Re: FINALLY! Re: linux32 breakage in current..
Message-ID:  <20060830170945.GA1156@troutmask.apl.washington.edu>
In-Reply-To: <200608291928.59024.jhb@freebsd.org>
References:  <200608151701.46724.jhb@freebsd.org> <20060828173520.GA911@troutmask.apl.washington.edu> <20060829223203.GA951@troutmask.apl.washington.edu> <200608291928.59024.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Aug 29, 2006 at 07:28:58PM -0400, John Baldwin wrote:
> 
> But when you add printf's linux_ipc() isn't being called?  *sigh*  Try
> this anyway:
> 
> Index: linux32_machdep.c
> ===================================================================
> RCS file: /host/cvs/usr/cvs/src/sys/amd64/linux32/linux32_machdep.c,v
> retrieving revision 1.17
> diff -u -r1.17 linux32_machdep.c

The printf is not triggered. :(  I did a ktrace of acroread.  kdump 
shows

   929 ktrace   CALL  execve(0x7fffffffe140,0x7fffffffe6a0,0x7fffffffe6b0)
   929 ktrace   NAMI  "/home/kargl/bin/acroread"
   929 ktrace   RET   execve -1 errno 2 No such file or directory
   929 ktrace   CALL  execve(0x7fffffffe140,0x7fffffffe6a0,0x7fffffffe6b0)
   929 ktrace   NAMI  "/sbin/acroread"
   929 ktrace   RET   execve -1 errno 2 No such file or directory
   929 ktrace   CALL  execve(0x7fffffffe140,0x7fffffffe6a0,0x7fffffffe6b0)
   929 ktrace   NAMI  "/usr/sbin/acroread"
   929 ktrace   RET   execve -1 errno 2 No such file or directory
   929 ktrace   CALL  execve(0x7fffffffe140,0x7fffffffe6a0,0x7fffffffe6b0)
   929 ktrace   NAMI  "/bin/acroread"
   929 ktrace   RET   execve -1 errno 2 No such file or directory
   929 ktrace   CALL  execve(0x7fffffffe140,0x7fffffffe6a0,0x7fffffffe6b0)
   929 ktrace   NAMI  "/usr/bin/acroread"
   929 ktrace   RET   execve -1 errno 2 No such file or directory
   929 ktrace   CALL  execve(0x7fffffffe140,0x7fffffffe6a0,0x7fffffffe6b0)
   929 ktrace   NAMI  "/usr/X11R6/bin/acroread"
   929 ktrace   NAMI  "/compat/linux/bin/sh"
   929 ktrace   NAMI  "/compat/linux/lib/ld-linux.so.2"
   929 bash     RET   execve 0
   929 bash     CALL  settimeofday(0xffffd508)
   929 bash     RET   settimeofday 0
   929 bash     CALL  ktrace(0)
   929 bash     RET   ktrace 135159808/0x80e6000
   929 bash     CALL  open(0x280eb675,O_RDONLY,<unused>0)
   929 bash     NAMI  "/compat/linux/etc/ld.so.preload"
   929 bash     NAMI  "/etc/ld.so.preload"
   929 bash     RET   open JUSTRETURN
   929 bash     CALL  open(0x280eba93,O_RDONLY,<unused>0)
   929 bash     NAMI  "/compat/linux/etc/ld.so.cache"
   929 bash     NAMI  "/compat/linux"
   929 bash     NAMI  "/compat/linux/etc/ld.so.cache"
   929 bash     RET   open 3
   929 bash     CALL  mmap(0x3,0xffffcd88,<invalid>672064960,MAP_FILE,0,0,0,0,

At this pointi, there is a boatload of 0,0,0, ... until the segfault.
"/compat/linux/sbin/ldconfig -p" suggests that the file isn't
mangled.  Recreating linux/etc/ld.so.cashe does not help.  The
file mode is 644, so it should be readable.

I was unable to get a ktrace of one of the times that acroread
accidentally worked.  "ktrace acroread" ended with a segfault
100% of the times.

If there is anything else you want me to try, just ask.

Thanks for your help.  At this point, I'll note that I can use
xpdf and I have a native openoffice, so the linux programs that
I previously needed are not crucial to me.  If you have other
urgent FreeBSD issues, you may want to investigate those.
-- 
Steve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060830170945.GA1156>