Re: Core dump generated in snmp_alarm.c

2024-01-03 Thread Wes Hardaker via Net-snmp-coders
Venkateswarlu K writes: > We are using net-snmp version 5.7.3 in our ARM based Access Point. Recently we > are observing snmp core in snmp_alarm.c file with below bt. Based on the image, we'd need to see in a debugger what the 'a' structure looks like. I'm not sure how the alarm stack got corru

Re: Core dump generated in snmp_alarm.c

2023-10-12 Thread Venkateswarlu K
Can someone help me with this ? Thanks, Venkateswarlu On Tue, Oct 10, 2023 at 2:07 PM Venkateswarlu K wrote: > Hi All, > > We are using net-snmp version 5.7.3 in our ARM based Access Point. > Recently we are observing snmp core in snmp_alarm.c file with below bt. > > Reading symbols from > /

Core dump generated in snmp_alarm.c

2023-10-10 Thread Venkateswarlu K
Hi All, We are using net-snmp version 5.7.3 in our ARM based Access Point. Recently we are observing snmp core in snmp_alarm.c file with below bt. Reading symbols from /home/administrator/core_debug/SCG-145228-1/lib/libnetsnmpagent.so.30...done. Loaded symbols for /home/administrator/core_debug/S

snmptrapd core-dump while forwarding V3 INFORM's

2020-12-07 Thread Feroz
Hi, Im using net-snmp 5.7.2. I want to forward V3 INFORM's from VM1 to VM2. snmptrapd crashed while forwarding V3 INFORM. For my user case I have to run snmptrapd on both VM1 and VM2. VM1 will receive INFORM/TRAP and forward it to VM2. >From VM1 when I send link-up INFORM to localhost, snmptrapd

Re: Net-SNMP 5.8 core dump

2020-05-26 Thread Bart Van Assche
On 2020-05-26 10:49, David Moriconi (dmoricon) via Net-snmp-coders wrote: > The Net-SNMP daemon crashed with the following error (full backtrace can > be found below): > > Error in `/usr/local/netsnmp/netsnmp_base/sbin/snmpd': malloc(): > smallbin double linked list corrupted: 0x56546e6a9840 >

Net-SNMP 5.8 core dump

2020-05-26 Thread David Moriconi (dmoricon) via Net-snmp-coders
Hi all, The Net-SNMP daemon crashed with the following error (full backtrace can be found below): Error in `/usr/local/netsnmp/netsnmp_base/sbin/snmpd': malloc(): smallbin double linked list corrupted: 0x56546e6a9840 We are using Net-SNMP 5.8 built from revision rev2c837e1 of V5-8-patches br

Re: [net-snmp:patches] #1388 patch for bug 2923: snmpv3 bulkget errors result in double free core dump

