snmpd 5.4.1 is crashing where 5.4 didn't

Zack Little <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I'm scratching my head trying to figure this out.  Version 5.4 works fine for me but I can easily make 5.4.1 crash.  I encountered the same thing in the pre-releases and was hoping it would be cleared up in the final 5.4.1 build.  The crash doesn't happen in the same spot.  One way to cause it is to simply do a "snmpwalk" of the whole tree.  That almost always produces a crash the first time.  I can also do an "snmpwalk" on just "IF".  That will cause a crash after two or three times usually. My compiler is arm-linux-gcc."uname -a" output:Linux 2.4.31-uc0 #4 Thu Jul 26 15:13:31 EDT 2007 armv5b unknown++++++++++++++++++++++++++++++++++++++++++++++++strace output: gettimeofday({1185816815, 921486}, NULL) = 0socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 6ioctl(6, 0x8912, 0xbffff93c)            = 0ioctl(6, 0x8912, 0xbffff93c)            = 0ioctl(6, 0x8933, 0xbffff8e4)            = 0 ioctl(6, 0x891b, 0x1fed10)              = 0ioctl(6, 0x8913, 0x1fed10)              = 0ioctl(6, 0x8933, 0xbffff8e4)            = 0ioctl(6, 0x891b, 0x1fed30)              = 0ioctl(6, 0x8913, 0x1fed30)              = 0 ioctl(6, 0x8933, 0xbffff8e4)            = 0ioctl(6, 0x891b, 0x1fed50)              = 0ioctl(6, 0x8913, 0x1fed50)              = 0ioctl(6, 0x8933, 0xbffff8e4)            = 0ioctl(6, 0x891b, 0x1fed70)              = 0 ioctl(6, 0x8913, 0x1fed70)              = 0ioctl(6, 0x8933, 0xbffff8e4)            = 0ioctl(6, 0x891b, 0x1fed90)              = 0ioctl(6, 0x8913, 0x1fed90)              = 0ioctl(6, 0x8933, 0xbffff8e4)            = 0 ioctl(6, 0x891b, 0x1fedb0)              = 0ioctl(6, 0x8913, 0x1fedb0)              = 0close(6)                                = 0brk(0x225000)                           = 0x225000brk(0x237000)                           = 0x237000 brk(0x25b000)                           = 0x25b000old_mmap(NULL, 299008, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0) = 0x4015e000brk(0x215000)                           = 0x215000--- SIGSEGV (Segmentation fault) --- +++ killed by SIGSEGV +++++++++++++++++++++++++++++++++++++++++++++++++dmesg output:snmpd[17214] killed because of sig - 11STACK DUMP:0xbffff854: bffff858 39323634 39353237 382e0000 001fef18 0013430c 0013431c 0xbffff870: 00000100 00000100 4015d380 00000108 bffff8fc 00000020 401467d40xbffff88c: 00000001 00000100 bffff904 00000001 bffff908 bffff904 bffff9000xbffff8a8: bffff8fc 00000001 001e72d0 001ef308 000b2e24 bffff8d4 00000001 0xbffff8c4: bffff8d0 00050000 4015e008 00000000 0004e001 0013430c 0013431c0xbffff8e0: 001ed7a0 001ef308 001ebd08 000df038 bffff908 001eda40 001ec8e80xbffff8fc: 00000000 00000000 00000000 00000000 0013430c 000fb81c 0016a098 0xbffff918: 00000000 00000002 00000001 00000000 00000000 000fbe40 000000010xbffff934: 001ebd08 001e72d0 00000000 001ef308 001c11d8 0011f114 001e6f880xbffff950: 001ef308 000fbfa0 001e72d0 001ef308 0011ef40 001efa88 000fc254 pc : [<000b4c68>]    lr : [<000df624>]    Tainted: Psp : bffff854  ip : 00141094  fp : 00000001r10: bffff8d4  r9 : bffff8c8  r8 : bffff8d0r7 : bffff8cc  r6 : bffff858  r5 : 002197c8  r4 : 001e1985 r3 : 001e1986  r2 : 2e000000  r1 : 401ac00c  r0 : 00000001Flags: nzCv  IRQs on  FIQs on  Mode USER_32  Segment userControl: 39FF  Table: 02850000  DAC: 0000001500008000-00135000 r-xp 00000000 1f:01 187 /bin/snmpd 0013c000-00142000 rw-p 0012c000 1f:01 187 /bin/snmpd00142000-00211000 rwxp 00000000 1f:01 18740000000-40005000 r-xp 00000000 1f:01 72 /lib/ld-uClibc-0.9.27.so40005000-40006000 rw-p 00000000 1f:01 72 4000c000-4000d000 rw-p 00004000 1f:01 72 /lib/ld-uClibc-0.9.27.so4000d000-4000f000 r-xp 00000000 1f:01 54 /lib/libdl-0.9.27.so4000f000-40016000 ---p 00002000 1f:01 54 40016000-40017000 rw-p 00001000 1f:01 54 /lib/libdl-0.9.27.so40017000-400f2000 r-xp 00000000 1f:01 74 /lib/libcrypto.so.0.9.8400f2000-400f9000 ---p 000db000 1f:01 74400f9000-4010b000 rw-p 000da000 1f:01 74 /lib/libcrypto.so.0.9.8 4010b000-4010d000 rw-p 00000000 1f:01 744010d000-40152000 r-xp 00000000 1f:01 60 /lib/libuClibc-0.9.27.so40152000-40159000 ---p 00045000 1f:01 6040159000-4015c000 rw-p 00044000 1f:01 60 /lib/libuClibc- 0.9.27.so4015c000-401af000 rw-p 00000000 1f:01 60bfffa000-c0000000 rwxp ffffb000 1f:01 60 
_________________________________________________________________
See what you’re getting into…before you go there.
http://newlivehotmail.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
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.