Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jun 2003 11:11:33 -0400
From:      Garrett Rooney <rooneg@electricjellyfish.net>
To:        Paul Reece <paul@fastlane.net.au>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: problem with libc_r (uthread_close.c) in 4.8-STABLE
Message-ID:  <3EE9E9A5.4090702@electricjellyfish.net>
In-Reply-To: <20030613225435.X28265@nero.fastlane.net.au>
References:  <20030613225435.X28265@nero.fastlane.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <stdio.h>
>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EE9E9A5.4090702>