public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Toon Moene <toon@moene.org>
To: gcc-patches@gcc.gnu.org
Subject: Re: [Patch, libfortran] PR 48931 Async-signal-safety of backtrace signal handler
Date: Wed, 18 May 2011 06:03:00 -0000	[thread overview]
Message-ID: <4DD2CDAE.6080201@moene.org> (raw)
In-Reply-To: <4DD2B57F.2050404@moene.org>

On 05/17/2011 07:50 PM, Toon Moene wrote:

> On 05/14/2011 09:40 PM, Janne Blomqvist wrote:
>
>> Hi,
>>
>> the current version of showing the backtrace is not async-signal-safe
>> as it uses backtrace_symbols() which, in turn, uses malloc(). The
>> attached patch changes the backtrace printing functionality to instead
>> use backtrace_symbols_fd() and pipes.
>
> Great - this would solve a problem I filed a bugzilla report for years
> ago (unfortunately, I do not know the number of it).

It was 33905 (2007-10-26).

-- 
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/
Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news

  reply	other threads:[~2011-05-17 19:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-15 11:13 Janne Blomqvist
2011-05-15 17:43 ` Janne Blomqvist
2011-05-15 20:46   ` Janne Blomqvist
2011-05-20 16:15     ` Janne Blomqvist
2011-05-21 22:01     ` Steve Kargl
2011-05-18  1:11 ` Toon Moene
2011-05-18  6:03   ` Toon Moene [this message]
2011-05-22 21:50 FX
2011-05-24 11:38 ` Janne Blomqvist
2011-05-24 11:42   ` FX
2011-05-24 13:19     ` N.M. Maclaren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DD2CDAE.6080201@moene.org \
    --to=toon@moene.org \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).