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

This is a discussion on memcluster.c:436: INSIST(stats[size].gets != 0U) failed. - DNS ; I'm trying to run a sendmail/milter threaded applicaton (linked with libbind) on debian sarge. The process fails with this error: memcluster.c:436: INSIST(stats[size].gets != 0U) failed. This happens with bind-9.3.1 and bind-9.3.3b1. Any pointers would be appreciated....

+ Reply to Thread
Results 1 to 3 of 3

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

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

    I'm trying to run a sendmail/milter threaded applicaton (linked with
    libbind) on debian sarge.

    The process fails with this error:

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

    This happens with bind-9.3.1 and bind-9.3.3b1.

    Any pointers would be appreciated.



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

    henka@cityweb.co.za writes:

    > I'm trying to run a sendmail/milter threaded applicaton (linked with
    > libbind) on debian sarge.
    >
    > The process fails with this error:
    >
    > memcluster.c:436: INSIST(stats[size].gets != 0U) failed.
    >
    > This happens with bind-9.3.1 and bind-9.3.3b1.
    >
    > Any pointers would be appreciated.


    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.
    --
    Paul Vixie



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

    > 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"?



+ Reply to Thread