From owner-freebsd-questions Tue Oct 12 4:31:26 1999 Delivered-To: freebsd-questions@freebsd.org Received: from tuminfo2.informatik.tu-muenchen.de (tuminfo2.informatik.tu-muenchen.de [131.159.0.81]) by hub.freebsd.org (Postfix) with ESMTP id C0F34153C1 for ; Tue, 12 Oct 1999 04:31:07 -0700 (PDT) (envelope-from hafner@informatik.tu-muenchen.de) Received: from hprbg5.informatik.tu-muenchen.de ([131.159.0.200] EHLO hprbg5.informatik.tu-muenchen.de ident: root [port 4058]) by tuminfo2.informatik.tu-muenchen.de with ESMTP id <110754-226>; Tue, 12 Oct 1999 13:31:03 +0000 Received: from hafner@localhost by hprbg5.informatik.tu-muenchen.de id <24235-709>; Tue, 12 Oct 1999 13:30:47 +0200 To: Marcel Moolenaar Cc: questions@freebsd.org Subject: Re: Netscape 4.61 (Linux) broken since adding linux_base-5.2 References: <19991011232409.B3243@marder-1>, <3802FB07.E4D52F6F@scc.nl> From: Walter Hafner Date: 12 Oct 1999 13:30:46 +0200 In-Reply-To: Marcel Moolenaar's message of "Tue, 12 Oct 1999 11:10:31 +0200" Message-ID: Lines: 126 X-Mailer: Gnus v5.5/XEmacs 20.3 - "Vatican City" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Marcel Moolenaar writes: > > tons of "old.recvfrom" from the libs > > You need to use linux_kdump (from the ports collection) to see the Linux > syscalls properly. Alternatively, use truss. *EVIL GRIN* w3proj2# uname -a FreeBSD w3proj2.ze.tu-muenchen.de 3.3-STABLE FreeBSD 3.3-STABLE #7: Mon Oct 11 18:02:36 CEST 1999 hafner@w3proj2.ze.tu-muenchen.de:/usr/src/sys/compile/W3PROJ2 i386 w3proj2# ls -agl /compat/linux/ total 2 drwxr-xr-x 2 root bin 512 12 Okt 12:45 . drwxr-xr-x 3 root bin 512 12 Okt 09:58 .. w3proj2# cd /usr/ports/emulators/linux_base/ w3proj2# make all install ... w3proj2# cd ../../devel/linux_devtools/ w3proj2# make all install ... w3proj2# cd ../linux_kdump/ w3proj2# make all install ... ===> Building for linux_kdump-1.3 Warning: Object directory not changed from original /usr/ports/devel/linux_kdump/work/linux_kdump-1.3 cc -O2 -m486 -pipe -I/usr/src/usr.bin/ktrace -I/ -I/usr/local/usr/include -c kdump.c kdump.c: In function `ktrsyscall': kdump.c:249: structure has no member named `ktr_args' *** Error code 1 Oops! BTW: /usr/ports and /usr/src tree are from Oct. 8. (cvsup) Anyway, let's go: w3proj2# cd /sys/modules/linux/ w3proj2# make clean ... w3proj2# make all install ... w3proj2# kldunload linux w3proj2# kldload linux w3proj2# ktrace acroread Segmentation fault (core dumped) (See my last posting for ktrace details) w3proj2# truss -o truss.out acroread Segmentation fault (core dumped) w3proj2# ls -al *core -rw------- 1 root wheel 520192 12 Okt 12:54 acroread.core -rw------- 1 root wheel 868352 12 Okt 12:54 truss.core Oops! w3proj2# gdb /usr/bin/truss truss.core ... Program terminated with signal 11, Segmentation fault. ... (gdb) bt #0 0x280a33d8 in kill () from /usr/lib/libc.so.3 #1 0x8048f8a in free () #2 0x8048a8d in free () (gdb) ... Got to compile truss with -g someday ... Anyway, truss.out doesn't give more insight than ktrace: syscall geteuid() returns 0 (0x0) syscall getuid() returns 0 (0x0) syscall getgid() returns 0 (0x0) syscall getegid() returns 0 (0x0) syscall getpid() returns 10654 (0x299e) SIGNAL 11 SIGNAL 11 Process stopped because of: 16 process exit, rval = 139 Linux gdb doesn't help, as you stated already: w3proj2# /compat/linux/usr/bin/gdb /usr/local/Acrobat3/Reader/intellinux/bin/acroread acroread.core /compat/linux/usr/bin/gdb: error in loading shared libraries /usr/lib/libtermcap.so.2: undefined symbol: _DefaultRuneLocale Another go: I compiled linux.ko with -DDEBUG. Here's part of the output when calling acroread: w3proj2# tail /var/log/messages Oct 12 13:14:34 w3proj2 /kernel: Linux-emul(12792): open(/usr/local/jdk/lib/i386/green_threads/ld-linux.so.2, 0x0, 0xfffff000) Oct 12 13:14:34 w3proj2 /kernel: Linux-emul(12792): open returns error 2 Oct 12 13:14:34 w3proj2 /kernel: Linux-emul(12792): open(/usr/home/hafner/lib/ld-linux.so.2, 0x0, 0xfffff000) Oct 12 13:14:34 w3proj2 /kernel: Linux-emul(12792): open returns error 2 Oct 12 13:14:34 w3proj2 /kernel: Linux-emul(12792): open(/compat/linux/lib/ld-linux.so.2, 0x0, 0xfffff000) Oct 12 13:14:34 w3proj2 /kernel: Linux-emul(12792): open returns error 0 Oct 12 13:14:34 w3proj2 /kernel: Linux-emul(12792): mmap(0, 45056, 0, 00000022, -1, 0) Oct 12 13:14:34 w3proj2 /kernel: Linux-emul(12792): mmap(0x2870c000, 36884, 5, 00000012, 3, 0) Oct 12 13:14:34 w3proj2 /kernel: Linux-emul(12792): mmap(0x28716000, 1480, 3, 00000012, 3, 36864) Oct 12 13:14:34 w3proj2 /kernel: pid 12792 (acroread), uid 0: exited on signal 11 (core dumped) Any hints? -Walter -- Dr. Walter Hafner Tel: 089/289-28187 WWW-Beauftragter, TU Muenchen Email: hafner@in.tum.de WWW: http://www.tum.de/~hafner/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message