This is the mail archive of the
mailing list for the elfutils project.
Re: [patch] Detect infinite backtraces
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Tue, 21 Jan 2014 17:11:26 +0100
- Subject: Re: [patch] Detect infinite backtraces
On Mon, 2014-01-20 at 10:57 -0500, Frank Ch. Eigler wrote:
> > That is not very pretty. Lets just make sure unwinding works normally in
> > all cases, so we don't need such hacks.
> (Note that in the context of backtraces, you need to consider not only
> 100% standards-compliant and perfect state, but the possible presence
> of corrupted data. Handling "all cases" including those with corrupted
> register / stack / ELF data could be a challenge.
Right. That is actually why I like having a consistency check, it can
not just be bad CFI/DWARF data, but also a corrupt user state that makes
us return invalid frames. My point was that we should make sure that any
consistency check we do use doesn't reject normally valid cases.
Especially since we seem to have identified various cases already that
would need exception handling to suppress the check otherwise.