This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

glibc detected - how do i fix it?

General support and discussion of Eggdrop bots.
Post Reply
User avatar
Fire-Fox
Master
Posts: 289
Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null

glibc detected - how do i fix it?

Post by Fire-Fox »

Hey !

I get some wierd error when loading my eggdroop bot

Code: Select all

eggdrop@lvps46-163-77-83:~/androidbot$ *** glibc detected *** ./eggdrop: double free or corruption (!prev): 0x00000000028591c0 ***
======= Backtrace: =========
/lib/libc.so.6[0x2b64f1b649a8]
/lib/libc.so.6(cfree+0x76)[0x2b64f1b66ab6]
/usr/lib/libcrypto.so.0.9.8(CRYPTO_free+0x1d)[0x2b64f17cca4d]
/usr/lib/libcrypto.so.0.9.8(EVP_DigestInit_ex+0x169)[0x2b64f1833989]
/usr/lib/libssl.so.0.9.8(ssl3_get_key_exchange+0xaa7)[0x2b64f1523cd7]
/usr/lib/libssl.so.0.9.8(ssl3_connect+0x708)[0x2b64f1525758]
./eggdrop[0x4311f0]
/home/eggdrop/androidbot/modules/server.so[0x2b64f45adca8]
./eggdrop[0x42365c]
./eggdrop[0x423730]
/home/eggdrop/androidbot/modules/dns.so[0x2b64f41558bf]
./eggdrop[0x429381]
./eggdrop[0x42a15a]
/lib/libc.so.6(__libc_start_main+0xe6)[0x2b64f1b0f1a6]
./eggdrop(memcpy+0x179)[0x403e69]
======= Memory map: ========
00400000-00459000 r-xp 00000000 90:8d 379174980                          /home/eggdrop/androidbot/eggdrop-1.6.20
00658000-0065d000 rw-p 00058000 90:8d 379174980                          /home/eggdrop/androidbot/eggdrop-1.6.20
0065d000-00662000 rw-p 0065d000 00:00 0
0270d000-02882000 rw-p 0270d000 00:00 0                                  [heap]
2b64f0397000-2b64f03b3000 r-xp 00000000 90:8d 360105913                  /lib/ld-2.7.so
2b64f03b3000-2b64f03b6000 rw-p 2b64f03b3000 00:00 0
2b64f05b2000-2b64f05b4000 rw-p 0001b000 90:8d 360105913                  /lib/ld-2.7.so
2b64f05b4000-2b64f06c3000 r-xp 00000000 90:8d 360124280                  /usr/local/lib/libtcl8.5.so
2b64f06c3000-2b64f08c3000 ---p 0010f000 90:8d 360124280                  /usr/local/lib/libtcl8.5.so
2b64f08c3000-2b64f08ce000 rw-p 0010f000 90:8d 360124280                  /usr/local/lib/libtcl8.5.so
2b64f08ce000-2b64f0950000 r-xp 00000000 90:8d 360106072                  /lib/libm-2.7.so
2b64f0950000-2b64f0b4f000 ---p 00082000 90:8d 360106072                  /lib/libm-2.7.so
2b64f0b4f000-2b64f0b51000 rw-p 00081000 90:8d 360106072                  /lib/libm-2.7.so
2b64f0b51000-2b64f0b53000 r-xp 00000000 90:8d 360106070                  /lib/libdl-2.7.so
2b64f0b53000-2b64f0d53000 ---p 00002000 90:8d 360106070                  /lib/libdl-2.7.so
2b64f0d53000-2b64f0d55000 rw-p 00002000 90:8d 360106070                  /lib/libdl-2.7.so
2b64f0d55000-2b64f0ec8000 r-xp 00000000 90:8d 360124555                  /usr/lib/libdns.so.58.1.2
2b64f0ec8000-2b64f10c7000 ---p 00173000 90:8d 360124555                  /usr/lib/libdns.so.58.1.2
2b64f10c7000-2b64f10ce000 rw-p 00172000 90:8d 360124555                  /usr/lib/libdns.so.58.1.2
2b64f10ce000-2b64f10cf000 rw-p 2b64f10ce000 00:00 0
2b64f10cf000-2b64f10e4000 r-xp 00000000 90:8d 360105953                  /lib/libnsl-2.7.so
2b64f10e4000-2b64f12e3000 ---p 00015000 90:8d 360105953                  /lib/libnsl-2.7.so
2b64f12e3000-2b64f12e5000 rw-p 00014000 90:8d 360105953                  /lib/libnsl-2.7.so
2b64f12e5000-2b64f12e7000 rw-p 2b64f12e5000 00:00 0
2b64f12e7000-2b64f12fd000 r-xp 00000000 90:8d 360106085                  /lib/libpthread-2.7.so
2b64f12fd000-2b64f14fd000 ---p 00016000 90:8d 360106085                  /lib/libpthread-2.7.so
2b64f14fd000-2b64f14ff000 rw-p 00016000 90:8d 360106085                  /lib/libpthread-2.7.so
2b64f14ff000-2b64f1503000 rw-p 2b64f14ff000 00:00 0
2b64f1503000-2b64f154f000 r-xp 00000000 90:8d 360124757                  /usr/lib/libssl.so.0.9.8
2b64f154f000-2b64f174e000 ---p 0004c000 90:8d 360124757                  /usr/lib/libssl.so.0.9.8
2b64f174e000-2b64f1755000 rw-p 0004b000 90:8d 360124757                  /usr/lib/libssl.so.0.9.8
2b64f1755000-2b64f1756000 rw-p 2b64f1755000 00:00 0
2b64f1756000-2b64f18c8000 r-xp 00000000 90:8d 360124725                  /usr/lib/libcrypto.so.0.9.8
2b64f18c8000-2b64f1ac7000 ---p 00172000 90:8d 360124725                  /usr/lib/libcrypto.so.0.9.8
2b64f1ac7000-2b64f1aed000 rw-p 00171000 90:8d 360124725                  /usr/lib/libcrypto.so.0.9.8
2b64f1aed000-2b64f1af1000 rw-p 2b64f1aed000 00:00 0
2b64f1af1000-2b64f1c3b000 r-xp 00000000 90:8d 360106031                  /lib/libc-2.7.so
2b64f1c3b000-2b64f1e3a000 ---p 0014a00
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Try recompiling your eggdrop with debugging enabled (make debug; make install), and make sure your shell is set up to do a coredump

