memcluster.c:436: INSIST(stats[size].gets != 0U) failed.

henka at cityweb.co.za henka at cityweb.co.za
Mon Aug 14 07:43:21 UTC 2006


> would need to see the full stack trace.  someone is calling memput() with
> a
> size that has no outstanding allocations for it.  this is analagous to a
> "double free()" problem in the normal C library.

Thanks for the response, Paul.  Here's the trace:

(gdb) run
Starting program: ispav-milter...

[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 92154)]
[New Thread 32769 (LWP 92169)]
[New Thread 16387 (LWP 92170)]
memcluster.c:470: INSIST(stats[size].gets != 0U) failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 16384 (LWP 92154)]
0x0013a741 in kill () from /lib/libc.so.6
(gdb) bt
#0  0x0013a741 in kill () from /lib/libc.so.6
#1  0x00544771 in pthread_kill () from /lib/libpthread.so.0
#2  0x00544a7b in raise () from /lib/libpthread.so.0
#3  0x0013a4d4 in raise () from /lib/libc.so.6
#4  0x0013ba08 in abort () from /lib/libc.so.6
#5  0x00848a64 in default_assertion_failed (file=0x0, line=0,
    type=assert_require, cond=0x0, print_errno=5558208) at assertions.c:89
#6  0x00852e80 in __memput_record (mem=0x87dedb9, size=400, file=0x0, line=0)
    at memcluster.c:473
#7  0x00852d32 in __memput (mem=0x0, size=0) at memcluster.c:364
#8  0x0083d6cc in freehostent (he=0x87dec70) at gethostent.c:425
#9  0x00ac93ef in mi_opensocket () from /usr/lib/libmilter.so.0
#10 0x00ac8db5 in mi_opensocket () from /usr/lib/libmilter.so.0
#11 0x00ac9990 in mi_listener () from /usr/lib/libmilter.so.0
#12 0x00ac7a7f in smfi_main () from /usr/lib/libmilter.so.0
#13 0x08057e6a in main (argc=27, argv=0xbffa6d64) at ispav-milter.c:5046
(gdb)

Something to do with "__memput (mem=0x0, size=0) at memcluster.c:364"?



More information about the bind-users mailing list