Double frees in tests

Help
2013-09-07
2013-09-07
  • Myckel Habets
    Myckel Habets
    2013-09-07

    I'm trying to build seeks and run its tests, but I get aborts due to double frees:

    make check-TESTS
    make[4]: Entering directory `/var/tmp/portage/www-apps/seeks-0.4.0/work/seeks-0.4.0/src/utils/tests'
    MiscutilTest.
    join_string_list
    chomp_cpp
    glibc detected /var/tmp/portage/www-apps/seeks-0.4.0/work/seeks-0.4.0/src/utils/tests/.libs/ut_miscutil: double free or corruption (out): 0x0000000001ed6380 ***
    ======= Backtrace: =========
    /lib64/libc.so.6(+0x7af26)[0x7f93a6e9cf26]
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libstdc++.so.6(ZdlPv+0x1f)[0x7f93a77b428a]
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libstdc++.so.6(_ZdaPv+0x18)[0x7f93a77b42c9]
    /var/tmp/portage/www-apps/seeks-0.4.0/work/seeks-0.4.0/src/utils/tests/.libs/ut_miscutil(_ZN7testing8internal6StringD1Ev+0x27)[0x404873]
    /usr/lib64/libgtest.so.0(_ZSt8_DestroyIN7testing8internal6StringEEvPT
    +0x18)[0x7f93a80c05f4]
    /usr/lib64/libgtest.so.0(_ZNSt12_Destroy_auxILb0EE9destroyIPN7testing8internal6StringEEEvT_S6_+0x26)[0x7f93a80bffb0]
    /usr/lib64/libgtest.so.0(ZSt8_DestroyIPN7testing8internal6StringEEvT_S4+0x23)[0x7f93a80bf55a]
    /usr/lib64/libgtest.so.0(_ZSt8_DestroyIPN7testing8internal6StringES2_EvT_S4_RSaIT0_E+0x27)[0x7f93a80be5c9]
    /usr/lib64/libgtest.so.0(_ZNSt6vectorIN7testing8internal6StringESaIS2_EED1Ev+0x36)[0x7f93a80c11b0]
    /lib64/libc.so.6(
    cxa_finalize+0xa5)[0x7f93a6e5a9e5]
    /usr/lib64/libgtest.so.0(+0x445d6)[0x7f93a80995d6]

    And the second:

    QCStaticTest.
    charset_check_and_conversion
    glibc detected /var/tmp/portage/www-apps/seeks-0.4.0/work/seeks-0.4.0/src/utils/tests/.libs/ut_charset_conv: double free or corruption (out): 0x00000000022c3380 ***
    ======= Backtrace: =========
    /lib64/libc.so.6(+0x7af26)[0x7f04fc1e2f26]
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libstdc++.so.6(ZdlPv+0x1f)[0x7f04fcafa28a]
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libstdc++.so.6(_ZdaPv+0x18)[0x7f04fcafa2c9]
    /var/tmp/portage/www-apps/seeks-0.4.0/work/seeks-0.4.0/src/utils/tests/.libs/ut_charset_conv(_ZN7testing8internal6StringD1Ev+0x27)[0x4070d1]
    /usr/lib64/libgtest.so.0(_ZSt8_DestroyIN7testing8internal6StringEEvPT
    +0x18)[0x7f04fd4065f4]
    /usr/lib64/libgtest.so.0(_ZNSt12_Destroy_auxILb0EE9destroyIPN7testing8internal6StringEEEvT_S6_+0x26)[0x7f04fd405fb0]
    /usr/lib64/libgtest.so.0(ZSt8_DestroyIPN7testing8internal6StringEEvT_S4+0x23)[0x7f04fd40555a]
    /usr/lib64/libgtest.so.0(_ZSt8_DestroyIPN7testing8internal6StringES2_EvT_S4_RSaIT0_E+0x27)[0x7f04fd4045c9]
    /usr/lib64/libgtest.so.0(_ZNSt6vectorIN7testing8internal6StringESaIS2_EED1Ev+0x36)[0x7f04fd4071b0]
    /lib64/libc.so.6(
    cxa_finalize+0xa5)[0x7f04fc1a09e5]
    /usr/lib64/libgtest.so.0(+0x445d6)[0x7f04fd3df5d6]

     
  • beniz
    beniz
    2013-09-07

    Hi, can you get 0.4.2 and try again please ?
    thanks.

     
  • Myckel Habets
    Myckel Habets
    2013-09-07

    I couldn't find 0.4.2 in the download section, so I got the current git version. Bug is still present there.