On Fri, Jan 21, 2011 at 01:48:47PM +0300, Egor wrote:
> I wrote my own simple MIB module, used mib2c.scalar.conf. So, I made my
> example like delayed_instance.c.


> this is received by gdb:
> Program received signal SIGSEGV, Segmentation fault.
> _int_malloc (av=<value optimized out>, bytes=<value optimized out>) at
> malloc.c:4339
> 4339    malloc.c: no such file.
>         in malloc.c
> (gdb) bt
> #0  _int_malloc (av=<value optimized out>, bytes=<value optimized out>) at
> malloc.c:4339
> #1  0x0042a682 in __libc_calloc (n=10, elem_size=4) at malloc.c:4065

SIGSEGV in malloc typically indicates that you are writing to memory after it
is freed.
If I were you I would rerun the program under valgrind as that is an excellent
tool to find wild memory accesses.

/MF

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to