From owner-freebsd-amd64@FreeBSD.ORG Wed Jun 6 21:40:09 2007 Return-Path: X-Original-To: freebsd-amd64@hub.freebsd.org Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B883116A469 for ; Wed, 6 Jun 2007 21:40:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 6774513C4DE for ; Wed, 6 Jun 2007 21:40:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l56Le9Sd022468 for ; Wed, 6 Jun 2007 21:40:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l56Le9lp022465; Wed, 6 Jun 2007 21:40:09 GMT (envelope-from gnats) Date: Wed, 6 Jun 2007 21:40:09 GMT Message-Id: <200706062140.l56Le9lp022465@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org From: Jeff Wheelhouse Cc: Subject: Re: amd64/110655: [threads] 32 bit threaded applications crash on amd64 SMP kernel. X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jeff Wheelhouse List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 21:40:09 -0000 The following reply was made to PR amd64/110655; it has been noted by GNATS. From: Jeff Wheelhouse To: Kris Kennaway Cc: bug-followup@FreeBSD.org Subject: Re: amd64/110655: [threads] 32 bit threaded applications crash on amd64 SMP kernel. Date: Wed, 06 Jun 2007 17:11:25 -0400 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) $ Thanks, Jeff