From owner-freebsd-amd64@FreeBSD.ORG Wed Aug 30 17:10:22 2006 Return-Path: X-Original-To: amd64@freebsd.org Delivered-To: freebsd-amd64@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E916B16A4EA; Wed, 30 Aug 2006 17:10:21 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2C6C43D83; Wed, 30 Aug 2006 17:09:45 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.13.7/8.13.7) with ESMTP id k7UH9jHC001367; Wed, 30 Aug 2006 10:09:45 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.13.7/8.13.7/Submit) id k7UH9j12001366; Wed, 30 Aug 2006 10:09:45 -0700 (PDT) (envelope-from sgk) Date: Wed, 30 Aug 2006 10:09:45 -0700 From: Steve Kargl To: John Baldwin Message-ID: <20060830170945.GA1156@troutmask.apl.washington.edu> References: <200608151701.46724.jhb@freebsd.org> <20060828173520.GA911@troutmask.apl.washington.edu> <20060829223203.GA951@troutmask.apl.washington.edu> <200608291928.59024.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200608291928.59024.jhb@freebsd.org> User-Agent: Mutt/1.4.2.2i Cc: amd64@freebsd.org Subject: Re: FINALLY! Re: linux32 breakage in current.. X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2006 17:10:22 -0000 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,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,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,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