Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: glibc detected ./stats: double free or corruption (fasttop)  (Read 10765 times)

0 Members and 1 Guest are viewing this topic.

Chris

  • Anope User
  • Offline Offline
  • Posts: 2
glibc detected ./stats: double free or corruption (fasttop)
« on: April 04, 2010, 06:38:20 PM »

Denora 1.4.4
Debian 5.0.4
Kernel 2.6.32-linode23 i686
gcc version 4.3.2

make clean, ./Config
Code: [Select]
Saving configuration results in config.cache... done.
./configure  --with-bindir=/home/ircd/stats  --with-datadir=/home/ircd/stats   --with-permissions=077    --enable-crypt  --enable-threading
make (side note: won't work with MAKEFLAGS=-j5; I unset MAKEFLAGS),  make install, cd ~/stats, ./stats:

Code: [Select]
*** glibc detected *** ./stats: double free or corruption (fasttop): 0x0a133f98 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7487845]
/lib/libc.so.6(cfree+0x9c)[0xb74896ec]
./stats(load_ctcp_db+0x1c0)[0x80747b0]
./stats(init+0x745)[0x8085b65]
./stats(main+0xb4)[0x8087494]
/lib/libc.so.6(__libc_start_main+0xe5)[0xb7433455]
./stats[0x8057751]
======= Memory map: ========
08048000-080ae000 r-xp 00000000 ca:00 295153     /home/ircd/stats/stats
080ae000-080b0000 rw-p 00066000 ca:00 295153     /home/ircd/stats/stats
080b0000-0810f000 rw-p 00000000 00:00 0
0a0fd000-0a13f000 rw-p 00000000 00:00 0          [heap]
b7200000-b7221000 rw-p 00000000 00:00 0
b7221000-b7300000 ---p 00000000 00:00 0
b73cd000-b73d9000 r-xp 00000000 ca:00 1097748    /lib/libgcc_s.so.1
b73d9000-b73da000 rw-p 0000b000 ca:00 1097748    /lib/libgcc_s.so.1
b73e1000-b73e9000 r-xp 00000000 ca:00 295157     /home/ircd/stats/modules/runtime/unreal32.so.4Rehzd
b73e9000-b73ea000 rw-p 00008000 ca:00 295157     /home/ircd/stats/modules/runtime/unreal32.so.4Rehzd
b73ea000-b73f3000 r-xp 00000000 ca:00 1097842    /lib/libnss_files-2.7.so
b73f3000-b73f5000 rw-p 00008000 ca:00 1097842    /lib/libnss_files-2.7.so
b73f5000-b73f7000 rw-p 00000000 00:00 0
b73f7000-b741b000 r-xp 00000000 ca:00 1097798    /lib/libm-2.7.so
b741b000-b741d000 rw-p 00023000 ca:00 1097798    /lib/libm-2.7.so
b741d000-b7555000 r-xp 00000000 ca:00 1097837    /lib/libc-2.7.so
b7555000-b7556000 r--p 00138000 ca:00 1097837    /lib/libc-2.7.so
b7556000-b7558000 rw-p 00139000 ca:00 1097837    /lib/libc-2.7.so
b7558000-b755b000 rw-p 00000000 00:00 0
b755b000-b756f000 r-xp 00000000 ca:00 1097826    /lib/libpthread-2.7.so
b756f000-b7571000 rw-p 00013000 ca:00 1097826    /lib/libpthread-2.7.so
b7571000-b7573000 rw-p 00000000 00:00 0
b7573000-b7575000 r-xp 00000000 ca:00 1097834    /lib/libdl-2.7.so
b7575000-b7577000 rw-p 00001000 ca:00 1097834    /lib/libdl-2.7.so
b7577000-b771b000 r-xp 00000000 ca:00 181351     /usr/lib/libmysqlclient.so.15.0.0
b771b000-b775f000 rw-p 001a3000 ca:00 181351     /usr/lib/libmysqlclient.so.15.0.0
b775f000-b7760000 rw-p 00000000 00:00 0
b7760000-b7769000 r-xp 00000000 ca:00 1097805    /lib/libcrypt-2.7.so
b7769000-b776b000 rw-p 00008000 ca:00 1097805    /lib/libcrypt-2.7.so
b776b000-b7793000 rw-p 00000000 00:00 0
b7793000-b77a7000 r-xp 00000000 ca:00 180386     /usr/lib/libz.so.1.2.3.3
b77a7000-b77a8000 rw-p 00013000 ca:00 180386     /usr/lib/libz.so.1.2.3.3
b77a8000-b77b7000 r-xp 00000000 ca:00 1097841    /lib/libresolv-2.7.so
b77b7000-b77b9000 rw-p 0000e000 ca:00 1097841    /lib/libresolv-2.7.so
b77b9000-b77bb000 rw-p 00000000 00:00 0
b77bb000-b77ce000 r-xp 00000000 ca:00 1097832    /lib/libnsl-2.7.so
b77ce000-b77d0000 rw-p 00012000 ca:00 1097832    /lib/libnsl-2.7.so
b77d0000-b77d2000 rw-p 00000000 00:00 0
b77d6000-b77dc000 rw-p 00000000 00:00 0
b77dc000-b77f6000 r-xp 00000000 ca:00 1097804    /lib/ld-2.7.so
b77f6000-b77f8000 rw-p 0001a000 ca:00 1097804    /lib/ld-2.7.so
bfe14000-bfe29000 rw-p 00000000 00:00 0          [stack]
f57fe000-f57ff000 r-xp 00000000 00:00 0          [vdso]

This was working until a system crash two days ago.  I reinstalled libc6 and libmysqlclient15-dev to no avail, and MySQL is running and being used by other programs.  Ideas? Fixes? Further steps to debug?
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: glibc detected ./stats: double free or corruption (fasttop)
« Reply #1 on: April 04, 2010, 06:41:31 PM »

"a system crash" ?

Have you tried to run this with fresh databases, a fresh installation?
Logged

Chris

  • Anope User
  • Offline Offline
  • Posts: 2
Re: glibc detected ./stats: double free or corruption (fasttop)
« Reply #2 on: April 05, 2010, 11:19:51 PM »

I moved ~/stats, recompiled and installed, copied over denora.conf without modification, and the stats binary successfully started.
Logged

Jens Voss

  • Team
  • *
  • Offline Offline
  • Posts: 125
Re: glibc detected ./stats: double free or corruption (fasttop)
« Reply #3 on: May 05, 2010, 10:41:39 AM »

The backtrace looks like the ctcp database is broken. (possibly not saved right ... or it crashed while saving?)
Do you have a copy of the broken database file somewhere?
Logged
Pages: [1]   Go Up