Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix proccontrol hangs in test_thread_X #780

Merged
merged 26 commits into from
Jul 24, 2020
Merged

Fix proccontrol hangs in test_thread_X #780

merged 26 commits into from
Jul 24, 2020

Conversation

hainest
Copy link
Contributor

@hainest hainest commented Jul 24, 2020

This cleans up handling of events from the mailbox (event queue) used to communicate between Dyninst and proccontrol.

This is rebased on #742
Closes #741

@hainest hainest added bug test suite These changes are needed to correct or improve a test in the Testsuite. labels Jul 24, 2020
@hainest hainest added this to the Release 10.2 milestone Jul 24, 2020
@hainest hainest self-assigned this Jul 24, 2020
This makes it symmetric with the check when dequeueing.
This will help reduce spurious wakeups.
This should not happen, but it's a good sanity check.
This replaces manual locking/unlocking of the mutex.
This just saves hitting the queue if we are blocking.
This prevents most vexxing parse confusion when reading the code.
** REMOVE before commiting PR **
This prevents accidental insertion of non-existent keys.
This prevents null pointer issues as well as pointer-reuse in some
abnormal situations.
@hainest hainest merged commit 6bd68f3 into dyninst:master Jul 24, 2020
@hainest hainest deleted the eventmailbox_fix branch July 24, 2020 21:33
hainest added a commit that referenced this pull request Jul 31, 2020
* pcEventMuxer: Fix print specifier in debug logging
    This should have been fixed in 6bd68f3
* Simplify PCEventMailbox::size
* Make PCEventMailbox::find threadsafe
* Whitespace update
* Add more logging for state handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug test suite These changes are needed to correct or improve a test in the Testsuite.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

proccontrol hangs manifesting in test_thread_X
1 participant