DynamoRIO / DynamoRIO/dynamorio
CRASH: "meta-instr faulted?" assertion in translate.c at line 1009 when running with drcachesim client
- Dominant language
- C
- Stars
- 3.2k
- Forks
- 629
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 31
Description
**Describe the bug**
I'm attempting to generate memory traces for a tensorflow-based application with drcachesim.
In this process, I encounter an issue declaring "meta-instr faulted?" and that I need to set the translation field and handle fault.
The error points to line 1009 in dynamorio/core/translate.c where the condition is asserted.
How to Reproduce:
1. setup tensorflow enabled environment
2. issue the following commands:
exportSQUAD_DIR="$(pwd)/temp/bert/dataset"
export BERT_BASE_DIR="$(pwd)/temp/bert/BERT-Base"
export LD_PRELOAD="$(pwd)/temp/libfakeintel.so"
export OMP_NUM_THREADS=8
export OMP_PROC_BIND=true
dynamorio/exports/bin64/drrun -t drcachesim -trace_after_instrs 271413712K -exit_after_tracing 50000000 -offline -- taskset -c 0-7 python $(pwd)/temp/bert/run_squad.py --num_inter_op=1 --num_intra_op=8 --vocab_file=$BERT_BASE_DIR/vocab.txt --bert_config_file=$BERT_BASE_DIR/bert_config.json --init_checkpoint=$BERT_BASE_DIR/bert_model.ckpt --do_predict=True --predict_file=$SQUAD_DIR/dev-v1.1.json --train_batch_size=12 --predict_batch_size=8 --learning_rate=3e-5 --num_train_epochs=2.0 --max_seq_length=384 --doc_stride=128 --output_dir="$(pwd)/temp/bert/results/BERT-Base/"
Please also answer these questions:
- What happens when you run without any client? completes fine
- What happens when you run with debug build ("-debug" flag to drrun/drconfig/drinject)? throws DynamoRIO Usage Error
**Expected behavior**
Application should run to completion
**Screenshots or Pasted Text**
<-- execve /bin/uname -->
Contributor guide
Assessment
This issue has not been assessed yet.