Package: g++-O is turning on -fomit-frame-pointers on amd64, which interferes with debugging performance issues (because it prevents oprofile from generating callgraph information). "man g++" says
-O also turns on -fomit-frame-pointer on machines where doing so does not interfere with debugging. , but here it is turning it on where is *does* interfere with debugging.