Skip site navigation (1)Skip section navigation (2)
From:      Walter Hafner <hafner@informatik.tu-muenchen.de>
To:        Marcel Moolenaar <marcel@scc.nl>
Cc:        questions@freebsd.org
Subject:   Re: Netscape 4.61 (Linux) broken since adding linux_base-5.2
Message-ID:  <srj670cstnd.fsf@hprbg5.informatik.tu-muenchen.de>
In-Reply-To: Marcel Moolenaar's message of "Tue, 12 Oct 1999 11:10:31 %2B0200"
References:  <19991011232409.B3243@marder-1>, <srj7lktrm4l.fsf@hprbg5.informatik.tu-muenchen.de> <3802FB07.E4D52F6F@scc.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Marcel Moolenaar <marcel@scc.nl> 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




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