Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Aug 1999 10:45:57 +0200
From:      Marcel Moolenaar <marcel@scc.nl>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        emulation@FreeBSD.ORG
Subject:   Re: SIGBUS for threaded Linux binaries (glibc2.1) [PSL_AC related?]
Message-ID:  <37C3AD45.3D0B2254@scc.nl>
References:  <199908242121.HAA08964@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans wrote:

> This means that the stack is misaligned.  This seems to be an emulator
> bug.  The stack is also misaligned for an old version of Linux `cat'
> when I attach to it while it is waiting for input.

You're right. `linux_sigcode' in linux_locore.s doesn't have the 'right'
size. Consequently `linux_szsigcode' is no multiple of 4 which results in a
misaligned stack. I'll commit the fix shortly.

> BTW, attachment is inconvenient because the FreeBSD gdb looks in the
> FreeBSD places for the libraries.

That problem also exists when you want to debug a core. I've already
roughly implemented a Linux compatible corefile so that you can use a Linux
native gdb to do the debugging with...

BTW: Thanks for the explanation. It made me look into the right direction!

-- 
Marcel Moolenaar                                  mailto:marcel@scc.nl
SCC Internetworking & Databases                     http://www.scc.nl/
Amsterdam, The Netherlands                         tel: +31 20 4200655


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?37C3AD45.3D0B2254>