egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Eggdrop + Megahal crashing with "buffer overflow detect

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
polket
Voice


Joined: 25 Oct 2015
Posts: 1

PostPosted: Sun Oct 25, 2015 4:09 pm    Post subject: Eggdrop + Megahal crashing with "buffer overflow detect Reply with quote

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:

*** 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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber