Introducing automatic crash reporting in Edgy

John Richard Moser nigelenki at comcast.net
Sun Aug 20 20:35:41 BST 2006


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



Jerry Haltom wrote:
> I am curious, with regard to these debug symbols, if it would be
> possible to remove their need.
> 
> bug-buddy and related crash reporting applications could be made to
> submit a core file. This core file, when combined with the -dbg package
> *by a developer* would result in the proper stack track. Seeing as all

No good.  I fortunately don't have to argue against randomly submitting
core files because it's infeasible and pitti is smarter than that.  The
simple fact is that decrypted PGP private keys and passwords are
sometimes in the program's address space; it is simply unacceptable for
us to do a little hand-waving and say "you can trust us with your
ultra-secret data, honestly."

It is possible to use debugging information about the binaries involved
to rebuild the environment they were in and get a backtrace later.  I
came up with a relocation process that lets you translate the addresses
collected to a new instance of the same program; basic idea is simple,
you know the address each library is loaded at, subtract that from each
address that fell inside that library at crash time and add it to the
address the library is loaded at at debug time.  This will let us
collect symbols later regardless of address space randomization.

Using tricks like this with full debugging symbols, it should be
somewhat trivial to load up gdb and ask it for symbol names at various
addresses.  You'll probably want to sort out stack frames on stack dumps
taken at crash time though, that'll be much easier than trying to sort
it out later; although we *shouldn't* be sending those stack dumps in by
default.

- --
All content of all messages exchanged herein are left in the
Public Domain, unless otherwise explicitly stated.

    Creative brains are a valuable, limited resource. They shouldn't be
    wasted on re-inventing the wheel when there are so many fascinating
    new problems waiting out there.
                                                 -- Eric Steven Raymond

    We will enslave their women, eat their children and rape their
    cattle!
                  -- Bosc, Evil alien overlord from the fifth dimension
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIVAwUBROi5iws1xW0HCTEFAQISHxAAinLltP8r2ng85uKAZZrmHmBVfygpVTt8
nuaQJPhFSWXT5esGG3D6wervGiIQUog4atdx6RzXFTOz/uGa83DXq1x1M1obWhRR
IDijXT6H8NVjbJvOJ46xdUkETGmfr5fGM6k7wWxS2J/YdWyJA5OHgE+Va8R/bdSA
YA3Xy9q+x+5118ev/iP98ATZ9bhfEue2zywCUJwY0WNO1j69j0UwINV3nGqRC/J7
guxARPkGuXYfhYvH1A/J34HtQ4PySCxZwqRfpFykHmDFFxN5afVYZbtvmxHA26Dx
WuY9oLoidOHG0PA9mAddebP1EiMlHvCvJYCWEJpNS7Z2yXAHryO9VnscpHCjQ3e+
oKa7PjkzzfgiGkKpE0vdEBAIDSGAiWSwZAyeBLYq5+f/HeaeF9acVUBmOuV7EPO8
lw+wtAA5bBsyeOyED6zpDCaa+fyfVGGcb5ePZc5Cc/GaQ+M3cVCTmgLtOp/9l8qF
dEX+LPanzXYSLQ1K6Yc5zfDxO/plKtH7ad0ZyINT6oz/3/6rAZZEViqecIRc2WPc
tTOHcp18LFnxRZ/5kKWEu7waLa/mFg5wOFWCuYTCvwLqkUgPOwk8ndJv0426c/qR
D9/0mDJtECMlOhxoGOX0+StAJZVZE65Y+/INExEaAbydyyubVDoZGCNiKP0x9HIg
5JaI2/WbAAY=
=eQ6w
-----END PGP SIGNATURE-----



More information about the ubuntu-devel mailing list