Skip to content

Commit

Permalink
deadlock: print a more explicit message when pthread_mutex_unlock can…
Browse files Browse the repository at this point in the history
…'t be attached

Most likely, this happen because of a missing --binary argument. Let's
be friendly to our user and print a more useful messsage.
  • Loading branch information
jeromemarchand committed Jun 10, 2020
1 parent e4de95e commit 4440a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/deadlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def main():
pid=args.pid,
)
except Exception as e:
print('%s. Failed to attach to symbol: %s' % (str(e), symbol))
print('%s. Failed to attach to symbol: %s\nIs --binary argument missing?' % (str(e), symbol))
sys.exit(1)
for symbol in args.lock_symbols:
try:
Expand Down

0 comments on commit 4440a4d

Please sign in to comment.