<?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/17800" />

	<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>2011-04-05T14:55:51-04:00</updated>

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

		<entry>
		<author><name><![CDATA[surgeon]]></name></author>
		<updated>2011-04-05T14:55:51-04:00</updated>

		<published>2011-04-05T14:55:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96601#p96601</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96601#p96601"/>
		<title type="html"><![CDATA[MegaHAL - crash on startup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96601#p96601"><![CDATA[
I think that I have found the cause of crash. It seems that it was a blank line at end of file megahal.swp.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11237">surgeon</a> — Tue Apr 05, 2011 2:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[surgeon]]></name></author>
		<updated>2010-06-03T17:07:28-04:00</updated>

		<published>2010-06-03T17:07:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93228#p93228</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93228#p93228"/>
		<title type="html"><![CDATA[MegaHAL - crash on startup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93228#p93228"><![CDATA[
As I understand it I still need to replace malloc.h to stdlib.h in megahal.c file to compile mod?<br><br>In this way, built and run eggdrop, still crashes while loading megahal.mod.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11237">surgeon</a> — Thu Jun 03, 2010 5:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pseudo]]></name></author>
		<updated>2010-06-03T16:38:51-04:00</updated>

		<published>2010-06-03T16:38:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93226#p93226</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93226#p93226"/>
		<title type="html"><![CDATA[MegaHAL - crash on startup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93226#p93226"><![CDATA[
The patch is for cvs, it won't apply cleanly to 1.6.19. As for the environment variable, it clearly makes sense, otherwise I wouldn't bother writting short essays about it.<br><div class="codebox"><p>Code: </p><pre><code>env MALLOC_OPTIONS='Dm' ./eggdrop</code></pre></div>The whole line sets MALLOC_OPTIONS to Dm and runs eggdrop. You're supposed to copy &amp; paste it in your shell to run the bot. I won't go into details, but changing the memory allocation technique helps a purely 32-bit eggdrop to deal with a 64-bit addressing environment.<br><br>If you want to try out the cvs, download the snapshot instead of the 1.6.19 source: <a href="ftp://ftp.eggheads.org/pub/eggdrop/source/snapshot/eggdrop1.6-snapshot.tar.gz" class="postlink">ftp://ftp.eggheads.org/pub/eggdrop/sour ... hot.tar.gz</a><br>It already contains the aforementioned patch, so there's no need to reapply it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10974">pseudo</a> — Thu Jun 03, 2010 4:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[surgeon]]></name></author>
		<updated>2010-06-03T15:51:48-04:00</updated>

		<published>2010-06-03T15:51:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93225#p93225</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93225#p93225"/>
		<title type="html"><![CDATA[MegaHAL - crash on startup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93225#p93225"><![CDATA[
I do not understand something. <br><blockquote class="uncited"><div>env MALLOC_OPTIONS='Dm' ./eggdrop</div></blockquote>This means that variable MALLOC_OPTIONS should be set to <strong class="text-strong">'Dm' ./eggdrop</strong> or only <strong class="text-strong">Dm</strong>?<br>Firtst option does not make sense. Second does not help for megahal malloc.<br><br>Patch created the following files on 1.6.19:<br>./src/mod/server.mod/servmsg.c.rej<br>./src/mod/module.h.rej<br>./src/cmds.c.rej<br>./configure.rej<br><br><br>and on current 1.6(.20):<br>./config.h.in.rej<br>./configure.rej<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11237">surgeon</a> — Thu Jun 03, 2010 3:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pseudo]]></name></author>
		<updated>2010-06-03T14:31:22-04:00</updated>

		<published>2010-06-03T14:31:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93224#p93224</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93224#p93224"/>
		<title type="html"><![CDATA[MegaHAL - crash on startup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93224#p93224"><![CDATA[
There is a known problem with some 64-bit BSDs and eggdrop. Please look at this: <a href="http://trac.eggheads.org/ticket/2" class="postlink">http://trac.eggheads.org/ticket/2</a><br><br>Try the hack there and if it works, consider giving the current CVS a try.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10974">pseudo</a> — Thu Jun 03, 2010 2:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[surgeon]]></name></author>
		<updated>2010-06-01T11:44:17-04:00</updated>

		<published>2010-06-01T11:44:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93216#p93216</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93216#p93216"/>
		<title type="html"><![CDATA[MegaHAL - crash on startup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93216#p93216"><![CDATA[
x64 Freebsd 8.0<blockquote class="uncited"><div>Eggdrop v1.6.19+ctcpfix (C) 1997 Robey Pointer (C) 2008 Eggheads<br>[17:32] --- Loading eggdrop v1.6.19+ctcpfix (Tue Jun  1 2010)<br>[17:32] Listening at telnet port xxxxx (bots).<br>[17:32] Listening at telnet port xxxxx (users).<br>[17:32] Module loaded: blowfish<br>[17:32] Module loaded: dns<br>[17:32] Module loaded: channels<br>[17:32] Module loaded: server<br>[17:32] Module loaded: ctcp<br>[17:32] Module loaded: irc<br>[17:32] Module loaded: transfer         (with lang support)<br>[17:32] Module loaded: share<br>[17:32] Module loaded: compress<br>[17:32] Module loaded: notes            (with lang support)<br>[17:32] Module loaded: console          (with lang support)<br>[17:32] Module loaded: uptime<br>[17:32] .<br><br>[17:32] * Last context: tclhash.c/238 []<br>[17:32] * Please REPORT this BUG!<br>[17:32] * Check doc/BUG-REPORT on how to do so.<br>[17:32] * Wrote DEBUG<br>[17:32] * SEGMENT VIOLATION -- CRASHING!<br>Memory protection violation: 11 (core dumped)</div></blockquote>Back trace:<blockquote class="uncited"><div>This GDB was configured as "amd64-marcel-freebsd"...<br><br>warning: core file may not match specified executable file.<br>Core was generated by `eggdrop-1.6.19'.<br>Program terminated with signal 11, Segmentation fault.<br>Reading symbols from /usr/local/lib/libtcl84.so.1...done.<br>Loaded symbols for /usr/local/lib/libtcl84.so.1<br>Reading symbols from /lib/libm.so.5...done.<br>Loaded symbols for /lib/libm.so.5<br>Reading symbols from /lib/libc.so.7...done.<br>Loaded symbols for /lib/libc.so.7<br>Reading symbols from /usr/home/surgeon/bot/modules/blowfish.so...done.<br>Loaded symbols for /usr/home/surgeon/bot/modules/blowfish.so<br>Reading symbols from /usr/home/surgeon/bot/modules/dns.so...done.<br>Loaded symbols for /usr/home/surgeon/bot/modules/dns.so<br>Reading symbols from /usr/home/surgeon/bot/modules/channels.so...done.<br>Loaded symbols for /usr/home/surgeon/bot/modules/channels.so<br>Reading symbols from /usr/home/surgeon/bot/modules/server.so...done.<br>Loaded symbols for /usr/home/surgeon/bot/modules/server.so<br>Reading symbols from /usr/home/surgeon/bot/modules/ctcp.so...done.<br>Loaded symbols for /usr/home/surgeon/bot/modules/ctcp.so<br>Reading symbols from /usr/home/surgeon/bot/modules/irc.so...done.<br>Loaded symbols for /usr/home/surgeon/bot/modules/irc.so<br>Reading symbols from /usr/home/surgeon/bot/modules/share.so...done.<br>Loaded symbols for /usr/home/surgeon/bot/modules/share.so<br>Reading symbols from /usr/home/surgeon/bot/modules/transfer.so...done.<br>Loaded symbols for /usr/home/surgeon/bot/modules/transfer.so<br>Reading symbols from /usr/home/surgeon/bot/modules/compress.so...done.<br>Loaded symbols for /usr/home/surgeon/bot/modules/compress.so<br>Reading symbols from /lib/libz.so.5...done.<br>Loaded symbols for /lib/libz.so.5<br>Reading symbols from /usr/home/surgeon/bot/modules/notes.so...done.<br>Loaded symbols for /usr/home/surgeon/bot/modules/notes.so<br>Reading symbols from /usr/home/surgeon/bot/modules/console.so...done.<br>Loaded symbols for /usr/home/surgeon/bot/modules/console.so<br>Reading symbols from /usr/home/surgeon/bot/modules/uptime.so...done.<br>Loaded symbols for /usr/home/surgeon/bot/modules/uptime.so<br>Reading symbols from /usr/home/surgeon/bot/modules/megahal.so...done.<br>Loaded symbols for /usr/home/surgeon/bot/modules/megahal.so<br>Reading symbols from /libexec/ld-elf.so.1...done.<br>Loaded symbols for /libexec/ld-elf.so.1<br>#0  0x0000000800a5b386 in strlen () from /lib/libc.so.7<br>(gdb) bt<br>#0  0x0000000800a5b386 in strlen () from /lib/libc.so.7<br>#1  0x0000000801accedb in megahal_start (global_funcs=Variable "global_funcs" is not available.<br>) at .././megahal.mod/megahal.c:2566<br>#2  0x000000000042ada3 in module_load (name=0x800c03900 "megahal") at modules.c:784<br>#3  0x0000000000435a3f in tcl_loadmodule (cd=Variable "cd" is not available.<br>) at tclmisc.c:527<br>#4  0x000000000042eec8 in utf_converter (cdata=0x800c89a70, myinterp=0x800c6c300, objc=2, objv=Variable "objv" is not available.<br>) at tcl.c:352<br>#5  0x00000008006bd6d6 in TclEvalObjvInternal () from /usr/local/lib/libtcl84.so.1<br>#6  0x00000008006bdbd1 in Tcl_EvalEx () from /usr/local/lib/libtcl84.so.1<br>#7  0x0000000800700467 in Tcl_FSEvalFile () from /usr/local/lib/libtcl84.so.1<br>#8  0x000000080070052f in Tcl_EvalFile () from /usr/local/lib/libtcl84.so.1<br>#9  0x000000000042e7df in readtclprog (fname=0x54aec0 "bot") at tcl.c:739<br>#10 0x0000000000410099 in chanprog () at chanprog.c:447<br>#11 0x000000000042553f in main (argc=3, argv=0x7fffffffea68) at ./main.c:814</div></blockquote>I also tried older versions of eggdrop, tcls, even linux. Same effect.<br>Of course, I had to replace the stdlib malloc in megahal.c under fBSD.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11237">surgeon</a> — Tue Jun 01, 2010 11:44 am</p><hr />
]]></content>
	</entry>
	</feed>
