How do I know which illegal address the program access when a segmentation fault happens

Posted by overboming on Stack Overflow See other posts from Stack Overflow or by overboming
Published on 2010-05-12T09:36:07Z Indexed on 2010/05/12 9:54 UTC
Read the original article Hit count: 192

Filed under:
|
|
|

Plus, The program runs on a arm device running Linux, I can print out stack info and register values in the sig-seg handler I assign. The problem is I can't add -g option to the source file, since the bug may won't reproduce due to performance downgrade.

© Stack Overflow or respective owner

Related posts about linux

Related posts about embedded