From c263daf925a7a74f7ae64b049cf3def8b298beee Mon Sep 17 00:00:00 2001 From: Jerome Marchand Date: Wed, 10 Jun 2020 10:28:42 +0200 Subject: [PATCH 1/4] deadlock: print a more explicit message when pthread_mutex_unlock can'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. --- tools/deadlock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/deadlock.py b/tools/deadlock.py index 17848720..81122adb 100755 --- a/tools/deadlock.py +++ b/tools/deadlock.py @@ -483,7 +483,7 @@ import time 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: -- 2.25.4