Opened 10 years ago

Closed 9 years ago

#11182 closed bug (fixed)

pthread double free when run through libroot_debug.so

Reported by: kallisti5 Owned by: nobody
Priority: normal Milestone: R1/beta1
Component: System/POSIX Version: R1/Development
Keywords: pthread Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by pulkomandy)

Our pthread implementation has a minor memory access bug somewhere.

To reproduce:

Download a simple pthread example:
  http://www.cs.ucsb.edu/~tyang/class/pthreads/code_sgi/p_hello.c

Compile it:
  gcc p_hello.c

Run it under libroot_debug.so:
  LD_PRELOAD=/system/lib/libroot_debug.so ./a.out 5

Attachments (1)

a.out-2085-debug-30-08-2014-23-50-49.report (3.9 KB ) - added by kallisti5 10 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 by kallisti5, 10 years ago

Noticed when running mesa through libroot_debug.so. memory violation happens with any pthread application.

comment:2 by kallisti5, 10 years ago

Summary: Haiku pthread crash when run through libroot_debug.sopthread double free when run through libroot_debug.so

comment:3 by jessicah, 10 years ago

It might actually be our IO layer that's broken/not thread safe.

comment:4 by pulkomandy, 10 years ago

Description: modified (diff)

comment:5 by pulkomandy, 9 years ago

Milestone: R1/alpha5R1/beta1

comment:6 by korli, 9 years ago

Fixed in hrev48949, using pthread mutexes for libc locking.

comment:7 by korli, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.