This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH][BZ #12847] dprintf/vdprintf can cause fork to fail (child process crash)
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: Rich Felker <dalias at aerifal dot cx>, OndÅej BÃlka <neleai at seznam dot cz>, <libc-alpha at sourceware dot org>
- Date: Wed, 25 Sep 2013 13:07:10 -0700 (PDT)
- Subject: Re: [PATCH][BZ #12847] dprintf/vdprintf can cause fork to fail (child process crash)
- Authentication-results: sourceware.org; auth=none
- References: <20130921191346 dot GA9202 at domone dot kolej dot mff dot cuni dot cz> <20130921194515 dot GF20515 at brightrain dot aerifal dot cx> <20130921202326 dot GA9893 at domone dot kolej dot mff dot cuni dot cz> <20130921214227 dot GG20515 at brightrain dot aerifal dot cx> <20130924210329 dot F00F22C097 at topped-with-meat dot com> <20130924213453 dot GO20515 at brightrain dot aerifal dot cx> <20130925180327 dot 0351F2C097 at topped-with-meat dot com> <Pine dot LNX dot 4 dot 64 dot 1309251935010 dot 31429 at digraph dot polyomino dot org dot uk>
> There are plenty of cases where the underlying printf code uses malloc if
> it needs an allocation too large for alloca (and the cut-off, or how such
> allocations relate to the arguments passed to dprintf, is not as far as I
> know considered a public interface to glibc).
This was not the case at the time. dprintf predates the complex printf
features like $ and wide-char support and so on.