1 | initial version |
This can happen because the address sanitizer only reports stack frames that it has instrumented. If a stack frame is not instrumented, it will not appear in the stack trace.
To get a more complete stack trace, you can try increasing the stack trace depth by setting the ASAN_OPTIONS environment variable:
export ASAN_OPTIONS="stack_trace_format='{{FUNCTION_OFFSET}} {{FUNCTION_NAME}} ({{SOURCEFILE}}:{{LINENO}})' stack_trace_max_depth=10000"
This will print out the function offset, name, source file, and line number for each stack frame, and will go up to a maximum depth of 10000 frames.
If this does not provide a complete stack trace, it is possible that the missing frames are not related to the issue being reported by the address sanitizer.