Is stack back trace possible if compiled with -fomit-frame-pointer?
Also, I might want to know whether it is common case that linux apps are compiled with -fomit-frame-pointer swtich?
Thanks!
Xin
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 2 lines · Xin Zhao
Also, I might want to know whether it is common case that linux apps are compiled with -fomit-frame-pointer swtich?
This is the Linux KERNEL development list.
Not Linux USERSPACE development list.
Find an appropriate list and ask your question there please.
// Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
iD8DBQFDMXRvBrn2kJu9P78RAtlSAJwOMuF3mA9oxQO6nLwsHTCmf9lngACgkfOQ XMpu/ZFfdokiJ7jFSRCpvvQ=
=Q3QR
-----END PGP SIGNATURE-----
Thanks for your reply.
But I am looking for a tool or method to do stack backtrace automatically, not debug manually.
The tool listed on http://www.aivosto.com/visustin.html can only generate control flow from source code. But I need a control flow generator that can generate control flow from binary codes. One example is EEL (Executable Edit Library). But it only works for SPARC machine, not PC. :(
As for the question about the kernel development list, I am developing a kernel module that supports stack backtrace and can analyze user app binaries to enforce security policies. So this is still related to Kernel development. :)
Xin
Quoted 22 lines · Stefan Smietanowski
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 2 lines · Xin Zhao
Also, I might want to know whether it is common case that linux apps are compiled with -fomit-frame-pointer swtich?
This is the Linux KERNEL development list.
Not Linux USERSPACE development list.
Find an appropriate list and ask your question there please.
// Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)iD8DBQFDMXRvBrn2kJu9P78RAtlSAJwOMuF3mA9oxQO6nLwsHTCmf9lngACgkfOQ XMpu/ZFfdokiJ7jFSRCpvvQ=
=Q3QR
-----END PGP SIGNATURE-----
Quoted 3 lines · Xin Zhao
Also, I might want to know whether it is common case that linux apps are compiled with -fomit-frame-pointer swtich?
Barring gentoo/LFS/DIY distros, where no such assertions can be made, the answer is probably "no". Most distros don't strip out a useful source of userspace debugging for the sake of 'speed'.
Signature · 6 lines
Cheers, Alistair. 'No sense being pessimistic, it probably wouldn't work anyway.' Third year Computer Science undergraduate. 1F2 55 South Clerk Street, Edinburgh, UK.