ls -l segfault + [PATCH]

Luciano Miguel Ferreira Rocha strange at nsk.no-ip.org
Mon Mar 19 12:44:25 UTC 2007


On Mon, Mar 19, 2007 at 01:26:15PM +0100, Jan Evert van Grootheest wrote:
> 
> It is reproducable with this small test program.
> Leave out the fork or the first printf and things work.

It works always, in Fedora Core 6; it fails with or without fork() in
Rehat 7.3.

If works in Redhat 7.3 without the first printf. So it's a bug in glibc
stdio functions, on older glibcs.

Also, a fflush(stdout) before setvbuf didn't fix it, but letting stdio
allocate its own buffer (setvbuf(stdout, NULL, ...)) did.

-- 
lfr
0/0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070319/1f749db3/attachment-0002.pgp 


More information about the busybox mailing list