Code: Select all

ulimit -c 10240
Then start your eggdrop again, and try to reproduce the error.
If that succeeds, grap the generated coredump, and follow the instructions in the bug report document (doc/BUG-REPORT), especially section 4.8.

That should hopefully provide some details where the memory-leak is located.
NML_375
p
pseudo
Halfop
Posts: 88
Joined: Mon Nov 23, 2009 4:52 am
Location: Bulgaria
Contact:

Post by pseudo »

1.6.20 and libcrypto/libssl? You're using the horrible ssl patch for .20 despite of the numerous warnings in this forum against doing so. I'll pray for your soul but there's not much hope.
User avatar
Fire-Fox
Master
Posts: 289
Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null

Post by Fire-Fox »

I have removed ssl and running without... for now
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
p
pseudo
Halfop
Posts: 88
Joined: Mon Nov 23, 2009 4:52 am
Location: Bulgaria
Contact:

Post by pseudo »

Use 1.8 from cvs. If you could afford running a 3rd party patch, you can also afford using the official development code.
p
phoenixpb
Voice
Posts: 1
Joined: Sun Jun 26, 2011 8:54 am

Post by phoenixpb »

pseudo wrote:Use 1.8 from cvs. If you could afford running a 3rd party patch, you can also afford using the official development code.
I have a similar error
tried with 1.6.20 1.8 and 1.9

Code: Select all

[phoenix@styx eggdrop]$ ./eggdrop

Eggdrop v1.8.0+publistennoident (C) 1997 Robey Pointer (C) 2010 Eggheads
*** glibc detected *** ./eggdrop: free(): invalid next size (fast): 0x0a07aa70 ***

======= Backtrace: =========
/lib/libc.so.6(+0x6ebf5)[0xb737bbf5]
/lib/libc.so.6(+0x6f892)[0xb737c892]
/lib/libc.so.6(cfree+0x6d)[0xb737f97d]
./eggdrop[0x808549d]
./eggdrop[0x8085801]
./eggdrop[0x807dc9a]
./eggdrop[0x804c155]
/lib/libc.so.6(__libc_start_main+0xf3)[0xb7326233]
./eggdrop[0x804c8ed]


t
thommey
Halfop
Posts: 76
Joined: Tue Apr 01, 2008 2:59 pm

Post by thommey »

phoenixpb, you face a different error and it's very likely to be the same one that's resolved here: http://forum.egghelp.org/viewtopic.php?p=97173#97173
Post Reply