From owner-freebsd-stable@FreeBSD.ORG Fri Jun 13 08:11:40 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36E1737B401 for ; Fri, 13 Jun 2003 08:11:40 -0700 (PDT) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 5271943FAF for ; Fri, 13 Jun 2003 08:11:39 -0700 (PDT) (envelope-from rooneg@electricjellyfish.net) Received: (qmail 24401 invoked from network); 13 Jun 2003 15:11:33 -0000 Received: from unknown (HELO electricjellyfish.net) (66.9.75.43) by relay.pair.com with SMTP; 13 Jun 2003 15:11:33 -0000 X-pair-Authenticated: 66.9.75.43 Message-ID: <3EE9E9A5.4090702@electricjellyfish.net> Date: Fri, 13 Jun 2003 11:11:33 -0400 From: Garrett Rooney User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030525 Thunderbird/0.1a X-Accept-Language: en-us, en MIME-Version: 1.0 To: Paul Reece References: <20030613225435.X28265@nero.fastlane.net.au> In-Reply-To: <20030613225435.X28265@nero.fastlane.net.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-stable@freebsd.org Subject: Re: problem with libc_r (uthread_close.c) in 4.8-STABLE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 15:11:40 -0000 Paul Reece wrote: >Unsure what exactly the problem is, but when using 4.8-STABLE I was unable >to compile MySQL (it failed during configure phase).. > >On further investigation, the following code segment when compiled with >phtreads, results in a segmentation fault: > >#include >typedef long long longlong; >main() >{ > longlong ll=1; > float f; > FILE *file=fopen("conftestval", "w"); > f = (float) ll; > fprintf(file,"%g\n",f); > close(file); > exit (0); >} > >If I roll back uthread_close.c to Revision 1.10.2.3, the above code >segment works ok so I would assume that there is a bug somewhere in the >latest revision of uthread_close.c? > Umh, you want 'fclose(file)', right? Since file is a FILE *, not a file descriptor. g-arrett