[DynInst_API:] [dyninst/dyninst] 95c8b7: Fix a non-deterministic hang in test_thread_5


Date: Tue, 15 Jan 2019 08:44:15 -0800
From: Xiaozhu Meng <xmeng@xxxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 95c8b7: Fix a non-deterministic hang in test_thread_5
  Branch: refs/heads/ppc_pc_fix
  Home:   https://github.com/dyninst/dyninst
  Commit: 95c8b75343bf901160b1321e569e42d11cc790de
      https://github.com/dyninst/dyninst/commit/95c8b75343bf901160b1321e569e42d11cc790de
  Author: Xiaozhu Meng <xmeng@xxxxxxxxxxx>
  Date:   2019-01-12 (Sat, 12 Jan 2019)

  Changed paths:
    M proccontrol/src/handler.C

  Log Message:
  -----------
  Fix a non-deterministic hang in test_thread_5

When the mutator stops the mutatee, the mutator will wait for
all the threads in the mutatee to stop by counting the number
of STOP events. If one of the thread exited, there will be no
STOP comeing back.

When a pre-exit event is handled, if the thread has pending stop
to be waited, we should no longer wait for this thread.


  Commit: f7d9378cb140f2105c00f6732bdbdbe1a1ea048f
      https://github.com/dyninst/dyninst/commit/f7d9378cb140f2105c00f6732bdbdbe1a1ea048f
  Author: Xiaozhu Meng <xmeng@xxxxxxxxxxx>
  Date:   2019-01-15 (Tue, 15 Jan 2019)

  Changed paths:
    M proccontrol/src/process.C

  Log Message:
  -----------
  Remove asserts that cause test failures


Compare: https://github.com/dyninst/dyninst/compare/95c8b75343bf^...f7d9378cb140
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.
[← Prev in Thread] Current Thread [Next in Thread→]