When drcachesim is used with -offline, -record_replace_retaddr, -record_function, it leaves sentinels in the trace when a tailcall to a function which is being recorded is encountered.
The issue can be reproduced with common.getretaddr under build_suite as follows:
When drcachesim is used with -offline, -record_replace_retaddr, -record_function, it leaves sentinels in the trace when a tailcall to a function which is being recorded is encountered.
The issue can be reproduced with common.getretaddr under build_suite as follows:
./build/bin64/drrun -t drcachesim -offline -record_replace_retaddr -record_function 'tailcall_with_retaddr|1&foo|1' -- ../build_suite/build_debug-internal-64/suite/tests/bin/common.getretaddr
on an ARM machine.
This issue is the same as #6394. PR6395 only fixed the issue for x86, so a change is needed to cover ARM.