From owner-freebsd-emulation Mon Jan 18 11:12:05 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA22187 for freebsd-emulation-outgoing; Mon, 18 Jan 1999 11:12:05 -0800 (PST) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from dingo.cdrom.com (castles250.castles.com [208.214.165.250]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA22181 for ; Mon, 18 Jan 1999 11:12:03 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id LAA18013; Mon, 18 Jan 1999 11:08:34 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199901181908.LAA18013@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: talon@lpthe.jussieu.fr (Michel TALON) cc: freebsd-emulation@FreeBSD.ORG Subject: Re: linux emulation In-reply-to: Your message of "Mon, 18 Jan 1999 11:04:00 +0100." <199901181004.LAA11129@niobe.lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 18 Jan 1999 11:08:34 -0800 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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