Date: Fri, 8 Jun 2007 14:23:34 -0400 From: Kris Kennaway <kris@obsecurity.org> To: John Baldwin <jhb@freebsd.org> Cc: freebsd-amd64@freebsd.org, Kris Kennaway <kris@obsecurity.org> Subject: Re: amd64/110655: [threads] 32 bit threaded applications crash on amd64 SMP kernel. Message-ID: <20070608182334.GF46273@rot13.obsecurity.org> In-Reply-To: <200706081332.18176.jhb@freebsd.org> References: <200706062150.l56Lo7rG022869@freefall.freebsd.org> <200706081332.18176.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 08, 2007 at 01:32:16PM -0400, John Baldwin wrote: > On Wednesday 06 June 2007 05:50:07 pm Kris Kennaway wrote: > > The following reply was made to PR amd64/110655; it has been noted by GNATS. > > > > From: Kris Kennaway <kris@obsecurity.org> > > To: Jeff Wheelhouse <jdw_list@wheelhouse.org> > > Cc: Kris Kennaway <kris@obsecurity.org>, bug-followup@FreeBSD.org > > Subject: Re: amd64/110655: [threads] 32 bit threaded applications crash on > amd64 SMP kernel. > > Date: Wed, 6 Jun 2007 17:42:38 -0400 > > > > On Wed, Jun 06, 2007 at 05:11:25PM -0400, Jeff Wheelhouse wrote: > > > Kris Kennaway wrote: > > > >-m32 doesn't DTRT on FreeBSD, can you confirm that this problem exists > > > >with a binary compiled by an i386 compiler? > > > > > > I can. > > > > > > $ uname -m > > > i386 > > > $ cc -o crash32-thr crash32.c -lthr > > > $ cc -o crash32-pthread crash32.c -pthread > > > $ md5 crash32-thr crash32-pthread > > > MD5 (crash32-thr) = 91aea395dd2c5798d7cba9a216c4c227 > > > MD5 (crash32-pthread) = a590f1c97e5ec11ddc94fa3d7f4bf167 > > > $ ./crash32-thr > > > Thread. > > > $ ./crash32-pthread > > > Thread. > > > $ > > > > > > $ uname -m > > > amd64 > > > $ md5 crash32-thr crash32-pthread > > > MD5 (crash32-thr) = 91aea395dd2c5798d7cba9a216c4c227 > > > MD5 (crash32-pthread) = a590f1c97e5ec11ddc94fa3d7f4bf167 > > > $ ./crash32-thr > > > Bad system call(coredump) > > > $ ./crash32-pthread > > > Memory fault(coredump) > > > $ > > > > OK, that's useful to know. I ran into a problem myself that looked > > similar but wanted to check first (I didn't isolate it to libthr yet). > > libthr and umtx compat32 support isn't present in 6.x yet. I have a patch to > MFC it, but the one person who has tested it still got crashes. I don't > think even 7 has libpthread compat32 support yet. > > http://www.FreeBSD.org/~jhb/patches/thr32.patch is my current libthr + umtx > compat32 patch for 6.x. Possibly it's a different bug, but I have a threaded i386 7.0 binary that SIGBUSes on amd64. It is statically linked to libthr and does mmap calls. I can give you the binary if you like. Kris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070608182334.GF46273>