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.

Eggdrop + Megahal crashing with "buffer overflow detect

General support and discussion of Eggdrop bots.
Post Reply
p
polket
Voice
Posts: 1
Joined: Sun Oct 25, 2015 4:01 pm

Eggdrop + Megahal crashing with "buffer overflow detect

Post by polket »

Hey All,

Hopefully someone has run into this, I've done some searching and I can't find this anywhere.

I've gotten eggdrop 1.6.21 to run MegaHAL 3.5, and it runs for a little while, does some brain saves and if I kill the bot to restart it, upon start up it fails with this error trying to load the megahal.brn file:

Code: Select all

*** buffer overflow detected ***: ./eggdrop terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7338f)[0x7faf2cdef38f]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7faf2ce86c9c]
/lib/x86_64-linux-gnu/libc.so.6(+0x109b60)[0x7faf2ce85b60]
/lib/x86_64-linux-gnu/libc.so.6(__fread_chk+0x13c)[0x7faf2ce8623c]
/home/denux/eggdrop/modules/megahal.so(+0x8dcc)[0x7faf2afeadcc]
/home/denux/eggdrop/modules/megahal.so(megahal_start+0x1d8)[0x7faf2afeb5c8]
./eggdrop[0x42e06e]
./eggdrop[0x43b219]
./eggdrop[0x4317b8]
/usr/lib/x86_64-linux-gnu/libtcl8.4.so(TclEvalObjvInternal+0x33a)[0x7faf2d58c1da]
/usr/lib/x86_64-linux-gnu/libtcl8.4.so(Tcl_EvalEx+0x368)[0x7faf2d58cde8]
/usr/lib/x86_64-linux-gnu/libtcl8.4.so(Tcl_FSEvalFile+0x1e9)[0x7faf2d5cc109]
/usr/lib/x86_64-linux-gnu/libtcl8.4.so(Tcl_EvalFile+0x27)[0x7faf2d5cadb7]
./eggdrop[0x4325c7]
./eggdrop[0x411581]
./eggdrop[0x403a5b]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7faf2cd9dec5]
./eggdrop[0x4040b9]
the only way to get it to start back up is by deleting the megahal brain file and let it create a new one, rinse repeat with the same issue later...

What I've done:

I configured eggdrop from source with TCL8.4. I see no buffer errors or warnings in the compile, the compile finishes fine.

I've edited the mem.c file and increased the memtblsize to 300000, recompiled && make && make install etc.

Running Xubuntu 14.04 64 bit.


EDIT:::

Looks like I fixed it... I started completely from scratch on a CentOS 6 box and the problem has gone away. I think it was a mix of perhaps Xubuntu not acting nicely, or my initial compile / set up was not done correctly which is more likely.
Post Reply