This is the mail archive of the glibc-bugs@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]

[Bug nptl/21422] Deadlock in 2.25 pthread_cond_broadcast after process abort


https://sourceware.org/bugzilla/show_bug.cgi?id=21422

Dimitri Staessens <dimitri.staessens at ugent dot be> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dimitri.staessens at ugent dot be

--- Comment #1 from Dimitri Staessens <dimitri.staessens at ugent dot be> ---
Hi, 

I'm following the nptl bugs since we found some apparent ones ourselves in
2.25.

I looked at your code and it could be you are depending on undefined behaviour.
When you abort and restart the process, shouldn't you use a robust mutex? Can
you try that?

http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_mutexattr_setrobust.html

and check if the calls set errno values to EOWNERDEAD or ENOTRECOVERABLE.

cheers,

Dimitri

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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