DynamoRIO / dynamorio

Dynamic Instrumentation Tool Platform
Other
2.64k stars 560 forks source link

ASSERT tool.drcacheoff.windows-zlib signal.c:5729 dcontext != GLOBAL_DCONTEXT #5507

Open derekbruening opened 2 years ago

derekbruening commented 2 years ago

This happened once in PR #5506:

http://139.178.82.61:8080/job/DynamoRIO-AArch64-Precommit/1606/consoleFull

232:   *** postcmd failed (255): <Application
232:   /var/lib/jenkins/workspace/DynamoRIO-AArch64-Precommit/build/build_debug-internal-64/clients/bin64/drcachesim
232:   (1817526).  Internal Error: DynamoRIO debug check failure:
232:   /var/lib/jenkins/workspace/DynamoRIO-AArch64-Precommit/core/unix/signal.c:5729
232:   dcontext != GLOBAL_DCONTEXT
232: 
232:   (Error occurred @0 frags in tid 1817612)
joshua-warburton commented 1 year ago

I believe I've found a reproducer for this. Spamming the test seems to cause this to fail about 5% of the time, but as this is a crash in the postcmd I managed to extract an output that causes it to always fail. I've attached this in a tar and you can reproduce by:

tar -xzf ../i5507-reproduce.tar.gz
drcachesim -indir i5507-reproduce -simulator_type basic_counts

i5507-reproduce.tar.gz

I'll also submit a patch marking this as flaky