This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix BZ #18084 (backtrace(..., 0) crash on x86)


On Mon, Aug 10, 2015 at 12:02 PM, Tolga Dalman
<tolga.dalman@googlemail.com> wrote:
> On 08/10/2015 02:04 AM, Paul Pluzhnikov wrote:
>> This patch fixes BZ #18084 -- crash in backtrace(..., 0) on x86.
>> Tested on Linux/x86, no new failures.
>
> That looks correct and should be applied to the other arches as well
> (I looked at x86_64 and arm).

Thanks. Revised patch attached.


2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>

        * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
        * sysdeps/arm/backtrace.c (__backtrace): Handle size == 0.
        * sysdeps/i386/backtrace.c (__backtrace): Likewise.
        * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
        * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
        * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
        * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
        * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
        * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.


-- 
Paul Pluzhnikov

Attachment: bz18084-20150815.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]