Stack Trace: MEX crash Seg Fault

조회 수: 1 (최근 30일)
Will Donahue
Will Donahue 2015년 5월 17일
답변: Walter Roberson 2015년 5월 18일
Hi Everyone,
I have looked but can't find an answer. What do the numbers mean next to my function name in my stack trace (in bold):
BoundingBoxComparision +000009
I am trying to debug the C file to find the segmentation fault but can't seem to find it. I was hoping that the trace might hide the answer.
Thanks,
Will

답변 (1개)

Walter Roberson
Walter Roberson 2015년 5월 18일
In the example,
BoundingBoxComparision +000009
the number indicates that the address is 9 further than the defined symbol BoundingBoxComparision.
In the context of a stack trace, this would indicate 9 bytes (or possibly 9 words) into the routine named BoundingBoxComparision . But more generally in debugging, memory addresses for data might be displayed as an offset from a symbol that has been declared "global" or "extern". Some debuggers are also able to give offsets relative to variables that are on stack frames.

카테고리

Help CenterFile Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by