Date: Mon, 18 Jan 1999 11:08:34 -0800 From: Mike Smith <mike@smith.net.au> To: talon@lpthe.jussieu.fr (Michel TALON) Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: linux emulation Message-ID: <199901181908.LAA18013@dingo.cdrom.com> In-Reply-To: Your message of "Mon, 18 Jan 1999 11:04:00 %2B0100." <199901181004.LAA11129@niobe.lpthe.jussieu.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
Please send emulation-related problems to the freebsd-emulation list. > I have problems with linux emulation of programs compiled under > libc6 under FreeBSD 2.2.8-stable. This happens with simple programs not > using /proc or clone(). I have installed the port linux_lib-2.6. > My old programs using libc5 like Maple continue to work without problem. > > Now any new program compiled on a Linux Redhat 5.2 machine and working > on such machine immediately core dump on the FreeBSD box with sigsev. > > I have ktraced them and read with linux_kdump. I see correct invocations > of the libc6 and the loader: > > 8580 tree NAMI "/compat/linux/lib/libc.so.6" > 8580 tree NAMI "/compat/linux" > 8580 tree NAMI "/compat/linux/lib/libc.so.6" > 8580 tree RET linux_open 3 > 8580 tree CALL read(0x3,0xefbfc558,0x1000) > > 8580 tree NAMI "/compat/linux/lib/ld-linux.so.2" > 8580 tree NAMI "/compat/linux" > 8580 tree NAMI "/compat/linux/lib/ld-linux.so.2" > 8580 tree RET linux_open 3 > 8580 tree CALL read(0x3,0xefbfc558,0x1000) > > then a call to getpid as under linux with strace: > > 8580 tree CALL getpid > 8580 tree RET getpid 8580/0x2184 > 8580 tree PSIG SIGSEGV SIG_DFL > 8580 tree NAMI "tree.core" > > and the program dies without ever beginning execution. Is this a known > bug or am i doing something wrong? The only time I've seen this was when I was having problems with the wrong dynamic linker being invoked (because I had a non-glibc linker). I don't think there have been any major changes post 2.2.8, but there have certainly been major improvements in the Linux emulation in the 3.x branch which may address your problems. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901181908.LAA18013>