On Wed, Sep 30, 2020 at 03:19:47PM +0530, Sanjay Kumar wrote:
> Hi Netsnmp team,
>                            I am using netsnmp-5.8
> Trying to perform SNMP some operation and got the below crash.
> Any patch for this is available?
> 
> (gdb) bt
> #0  __libc_do_syscall () at
> ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:47
> #1  0xf759d182 in __libc_signal_restore_set (set=0xd38fe708)
>     at ../sysdeps/unix/sysv/linux/nptl-signals.h:79
> #2  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:48
> #3  0xf759de0a in __GI_abort () at abort.c:89
> #4  0xf75c4712 in __libc_message (do_abort=do_abort@entry=2, fmt=<optimized
> out>)
>     at ../sysdeps/posix/libc_fatal.c:175
> #5  0xf75c8a76 in malloc_printerr (action=<optimized out>,
>     str=0xf7644b84 "corrupted double-linked list", ptr=<optimized out>,
>     ar_ptr=<optimized out>) at malloc.c:5077

Not from our side but this suggests that your program have trashed the
heap. Make sure you never free anything more than once.

For problems like this valgrind is your friend.

/MF

> #6  0xf75c9e08 in _int_free (av=0xf4400010, p=0xf44634f8, have_lock=0) at
> malloc.c:4021
> #7  0xf5ca646e in _sess_async_send (cb_data=0x0, callback=0x0,
> pdu=0xcd824cf0,
>     sessp=0xdd1c4868) at snmp_api.c:5297
> #8  snmp_sess_async_send (sessp=0xdd1c4868, pdu=0xcd824cf0, callback=0x0,
> cb_data=0x0)
>     at snmp_api.c:5399
> #9  0xf5c9eea0 in snmp_synch_response_cb (ss=0xdd1c48c8,
>     ss@entry=0xf77e8cf0 <__stack_chk_guard>, pdu=pdu@entry=0xcd824cf0,
>     response=response@entry=0xd38fec10, pcb=<optimized out>) at
> snmp_client.c:1061
> #10 0xf6049cd0 in agentx_synch_response (response=0xd38fec10,
> pdu=0xcd824cf0,
>     ss=0xf77e8cf0 <__stack_chk_guard>) at mibgroup/agentx/client.c:96
> #11 agentx_send_ping (ss=ss@entry=0xdd1c48c8) at
> mibgroup/agentx/client.c:481
> #12 0xf6045c7c in agentx_check_session (clientreg=1, clientarg=0xdd1c48c8)
> ---Type <return> to continue, or q <return> to quit---
>     at mibgroup/agentx/subagent.c:1052
> #13 0xf5cb7ad8 in run_alarms () at snmp_alarm.c:218
> #14 0xf6044334 in agent_check_and_process (block=1) at snmp_agent.c:850
> #15 0xf67590e2 in ?? ()
> Backtrace stopped: previous frame identical to this frame (corrupt stack?)
> (gdb)
> 
> Thanks,
> Sanjay


> _______________________________________________
> Net-snmp-coders mailing list
> Net-snmp-coders@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders



_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to