Re: Callchain contains impossible call

From: Miklos Szeredi
Date: Fri Jun 01 2007 - 06:34:18 EST


Hi Krajo,

> this is probably RTFM (where is this manual?), but how did I get a
> callchain on a uniprocessor
> system where there are two functions that cannot be a part of it,
> because they don't call anything ? (kfree_skbmem and __kmalloc). Also
> at the end one function call is there twice.
>
> Seems like stack corruption, but I did try to close others out with
> spin_lock_bh. This part of the code is called from kernel traps and
> softirq for ethernet RX.

I'm not an expert, but I think you basically have two options:

- Turn on CONFIG_FRAME_POINTER

- Gnaw through the stack trace (from bottom to top), matching up the
entry points with actual function calls in the assembly. That way
you'll see which of the entries are bogus, and which correspond to
a real call somewhere in the trace.

Miklos
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/