From owner-freebsd-amd64@FreeBSD.ORG Fri Jun 8 17:52:55 2007 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D42E316A46C for ; Fri, 8 Jun 2007 17:52:55 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 6030113C45D for ; Fri, 8 Jun 2007 17:52:55 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l58HqrOk058477; Fri, 8 Jun 2007 13:52:53 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-amd64@freebsd.org, Kris Kennaway Date: Fri, 8 Jun 2007 13:32:16 -0400 User-Agent: KMail/1.9.6 References: <200706062150.l56Lo7rG022869@freefall.freebsd.org> In-Reply-To: <200706062150.l56Lo7rG022869@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706081332.18176.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Fri, 08 Jun 2007 13:52:53 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/3380/Fri Jun 8 08:34:26 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx 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 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 17:52:55 -0000 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 > To: Jeff Wheelhouse > Cc: Kris Kennaway , 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. -- John Baldwin