2019-06-19 Thread Bill Fenner
atch! >> -- >> >> * [patches:#1388] <https://sourceforge.net/p/net-snmp/patches/1388/> >> patch for bug 2923: snmpv3 bulkget errors result in double free core dump* >> >> *Status:* open >> *Group:* backport-needed >>

Re: [net-snmp:patches] #1388 patch for bug 2923: snmpv3 bulkget errors result in double free core dump

2019-05-20 Thread Bill Fenner
To try to make it easier I've created a fake pull request, allowing comments on the diff and discussion, and a clear set of diffs between this stuff and 5.8-patches: https://github.com/fenner/net-snmp/pull/3 Bill On Mon, May 20, 2019 at 11:27 AM Bill Fenner wrote: > Some of the back and for

Re: [net-snmp:patches] #1388 patch for bug 2923: snmpv3 bulkget errors result in double free core dump

2019-05-20 Thread Bill Fenner
Some of the back and forth with rstory happened on the admin list; some of it was unicast. I put together all of the patches, even though there are now at least 2 fixes for the problem, and published them at https://github.com/fenner/net-snmp/commits/rstory-getbulk-patches . I can't imagine that

Re: [net-snmp:patches] #1388 patch for bug 2923: snmpv3 bulkget errors result in double free core dump

2019-05-20 Thread Bill Fenner
On Tue, May 14, 2019 at 1:38 PM Bart Van Assche wrote: > On 5/14/19 4:01 PM, Bill Fenner wrote: > > Perhaps getbulk no longer dumps core, but I can not get it to return > > anything but GENERR any more, and, it seems to leak memory. > > > > Any "large enough" request seems to fail in this way, e.

Re: [net-snmp:patches] #1388 patch for bug 2923: snmpv3 bulkget errors result in double free core dump

2019-05-15 Thread Bart Van Assche
On 5/14/19 4:01 PM, Bill Fenner wrote: > Perhaps getbulk no longer dumps core, but I can not get it to return > anything but GENERR any more, and, it seems to leak memory. > > Any "large enough" request seems to fail in this way, e.g., > snmpbulkget -v 3 ... -Cn 5 -Cr 50 sysUpTime sysUpTime sysUpTi

Re: [net-snmp:patches] #1388 patch for bug 2923: snmpv3 bulkget errors result in double free core dump

2019-05-14 Thread Bart Van Assche
On 5/14/19 4:01 PM, Bill Fenner wrote: > Perhaps getbulk no longer dumps core, but I can not get it to return > anything but GENERR any more, and, it seems to leak memory. > > Any "large enough" request seems to fail in this way, e.g., > snmpbulkget -v 3 ... -Cn 5 -Cr 50 sysUpTime sysUpTime sysUpTi

Re: [net-snmp:patches] #1388 patch for bug 2923: snmpv3 bulkget errors result in double free core dump

2019-05-14 Thread Bill Fenner
> > * [patches:#1388] <https://sourceforge.net/p/net-snmp/patches/1388/> patch > for bug 2923: snmpv3 bulkget errors result in double free core dump* > > *Status:* open > *Group:* backport-needed > *Created:* Tue Mar 05, 2019 09:56 AM UT

Re: Core dump with net-snmp-5.8

2019-04-11 Thread Anders Wallin
posted by Anders, and I tried to add the >>>> description. >>>> >> This patch fixes the missing NETSNMP_CALLBACK_OP_RESEND callback. >>>> >> >>>> >> - 0002-snmplib-snmp_api-Remove-the-request-on-the-session-w.patch >>>&g

Re: Core dump with net-snmp-5.8

2019-04-10 Thread Josef Ridky
"Masayoshi Mizuma" | Cc: "Josef Ridky" , "Net-SNMP Coders" | Sent: Tuesday, April 9, 2019 12:54:09 PM | Subject: Re: Core dump with net-snmp-5.8 | | Now it works fine! | | thx | Anders Wallin | | | On Tue, Apr 9, 2019 at 2:26 AM Masayoshi Mizuma | wrote: | | > Hi

Re: Core dump with net-snmp-5.8

2019-04-10 Thread Sam Tannous
ternal session. >>> >> >>> >> Thanks, >>> >> Masa >>> >> >>> >> On 4/3/19 9:34 AM, Anders Wallin wrote: >>> >>> The introduction of that code fixes another issue; >>> >>> "commit 56c30b

Re: Core dump with net-snmp-5.8

2019-04-09 Thread Sam Tannous
d Dec 20 21:52:10 2017 + >> >>> >> >>> NEWS: snmplib: PATCH: 1349: Fix perl/other crash against bad >> SNMPv3 >> >>> agent >> >>> >> >>> With the patch in 1214, the snmp_api code assumed that if magic >&g

Re: Core dump with net-snmp-5.8

2019-04-09 Thread Anders Wallin
set, it was the "struct synch-state" from snmp_client. Of course, > >>> magic belongs to the caller, and the perl library uses it > >> differently, > >>> so reaching into it is verboten. Introduce a new callback (that > >>>

Re: Core dump with net-snmp-5.8

2019-04-08 Thread Masayoshi Mizuma
;>> >>> I think the problem is really about shutting down the agentx connection >>> when one(1) response is to late. I have >>> done 2 patches (one that only write a better log message and one that >>> removes the "bad" code. >>> W

Re: Core dump with net-snmp-5.8

2019-04-08 Thread Anders Wallin
only write a better log message and one that > > removes the "bad" code. > > With these patches I don't get any crash. I think that 5.7.3 has this > issue > > as well, but it can not be crashed with the agentofdead code > > > > Can you please try this? &g

Re: Core dump with net-snmp-5.8

2019-04-08 Thread Masayoshi Mizuma
please try this? > > Regards > Anders Wallin > > > On Wed, Apr 3, 2019 at 12:35 PM Josef Ridky wrote: > >> Hi, >> >> I have compared net-snmp-5.7.3 and net-snmp-5.8 and I have found, that >> following callbacks in snmplib/snmp_api.c causes the co

RE: Core dump with net-snmp-5.8

2019-04-05 Thread Matsumoto, Shogo
3.6.1.4.1.9 -Ona Regards, Shogo Matsumoto From: Anders Wallin [mailto:[email protected]] Sent: Thursday, April 4, 2019 8:37 PM To: [email protected]<mailto:[email protected]> Cc: [email protected]<mailto:[email protected]

Re: Core dump with net-snmp-5.8

2019-04-04 Thread Anders Wallin
I will check, but it will be tomorrow I don't know how I read the code last time, I was referring to the wrong commit where the code was introduced, it was introduced with "commit b7b50bbac7f21a924149d03da26ff0a44b25ec60 Author: VMwareDev Randy Date: Mon Jun 22 22:20:43 2015 -0400 snmp_send

Re: Core dump with net-snmp-5.8

2019-04-04 Thread Matsumoto, Shogo
Hi, The issue also occurs with the following patches. NEWS: snmplib: PATCH: 1349: Fix perl/other crash against bad SNMPv3 0001-agentx-logging-to-late-responses.patch 0002-agentx-do-not-shut-down-all-sessions-when-one-sessio.patch The issue occurs with the following patch (2914) too but I

Re: Core dump with net-snmp-5.8

2019-04-03 Thread Anders Wallin
nd I have found, that > following callbacks in snmplib/snmp_api.c causes the core dump issue: > > --- old/snmplib/snmp_api.c 2019-04-03 12:13:55.126769866 +0200 > +++ new/snmplib/snmp_api.c 2019-04-03 12:15:18.353420790 +0200 > @@ -6731,9 +6731,9 @@ snmp_resend_request

Re: Core dump with net-snmp-5.8

2019-04-03 Thread Josef Ridky
Hi, I have compared net-snmp-5.7.3 and net-snmp-5.8 and I have found, that following callbacks in snmplib/snmp_api.c causes the core dump issue: --- old/snmplib/snmp_api.c 2019-04-03 12:13:55.126769866 +0200 +++ new/snmplib/snmp_api.c 2019-04-03 12:15:18.353420790 +0200 @@ -6731,9

Re: Core dump with net-snmp-5.8

2019-04-02 Thread Anders Wallin
Hi Josef, I can reproduce the issue using the master branch, I will take a look at it later tonight or tomorrow Regards Anders Wallin On Tue, Apr 2, 2019 at 3:42 PM Josef Ridky wrote: > Hi, > > thanks for your patch. Unfortunately, even when I have applied it, it > still ends wi

Re: Core dump with net-snmp-5.8

2019-04-02 Thread Josef Ridky
Hi, thanks for your patch. Unfortunately, even when I have applied it, it still ends with core dump due of 'double free or corruption (fasttop)' When I run snmpd with -Dsnmp_agent,agentx/master it ends with: agentx/master: sending pdu (req=0x1d4,trans=0x1d3,sess=0x5) snmp_agent

Re: Core dump with net-snmp-5.8

2019-04-02 Thread Anders Wallin
calhost snmpd[12073]: malloc(): smallbin double linked > list corrupted > Mar 28 06:52:43 localhost systemd[1]: Started Process Core Dump (PID > 13652/UID 0). > Mar 28 06:52:48 localhost systemd[1]: snmpd.service: Main process exited, > code=dumped, status=6/ABRT > Mar 28 06:52:48 loca

Core dump with net-snmp-5.8

2019-04-02 Thread Josef Ridky
calhost snmpd[12073]: malloc(): smallbin double linked list corrupted Mar 28 06:52:43 localhost systemd[1]: Started Process Core Dump (PID 13652/UID 0). Mar 28 06:52:48 localhost systemd[1]: snmpd.service: Main process exited, code=dumped, status=6/ABRT Mar 28 06:52:48 localhost systemd[1]: snmpd.servic

Re: Core dump on Sun 5.10 in udpTable.c

2014-04-22 Thread Niels Baggesen
Den 31-03-2014 16:05, Brian Platt skrev: > Cores being created on a Sun O/S 5.10 server: > > Below is info that maybe helpful. If a different version should be used > please advise. What version of Net-SNMP? You might want to try the 5.7.3 pre-release, which is supposed to fix problems with (to

Core dump on Sun 5.10 in udpTable.c

2014-04-08 Thread Brian Platt
Cores being created on a Sun O/S 5.10 server: Below is info that maybe helpful. If a different version should be used please advise. If you talk with Net-SNMP guys you can tell them that place of the crash is in their udpTable.c module ocsfw@WdccLabFW05 /FusionWorks/luka/JIRA/1505 $ file /us

Re: net-snmp stopping with core dump

2012-10-03 Thread Wes Hardaker
Mohammad Shamim writes: > Need help your help to resolve the net-snmp crash issue with core dump > file on solaris 10 servers. You should use gdb or a similar debugger to figure out where it's crashing. [we actually have a good wiki page about how to do that, but our wiki is br

net-snmp stopping with core dump

2012-09-25 Thread Mohammad Shamim
Hi Need help your help to resolve the net-snmp crash issue with core dump file on solaris 10 servers. Regards Mohammad Shamim UNIX Administrator HCL, Noida-SEZ, Sec-126, 3A, Infra Tower India - 201301 Desk Phone : +1-424-230-0835 Extn. 40835 Mobile: +91- 786493

Re: core dump while agentx subagent destroy a row with rowstatus

2010-11-03 Thread Robert Story
On Wed, 3 Nov 2010 18:34:58 +0100 Claus wrote: CK> It happens while de-allocate an index of a shared table which was CK> never allocated. CK> The core dump does not ocure every time, its depends on the agentx CK> traffic so far, CK> but the session times out and the subage

Re: core dump while agentx subagent destroy a row with rowstatus

2010-11-03 Thread Claus Klein
It happens while de-allocate an index of a shared table which was never allocated. The core dump does not ocure every time, its depends on the agentx traffic so far, but the session times out and the subagent mib vars are never seen. Who has written this agentx code? There seems a general

Re: core dump while agentx subagent destroy a row with rowstatus

2010-11-03 Thread Robert Story
On Thu, 28 Oct 2010 20:43:21 +0200 Claus wrote: CK> I am working with net-snmp as master agent and a subagent which CK> register a private MIB with a table. CK> CK> First I create a row with set the RowStatus = createAndGo, set the CK> row object (in my example a DisplayString). CK> Than I d

core dump while agentx subagent destroy a row with rowstatus

2010-10-28 Thread Claus Klein
Hi, I am working with net-snmp as master agent and a subagent which register a private MIB with a table. First I create a row with set the RowStatus = createAndGo, set the row object (in my example a DisplayString). Than I destroy this row again. While de-register the row, while working

Re: Information about core dump

2010-10-18 Thread Wes Hardaker
>>>>> On Sat, 16 Oct 2010 12:16:23 +0200, Pierluigi >>>>> said: P> In this case the process dies end exit with a core dump error. P> Why? It certainly shouldn't do that, but it sounds specific to your particular environment and possibly code. You'

Information about core dump

2010-10-16 Thread Pierluigi
Good morning. I would like to ask you a question. My process is running SNMP requests to remote hosts by reading the IP addresses from a file. It works perfectly until it finds a consecutive series of host unreachable. In this case the process dies end exit with a core dump error. Why

Re: Core dump

2009-04-28 Thread Dave Shield
2009/4/28 inyaven sakarai : > # gdb /usr/local/sbin/snmpd ./core.snmpd.20701 > BACKTRACE > (gdb) bt > #0  0xfed31d50 in strlen () from /usr/lib/libc.so.1 > #1  0xff26bdfc in var_hrswinst () from /usr/local/lib/libnetsnmpmibs.so.15 [snip] It's a bit difficult to be sure what's gone wrong with t

Re: Core dump

2009-04-28 Thread inyaven sakarai
debugging information of the core dump done with gdb tool. Below is the output   # gdb /usr/local/sbin/snmpd ./core.snmpd.20701 This GDB was configured as "sparc-sun-solaris2.10"... Reading symbols from /usr/local/lib/libnetsnmpagent.so.15...done. Loaded symbols for /usr/local/lib/libnetsnmpa

Re: Core dump

2009-04-27 Thread Wes Hardaker
> On Mon, 27 Apr 2009 02:59:52 -0700 (PDT), inyaven sakarai > said: is>  fed31d50 strlen   (ffbff070, ffbfee70, ffbfee6c, 0, ffbfee68, ffbfee64) + 50 is>  ff30dadc netsnmp_old_api_helper (30, 125980, 1d4c70, 1891f0, ffbff070, 0) + 234 This output though better than nothing is still a

Core dump

2009-04-27 Thread inyaven sakarai
Hi there,   I have installed the latest netsnmp in a Solaris 10 machine. SunOS umobile-p-usms01 5.10 Generic_127127-11 sun4v sparc SUNW,SPARC-Enterprise-T5220   Now, everytime I do a snmpwalk it creates 3 core files in the root directory.   Below is what I "tried" to analyse   r...@umobile-p-usms0

Re: core dump in netsnmp_check_outstanding_agent_requests

2006-06-03 Thread Thomas Anders
Fong Tsui wrote: > I am running into a core dump in > netsnmp_check_outstanding_agent_requests(). > It is v5.0.9 and on Linux. The 5.0.x branch is about to be EOLed. Can you reproduce this with 5.0.11.rc1? Updating to a current branch (5.3.1.pre3 etc.) is recommended.

core dump in netsnmp_check_outstanding_agent_requests

2006-06-02 Thread Fong Tsui
Hi, everybody, I am running into a core dump in netsnmp_check_outstanding_agent_requests(). It is v5.0.9 and on Linux. The following is the gdb output. It seems that a session in agent_delegated_list has been freed but has not been set to NULL. Has anybody seen this problem or know the fix

Re: core dump in snmp_timeout()

2005-11-07 Thread Robert Story
On Fri, 04 Nov 2005 16:41:24 -0500 Haizhu wrote: HL> I am using net-snmp 5.2.8, and my applicaiton runs on linux. There is no such release. HL> snmp_timeout() does not take any parameters, I don't really know what it HL> is doing underneath, I don't have any particular request to send. The stack

RE: core dump in snmp_timeout()

2005-11-04 Thread Bruce Shaw
>I am using net-snmp 5.2.8, and my applicaiton runs on linux. Did I miss something? I thought we were debating releasing 5.2.2. This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and or privileged information. Please cont

Re: core dump in snmp_timeout()

2005-11-04 Thread Haizhu Liu
urceforge.net To: "Haizhu Liu" <[EMAIL PROTECTED]> CC: [email protected] Subject: Re: core dump in snmp_timeout() Date: Fri, 4 Nov 2005 14:06:05 -0500 On Mon, 31 Oct 2005 16:34:25 -0500 Haizhu wrote: HL> My application core dumped at HL> HL> (gdb) where

Re: core dump in snmp_timeout()

2005-11-04 Thread Robert Story
On Mon, 31 Oct 2005 16:34:25 -0500 Haizhu wrote: HL> My application core dumped at HL> HL> (gdb) where HL> #0 0x40075036 in snmp_resend_request () from /usr/lib/libnetsnmp.so.5 HL> #1 0x40075647 in snmp_sess_timeout () from /usr/lib/libnetsnmp.so.5 HL> #2 0x40074f88 in snmp_timeout () from /usr

core dump on snmp_sess_close

2005-11-02 Thread Haizhu Liu
Hi, My code core dumped at #0 0x4002f0dd in pthread_mutex_lock () from /lib/libpthread.so.0 #1 0x402ed568 in free () from /lib/libc.so.6 #2 0x40065360 in snmp_free_session () from /usr/lib/libnetsnmp.so.5 #3 0x400654a4 in snmp_sess_close () from /usr/lib/libnetsnmp.so.5 Can somebody give me

core dump in snmp_timeout()

2005-10-31 Thread Haizhu Liu
Hi, My application core dumped at (gdb) where #0 0x40075036 in snmp_resend_request () from /usr/lib/libnetsnmp.so.5 #1 0x40075647 in snmp_sess_timeout () from /usr/lib/libnetsnmp.so.5 #2 0x40074f88 in snmp_timeout () from /usr/lib/libnetsnmp.so.5 it happened when the agent I am trying to rea

Re: Core dump in parsing identifier with MacAddress

2005-08-23 Thread Dave Shield
On Fri, 2005-08-19 at 17:23 -0400, Stefan Raab wrote: > My MIB (CISCO-DOT11-ASSOCIATIONS) has the following index definition: > Everytime I try and use this MIB I get a core dump I've just tried running a command over this MIB, and it works fine. What exactly do you mean by &quo

Core dump in parsing identifier with MacAddress

2005-08-19 Thread Stefan Raab
,     cDot11ClientAddress    } cDot11ClientAddress is "SYNTAX MacAddress" Everytime I try and use this MIB I get a core dump  at line 4204 of mib.c (current cvs version) in  _get_realloc_symbol:     if (strcmp(get_tc_descriptor(tp->tc_index), "

core dump when using override

2004-06-22 Thread John Lash
I noticed that whenever I use an override in my snmpd.conf file, I get a core dump. I compiled net-snmp-5.1.1 on slackware 9.1. For example: override sysDescr.0 octet_str "foo" will cause the daemon to toss core while it is parsing the config file. The problem is in agent_