[haiku-bugs] Re: [Haiku] #11482: pthreads: possible race condition leading to deadlock

  • From: "jessicah" <trac@xxxxxxxxxxxx>
  • Date: Mon, 17 Nov 2014 06:25:26 -0000

#11482: pthreads: possible race condition leading to deadlock
---------------------------------+----------------------------
   Reporter:  jessicah           |      Owner:  axeld
       Type:  bug                |     Status:  new
   Priority:  normal             |  Milestone:  R1
  Component:  System/libroot.so  |    Version:  R1/Development
 Resolution:                     |   Keywords:
 Blocked By:                     |   Blocking:
Has a Patch:  0                  |   Platform:  All
---------------------------------+----------------------------

Comment (by jessicah):

 Mm, might not even be in `pthread_join`, but the condition variables
 themselves. Hitting debug/run in Debugger for each `pthread_func` thread
 releases them.

 Attached some KDL output in case this might help. I can run further tests
 if required.

 Also, shouldn't LD_PRELOAD=/system/lib/x86/libroot_debug.so <command to
 run> give me debug symbols in Debugger for functions like pthread_join,
 etc? Or do I need to rebuild Haiku with extra debugging options enabled?

--
Ticket URL: <https://dev.haiku-os.org/ticket/11482#comment:1>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: