https://bugs.kde.org/show_bug.cgi?id=409367

            Bug ID: 409367
           Summary: exit_group() after signal arriving to thread waiting
                    in futex() causes hangs
           Product: valgrind
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: de...@desrt.ca
  Target Milestone: ---

Created attachment 121256
  --> https://bugs.kde.org/attachment.cgi?id=121256&action=edit
small reproducer

If the main thread of a traced program calls exit_group() very soon after a
signal is delivered to another thread in the program which happens to be
waiting on a futex() then valgrind will start consuming 100% CPU and not exit.

Expected: valgrind should exit.

I suspect this has something to do with signals interacting with the futex call
wrapping because if I replace the futex wait with a normal sleep then
everything works properly.

Also: if the process waits around a while before it exits, there is also no
problem.  In order for the problem to occur the program needs to exit quickly.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to