Ethereal-dev: Re: [Ethereal-dev] Crash in SNMP code (current cvs)

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Florian Lohoff <flo@xxxxxxxxxx>
Date: Fri, 9 Nov 2001 10:14:16 -0800
On Fri, Nov 09, 2001 at 12:32:32AM -0800, Guy Harris wrote:
> On Wed, Nov 07, 2001 at 10:37:49AM -0800, Florian Lohoff wrote:
> > #0  0x404542ca in malloc () from /lib/libc.so.6
> > #1  0x40454134 in malloc () from /lib/libc.so.6
> > #2  0x402a9429 in g_malloc () from /usr/lib/libglib-1.2.so.0
> 
> That's probably a corrupted arena bug.  Some piece of code (whether in
> Ethereal or not) might be writing past a chunk of allocated memory; if
> it's reproducible, you might want to try running it with Electric Fence.

I tried already with efence and gdb - The crash tends to wander around
sometimes in strlen sometimes malloc (After changing a bit and recompiling)
But always through the snmp code.

> I tried it with a capture here, and it didn't crash; whether that's a
> malloc difference (FreeBSD 3.4 vs. glibc whatever), or a libsnmp
> difference (4.1.2 vs. 4.2.1), or a version-of-Ethereal difference (CVS
> as of this instant vs. CVS as of when you'd updated it), or a
> capture-file diffeence, or what, I don't know.

I tried to track down the bug but its not that obvious whats going on.
If i'll find a different libsnmp version i'll retry ...

Flo
-- 
Florian Lohoff                  flo@xxxxxxxxxx             +49-5201-669912
Nine nineth on september the 9th              Welcome to the new billenium

Attachment: pgpDsQMgNPs6O.pgp
Description: PGP signature