problem with libc_r (uthread_close.c) in 4.8-STABLE
Ruslan Ermilov
ru at freebsd.org
Fri Jun 13 09:02:26 PDT 2003
On Fri, Jun 13, 2003 at 11:08:38PM +0800, Paul Reece wrote:
>
[...]
> 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);
^^^^^ that should apparently be fclose(3)
Cheers,
--
Ruslan Ermilov Sysadmin and DBA,
ru at sunbay.com Sunbay Software Ltd,
ru at FreeBSD.org FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20030613/bc338671/attachment.bin
More information about the freebsd-stable
mailing list