From: <no...@so...> - 2001-01-29 21:13:50
|
Bug #129876, was updated on 2001-Jan-23 17:45 Here is a current snapshot of the bug. Project: net-snmp Category: None Status: Closed Resolution: Fixed Bug Group: None Priority: 5 Submitted by: nobody Assigned to : nobody Summary: bug for snmp_shutdown Details: Dear Sir/Madam, I try to free all memory with snmp_shutdwon for checking memory leak of my program, I found a bug from snmp_shutdown with dmalloc. Simon Li Sim...@te... I use ucd-snmp-4.2 under Debian Linux. Program received signal SIGABRT, Aborted. 0x400ae931 in kill () from /lib/libc.so.6 (gdb) bt #0 0x400ae931 in kill () from /lib/libc.so.6 #1 0x40059ef9 in pthread_kill () from /lib/libpthread.so.0 #2 0x4005a375 in raise () from /lib/libpthread.so.0 #3 0x400afc71 in abort () from /lib/libc.so.6 #4 0x807fca0 in _dmalloc_die (silent_b=0) at error.c:391 #5 0x807fd05 in dmalloc_error (func=0x8092539 "_chunk_free") at error.c:427 #6 0x8083fef in _chunk_free (file=0x805b97e "\203Ä \203Ã\030OyÁ\213}ü1Àü¹", line=0, pnt=0x0, realloc_b=0) at chunk.c:2878 #7 0x8080359 in _loc_free (file=0x805b97e "\203Ä \203Ã\030OyÁ\213}ü1Àü¹", line=0, pnt=0x0) at malloc.c:754 #8 0x8080469 in free (pnt=0x0) at malloc.c:910 #9 0x805b97e in unload_all_mibs () at parse.c:3536 #10 0x8053917 in shutdown_mib () at mib.c:1277 #11 0x805e654 in snmp_shutdown (type=0x8087e3c "snmpapp") at snmp_api.c:700 #12 0x804ef47 in snmp_end () at snmpgettget.c:425 #13 0x804af39 in child (rflag=1, cflag=0, dflag=0) at snmpgett.c:425 #14 0x804a851 in main (argc=2, argv=0xbffffc24) at snmpgett.c:147 (gdb) q Follow-Ups: Date: 2001-Jan-29 13:13 By: hardaker Comment: Thanks for the bug report! We've fixed the problem for the next release of the net-snmp package. ------------------------------------------------------- Date: 2001-Jan-24 18:41 By: nobody Comment: Hi, I check in detail, there is statement in line 3536 in parse.c, it is free(ptc->hint); after it was changed into if(ptc->hint!=NULL) free(ptc->hint); it is OK. It should not be real bug. Simon Li ------------------------------------------------------- For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=129876&group_id=12694 |