Re: Patch RFC: Use internal qsort function in libbacktrace

2014-03-07 Thread Paolo Carlini
Hi, On 03/05/2014 04:34 AM, Ian Lance Taylor 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. I'm

Re: Patch RFC: Use internal qsort function in libbacktrace

2014-03-07 Thread Rainer Orth
Hi Paolo, On 03/05/2014 04:34 AM, Ian Lance Taylor 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.

Re: Patch RFC: Use internal qsort function in libbacktrace

2014-03-07 Thread Paolo Carlini
Hi, On 03/07/2014 01:12 PM, Rainer Orth wrote: Hi Paolo, On 03/05/2014 04:34 AM, Ian Lance Taylor 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

Re: Patch RFC: Use internal qsort function in libbacktrace

2014-03-07 Thread Ian Lance Taylor
On Fri, Mar 7, 2014 at 4:12 AM, Rainer Orth r...@cebitec.uni-bielefeld.de wrote: Hi Paolo, On 03/05/2014 04:34 AM, Ian Lance Taylor 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

Re: Patch RFC: Use internal qsort function in libbacktrace

2014-03-06 Thread Ian Lance Taylor
On Tue, Mar 4, 2014 at 7:34 PM, 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

Re: Patch RFC: Use internal qsort function in libbacktrace

2014-03-05 Thread Richard Biener
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

Re: Patch RFC: Use internal qsort function in libbacktrace

2014-03-05 Thread Ian Lance Taylor
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

Re: Patch RFC: Use internal qsort function in libbacktrace

2014-03-05 Thread Ondřej Bílka
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

Re: Patch RFC: Use internal qsort function in libbacktrace

2014-03-05 Thread Ian Lance Taylor
On Wed, Mar 5, 2014 at 9:17 AM, Ondřej Bílka nel...@seznam.cz wrote: 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

Patch RFC: Use internal qsort function in libbacktrace

2014-03-04 Thread Ian Lance Taylor
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. I'm posting this for comments in case anybody sees anything

Re: Patch RFC: Use internal qsort function in libbacktrace

2014-03-04 Thread Patrick Palka
On Tue, Mar 4, 2014 at 10:34 PM, 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

Re: Patch RFC: Use internal qsort function in libbacktrace

2014-03-04 Thread Ian Lance Taylor
On Tue, Mar 4, 2014 at 8:03 PM, Patrick Palka patr...@parcs.ath.cx wrote: On Tue, Mar 4, 2014 at 10:34 PM, 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