Opened 10 days ago

Last modified 9 days ago

#14342 new bug

Repeatly create/join threads with thread local variable crash

Reported by: leorize Owned by: nobody
Priority: high Milestone: Unscheduled
Component: System/libroot.so Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

The attached program tlsbrute.c demonstrate this bug

How to run:

$ gcc -o tlsbrute tlsbrute.c
$ ./tlsbrute

Expected:

$ ./tlsbrute
(no output, returns 0)

Got:

$ ./tlsbrute
(crash dialog appears, thread recieved SIGSEGV)
Kill Thread

Attachments (2)

tlsbrute.c (644 bytes) - added by leorize 10 days ago.
tlsbrute-crash.report (7.9 KB) - added by leorize 9 days ago.

Download all attachments as: .zip

Change History (4)

Changed 10 days ago by leorize

Attachment: tlsbrute.c added

comment:1 Changed 10 days ago by waddlesplash

Try running under libroot_debug with MALLOC_DEBUG=g and see what happens.

Changed 9 days ago by leorize

Attachment: tlsbrute-crash.report added

comment:2 Changed 9 days ago by leorize

It still have a crash dialog, no output, but this time it died on _kern_debugger. Check the attached debug report for more details.

Note: See TracTickets for help on using tickets.