Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jun 2003 19:01:50 +0300
From:      Ruslan Ermilov <ru@freebsd.org>
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:  <20030613160150.GA7382@sunbay.com>
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

--WIyZ46R2i8wDzkSu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Jun 13, 2003 at 11:08:38PM +0800, Paul Reece wrote:
>=20
[...]
> On further investigation, the following code segment when compiled with
> phtreads, results in a segmentation fault:
>=20
> #include <stdio.h>
> typedef long long longlong;
> main()
> {
>   longlong ll=3D1;
>   float f;
>   FILE *file=3Dfopen("conftestval", "w");
>   f =3D (float) ll;
>   fprintf(file,"%g\n",f);
>   close(file);
    ^^^^^  that should apparently be fclose(3)


Cheers,
--=20
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software Ltd,
ru@FreeBSD.org		FreeBSD committer

--WIyZ46R2i8wDzkSu
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+6fVuUkv4P6juNwoRAsRyAJ9dHr1ydcFEQW5+oP/ztt+LPIQcFwCbBk32
WpHhh6+RfwMEFv0i2UFVit0=
=XDw/
-----END PGP SIGNATURE-----

--WIyZ46R2i8wDzkSu--



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