Can you provide a minimal program that calls backrace() saving it into a file, that then -depending on the optimization level- produces the wrong output when addr2lines is called? Also, I think you forgot to mention your architecture. Best regards