<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/20055" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2015-10-25T16:09:00-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/20055</id>

		<entry>
		<author><name><![CDATA[polket]]></name></author>
		<updated>2015-10-25T16:09:00-04:00</updated>

		<published>2015-10-25T16:09:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104523#p104523</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104523#p104523"/>
		<title type="html"><![CDATA[Eggdrop + Megahal crashing with &quot;buffer overflow detect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104523#p104523"><![CDATA[
Hey All,<br><br>Hopefully someone has run into this, I've done some searching and I can't find this anywhere.<br><br>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:<br><div class="codebox"><p>Code: </p><pre><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]</code></pre></div>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...<br><br>What I've done:<br><br>I configured eggdrop from source with TCL8.4. I see no buffer errors or warnings in the compile, the compile finishes fine.<br><br>I've edited the mem.c file and increased the memtblsize to 300000, recompiled &amp;&amp; make &amp;&amp; make install etc.<br><br>Running Xubuntu 14.04 64 bit.<br><br><br>EDIT:::<br><br>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.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12577">polket</a> — Sun Oct 25, 2015 4:09 pm</p><hr />
]]></content>
	</entry>
	</feed>
