Opened 2 years ago

Closed 19 months ago

Last modified 3 months ago

#14342 closed bug (fixed)

Repeatly create/join threads with thread local variable crash

Reported by: leorize Owned by: nobody
Priority: high Milestone: R1/beta2
Component: System/libroot.so Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
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 2 years ago.
tlsbrute-crash.report (7.9 KB ) - added by leorize 2 years ago.

Download all attachments as: .zip

Change History (6)

by leorize, 2 years ago

Attachment: tlsbrute.c added

comment:1 by waddlesplash, 2 years ago

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

by leorize, 2 years ago

Attachment: tlsbrute-crash.report added

comment:2 by leorize, 2 years ago

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

comment:3 by waddlesplash, 19 months ago

Resolution: fixed
Status: newclosed

Fixed in hrev52662 (and fix merged into r1beta1 also.)

comment:4 by nielx, 3 months ago

Milestone: UnscheduledR1/beta2

Assign tickets with status=closed and resolution=fixed within the R1/beta2 development window to the R1/beta2 Milestone

Note: See TracTickets for help on using tickets.