2005-09-21 14:37:21

by Xin Zhao

[permalink] [raw]
Subject: 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


2005-09-21 14:47:29

by Stefan Smietanowski

[permalink] [raw]
Subject: Re: Is stack back trace possible if compiled with -fomit-frame-pointer?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Xin Zhao wrote:
> 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-----

2005-09-21 14:50:49

by Xin Zhao

[permalink] [raw]
Subject: Re: Is stack back trace possible if compiled with -fomit-frame-pointer?

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

On 9/21/05, Stefan Smietanowski <[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Xin Zhao wrote:
> > 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-----
>

2005-09-21 15:24:45

by Alistair John Strachan

[permalink] [raw]
Subject: Re: Is stack back trace possible if compiled with -fomit-frame-pointer?

On Wednesday 21 September 2005 15:37, Xin Zhao wrote:
> 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'.

--
Cheers,
Alistair.

'No sense being pessimistic, it probably wouldn't work anyway.'
Third year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.