Re: getting crash in netsnmp_send_traps, is there any patch for netsnmp-5.8 for below crash path?

Magnus Fromreide <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <[email protected]>
On Fri, Sep 18, 2020 at 08:21:35PM +0530, Sanjay Kumar wrote:
> Hi Expert,
> 
>           I am getting a crash in the below backtrace path.

You have removed most of the interesting parts of the stack trace.

Given the information you have provided there is no way for us to help
you. Please provide a full call trace and if you have some private modules
in the call path then please provide those as well or anonymized ones that
exhibit the same behaviour.

> 
> I am not sure, it because of* Input to **send_trap_vars* or *some issue
> in  netsnmp_send_traps, at  agent_trap.c:1014*

It is most likely the input - lots of people do manage to send traps.

Could you please elaborate on the input, "<optimized out>" ain't exactly
helpful.

> Wanted to check if anyone encountered the crash in the below path?

Nope, I have never seen one there.

> Or any patch is available for this part of the code for netsnmp-5.8?

Nope, no changes sinze v5.8

> 
> *#5  netsnmp_send_traps (trap=-1, specific=<optimized out>,
> enterprise=enterprise@entry=0xf5c0fa7c <trap_version_id>,
> enterprise_length=enterprise_length@entry=10, vars=vars@entry=0xf35f1f70, *
> 
> *    context=context@entry=0x0, flags=flags@entry=0) at agent_trap.c:1014*
> 
> #6  0xf5c05656 in send_enterprise_trap_vars (trap=<optimized out>,
> specific=<optimized out>, enterprise=enterprise@entry=0xf5c0fa7c
> <trap_version_id>, enterprise_length=enterprise_length@entry=10,
> 
>     vars=0xf35f1f70) at agent_trap.c:1047
> 
> #7  0xf5c05676 in send_trap_vars (trap=<optimized out>, specific=<optimized
> out>, vars=<optimized out>) at agent_trap.c:1311
> 
> 
> Thanks,
> 
> Sanjay


> _______________________________________________
> Net-snmp-coders mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.