On Wed, Mar 05, 2014 at 08:05:25AM -0800, Ian Lance Taylor wrote:
> On Wed, Mar 5, 2014 at 1:25 AM, Richard Biener
> <richard.guent...@gmail.com> wrote:
> > On Wed, Mar 5, 2014 at 4:34 AM, Ian Lance Taylor <i...@google.com> wrote:
> >> The GNU glibc qsort function will call malloc in some cases.  That makes
> >> it unsuitable for libbacktrace, which is intended to work when called
> >> from a signal handler.  This patch changes libbacktrace to use an
> >> internal qsort function.
> >>
Another solution is use a malloc wrapper that makes to make malloc signal
safe. Problem with this solution is that its on application layer, not
library one. I am trying to add a signal safety to glibc.

Reply via email to