This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: abort might not flush all open streams before process termination
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Thomas Schwinge <thomas at codesourcery dot com>
- Cc: <mtk dot manpages at gmail dot com>, Jakub Jelinek <jakub at redhat dot com>, <gcc at gcc dot gnu dot org>, <linux-man at vger dot kernel dot org>, <gcc-patches at gcc dot gnu dot org>, <libc-alpha at sourceware dot org>
- Date: Wed, 07 Oct 2015 12:18:45 +0200
- Subject: Re: abort might not flush all open streams before process termination
- Authentication-results: sourceware.org; auth=none
- References: <560e717f dot +EOSyvrXa02mQ6Bg%schwab at linux-m68k dot org> <87twq4p9f4 dot fsf at kepler dot schwinge dot homeip dot net> <mvmlhbg8e0g dot fsf at hawking dot suse dot de> <87oagcp6kc dot fsf at kepler dot schwinge dot homeip dot net> <mvm612k8b57 dot fsf at hawking dot suse dot de> <871td7ouju dot fsf at kepler dot schwinge dot homeip dot net>
Thomas Schwinge <thomas@codesourcery.com> writes:
> On Tue, 06 Oct 2015 13:55:00 +0200, Andreas Schwab <schwab@linux-m68k.org> wrote:
>> Thomas Schwinge <thomas@codesourcery.com> writes:
>>
>> > | The two regressed test cases use __builtin_printf instead of fprintf to
>> > | stderr, but as far as I know, abort is to flush all open streams before
>> > | process termination?
>>
>> It can't, since abort must be async-signal-safe.
>
> It's still surprising to me that the message written to stderr is lost in
> your aarch64-suse-linux-gnu configuration (only): from a quick look,
> (current) glibc's stdlib/abort.c tries to actually close/flush all open
> streams before process termination.
This is <https://sourceware.org/bugzilla/show_bug.cgi?id=15436>.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."