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

	<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>2012-05-28T16:37:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[neofutur]]></name></author>
		<updated>2012-05-28T16:37:28-04:00</updated>

		<published>2012-05-28T16:37:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99479#p99479</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99479#p99479"/>
		<title type="html"><![CDATA[bugreport on gentoo]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99479#p99479"><![CDATA[
I just hit this bug, and filed a bugreport on the gentoo bugtracking tool : <br><br><a href="https://bugs.gentoo.org/show_bug.cgi?id=418031#c1" class="postlink">eggdrop crash after upgrading to tcl-8.5.10-r1</a><br><br> 1.6.21 is already available on gentoo :<br><a href="http://packages.gentoo.org/package/net-irc/eggdrop" class="postlink">http://packages.gentoo.org/package/net-irc/eggdrop</a><br>but still marked as unstable.<br><br> if anyone hit the problem on gentoo , 2 solutions :<br><br>* downgrade tcl to dev-lang/tcl-8.5.9 for eggdrop-1.6.19<br>* unmask the "unstable" eggdrop-1.6.21<br><br> feel free to post on the gentoo bugreport to have the package maintainers bump the stable version to eggdrop-1.6.21 <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10887">neofutur</a> — Mon May 28, 2012 4:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-10-01T10:21:05-04:00</updated>

		<published>2011-10-01T10:21:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97828#p97828</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97828#p97828"/>
		<title type="html"><![CDATA[More info on the crash &quot;glibc detected&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97828#p97828"><![CDATA[
Actually, that's just sweeping the problem under the rug, and hoping things won't break later on. The bug is well known, and it has been patched/fixed.<br>Telling malloc/free to ignore the issue will cause crashes further down the execution on certain system setups (see <a href="http://forum.egghelp.org/viewtopic.php?t=18528#97131" class="postlink">http://forum.egghelp.org/viewtopic.php?t=18528#97131</a>).<br><br>Just to emphasize what thommey already pointed out, the eggdrops provided by Ubuntu still uses 1.6.19 (havn't checked the status of Debian though), and there's been quite a few other bugfixes since then. If a patched 1.6.20 package is not available for your distribution, you'd almost always be better off compiling the bot yourself (with the patch applied).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Oct 01, 2011 10:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rynet]]></name></author>
		<updated>2011-09-30T21:30:39-04:00</updated>

		<published>2011-09-30T21:30:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97823#p97823</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97823#p97823"/>
		<title type="html"><![CDATA[More info on the crash &quot;glibc detected&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97823#p97823"><![CDATA[
Run "export MALLOC_CHECK_=4" and it will work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9057">Rynet</a> — Fri Sep 30, 2011 9:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fatalerror]]></name></author>
		<updated>2011-07-24T13:01:29-04:00</updated>

		<published>2011-07-24T13:01:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97276#p97276</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97276#p97276"/>
		<title type="html"><![CDATA[Debian packages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97276#p97276"><![CDATA[
Hi there!<br><br>I am the Debian developer in charge for the eggdrop Debian package. I'm terribly sorry it took me so long to package eggdrop 1.6.20 and to notice this bug in particular. Please do not take this as lack of interest; life hasn't been easy for the last couple of years, but I intend to keep closer contact from now on.<br><br>The x86 .deb files for eggdrop 1.6.20 can already be downloaded from <a href="http://people.debian.org/~gpastore" class="postlink">http://people.debian.org/~gpastore</a><br><br>These packages have just been uploaded to the Debian Archive and should land on unstable/sid shortly. They've also been uploaded with the urgency attribute set to 'high', so that the fix reaches testing/wheezy soon enough.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11739">fatalerror</a> — Sun Jul 24, 2011 1:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[thommey]]></name></author>
		<updated>2011-07-14T12:47:54-04:00</updated>

		<published>2011-07-14T12:47:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97202#p97202</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97202#p97202"/>
		<title type="html"><![CDATA[More info on the crash &quot;glibc detected&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97202#p97202"><![CDATA[
The fix has to be applied to both methods, add_ and rem_. The full diff is visible with enough context to see the function names here (against eggdrop1.8cvs, so don't worry about slight differences and line numbers being off):<br><br><a href="http://cvs.eggheads.org/viewvc/eggdrop1.8/src/tclhash.c?r1=1.3.2.3&amp;r2=1.3.2.4&amp;diff_format=l" class="postlink">http://cvs.eggheads.org/viewvc/eggdrop1 ... f_format=l</a><br><br>The fix is indeed just adding +1 in those two spots.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9830">thommey</a> — Thu Jul 14, 2011 12:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LadyCuddles]]></name></author>
		<updated>2011-07-14T07:07:09-04:00</updated>

		<published>2011-07-14T07:07:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97198#p97198</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97198#p97198"/>
		<title type="html"><![CDATA[More info on the crash &quot;glibc detected&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97198#p97198"><![CDATA[
thommey, I don't profess to be a guru when it comes to compiling, nor a c coder, or for that matter, a master of decyphering diff output, but, your fix is made in the rem_ routine, and not the add_ routine, am I correct? And from what I can tell, the only change is being made ONLY in the rem_ routine by adding the "+1", right???<br><br>I am trying out going for the source tarball, since as you said, the deb packages are almost a full minor version behind.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11722">LadyCuddles</a> — Thu Jul 14, 2011 7:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[thommey]]></name></author>
		<updated>2011-07-12T22:02:48-04:00</updated>

		<published>2011-07-12T22:02:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97191#p97191</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97191#p97191"/>
		<title type="html"><![CDATA[More info on the crash &quot;glibc detected&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97191#p97191"><![CDATA[
Both Debian (unstable) and Ubuntu (oneiric) are still serving an Eggdrop version that has been superseded by a new release for about year now. They seem to be unmaintained or at least not interested in keeping up-to-date. Are there inofficial sources for ".deb"s for Eggdrop packages in their latest stable release (1.6.20)? Otherwise you'd just be patching an old Eggdrop version with a fix and probably keep doing this over and over again with bugs that get fixed in Eggdrop releases. Maybe a better place to ask for an update and/or patched version is the Debian bugtracker? (because of a higher chance of success and the greater benefit as everyone who's using their package will see this bug with the new tcl release)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9830">thommey</a> — Tue Jul 12, 2011 10:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LadyCuddles]]></name></author>
		<updated>2011-07-12T17:57:09-04:00</updated>

		<published>2011-07-12T17:57:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97189#p97189</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97189#p97189"/>
		<title type="html"><![CDATA[More info on the crash &quot;glibc detected&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97189#p97189"><![CDATA[
Can someone post the deb package with the patch already in it? That way those of us who prefer not to make/make install, and download the -dev packages, can just get the updated bot as we usually do...<br><br>Thanks for any, and all, help <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11722">LadyCuddles</a> — Tue Jul 12, 2011 5:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[thommey]]></name></author>
		<updated>2011-11-07T20:20:41-04:00</updated>

		<published>2011-07-08T17:53:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97173#p97173</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97173#p97173"/>
		<title type="html"><![CDATA[More info on the crash &quot;glibc detected&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97173#p97173"><![CDATA[
Hey,<br><br>I tracked down the bug and it happens because of a behavioural change between Tcl8.5.9 and Tcl8.5.10.<br>(If you care for details: Tcl_ScanElement used to overestimate the required space, it was rewritten and apparently doesn't do that always anymore. Whether or not the terminating '\0' for strings is included in the estimate is the issue here, eggdrop's code assumes it is while the real return values of Tcl_ScanElement indicate otherwise.)<br><br>Here's a patch (patch -p1 &lt; this.patch) to fix the issue:<br><div class="codebox"><p>Code: </p><pre><code>diff -urN eggdrop1.6.20/src/tclhash.c eggdrop1.6.20.fix/src/tclhash.c--- eggdrop1.6.20/src/tclhash.c2010-06-29 17:52:24.000000000 +0200+++ eggdrop1.6.20.fix/src/tclhash.c2011-07-08 23:45:37.000000000 +0200@@ -1264,7 +1264,7 @@   for (i = 0; cc[i].name; i++) {     egg_snprintf(p, sizeof p, "*%s:%s", tl-&gt;name,                  cc[i].funcname ? cc[i].funcname : cc[i].name);-    l = nmalloc(Tcl_ScanElement(p, &amp;k));+    l = nmalloc(Tcl_ScanElement(p, &amp;k)+1);     Tcl_ConvertElement(p, l, k | TCL_DONT_USE_BRACES);     table[0].cdata = (void *) cc[i].func;     add_cd_tcl_cmds(table);@@ -1282,7 +1282,7 @@   for (i = 0; cc[i].name; i++) {     egg_snprintf(p, sizeof p, "*%s:%s", table-&gt;name,                  cc[i].funcname ? cc[i].funcname : cc[i].name);-    l = nmalloc(Tcl_ScanElement(p, &amp;k));+    l = nmalloc(Tcl_ScanElement(p, &amp;k)+1);     Tcl_ConvertElement(p, l, k | TCL_DONT_USE_BRACES);     Tcl_DeleteCommand(interp, p);     unbind_bind_entry(table, cc[i].flags, cc[i].name, l);</code></pre></div><strong class="text-strong">This has been fixed in Eggdrop1.6.21, please upgrade instead.</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9830">thommey</a> — Fri Jul 08, 2011 5:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-07-04T16:34:56-04:00</updated>

		<published>2011-07-04T16:34:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97157#p97157</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97157#p97157"/>
		<title type="html"><![CDATA[More info on the crash &quot;glibc detected&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97157#p97157"><![CDATA[
Unfortunately, I still can't reproduce this with tcl8.5.10.<br>Could you once again modify the add_builtins function as below, and then post the added debug output here?<br><div class="codebox"><p>Code: </p><pre><code>void add_builtins(tcl_bind_list_t *tl, cmd_t *cc){  int k, i, size;  char p[1024], *l;  cd_tcl_cmd table[2];  table[0].name = p;  table[0].callback = tl-&gt;func;  table[1].name = NULL;  for (i = 0; cc[i].name; i++) {    egg_snprintf(p, sizeof p, "*%s:%s", tl-&gt;name,                 cc[i].funcname ? cc[i].funcname : cc[i].name);    size = Tcl_ScanElement(p, &amp;k);    putlog(LOG_MISC, "*", "Allocating %u bytes for builtin \"%s\", flags: %u", size, p, k);    l = nmalloc(size);    Tcl_ConvertElement(p, l, k | TCL_DONT_USE_BRACES);    table[0].cdata = (void *) cc[i].func;    add_cd_tcl_cmds(table);    bind_bind_entry(tl, cc[i].flags, cc[i].name, l);    nfree(l);  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Jul 04, 2011 4:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[JPB]]></name></author>
		<updated>2011-07-04T15:33:07-04:00</updated>

		<published>2011-07-04T15:33:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97156#p97156</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97156#p97156"/>
		<title type="html"><![CDATA[I had the same stack trace....]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97156#p97156"><![CDATA[
in tclHash as the other users have reported.<br><br>I tried your change; it did not help. Still crashes in call to nfree in add_builtins, that you already know about.<br><br>Want any more data?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11715">JPB</a> — Mon Jul 04, 2011 3:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-07-04T14:40:54-04:00</updated>

		<published>2011-07-04T14:40:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97155#p97155</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97155#p97155"/>
		<title type="html"><![CDATA[More info on the crash &quot;glibc detected&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97155#p97155"><![CDATA[
One more thing,<br>Could you try editing the add_builtins function (tclhash.c) like below, and see if that sorts the issue with tcl8.5.10<br><div class="codebox"><p>Code: </p><pre><code>void add_builtins(tcl_bind_list_t *tl, cmd_t *cc){  int k, i;  char p[1024], *l;  cd_tcl_cmd table[2];  table[0].name = p;  table[0].callback = tl-&gt;func;  table[1].name = NULL;  for (i = 0; cc[i].name; i++) {    egg_snprintf(p, sizeof p, "*%s:%s", tl-&gt;name,                 cc[i].funcname ? cc[i].funcname : cc[i].name);    k = TCL_DONT_USE_BRACES;    l = nmalloc(Tcl_ScanElement(p, &amp;k));    Tcl_ConvertElement(p, l, k | TCL_DONT_USE_BRACES);    table[0].cdata = (void *) cc[i].func;    add_cd_tcl_cmds(table);    bind_bind_entry(tl, cc[i].flags, cc[i].name, l);    nfree(l);  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Jul 04, 2011 2:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-07-04T14:12:56-04:00</updated>

		<published>2011-07-04T14:12:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97154#p97154</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97154#p97154"/>
		<title type="html"><![CDATA[More info on the crash &quot;glibc detected&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97154#p97154"><![CDATA[
Hi JPB,<br>Could you try to get a coredump and do a backtrace on the crash?<br>See if the crash occurs within the add_builtins function in tclhash.c, if that's the case, then something must've been broken in the Tcl_ScanElement/Tcl_ConvertElement function pair of v8.5.10 (which seems to have been heavily re-written in 8.5.10).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Jul 04, 2011 2:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[JPB]]></name></author>
		<updated>2011-07-04T13:45:09-04:00</updated>

		<published>2011-07-04T13:45:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97153#p97153</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97153#p97153"/>
		<title type="html"><![CDATA[More info on the crash &quot;glibc detected&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97153#p97153"><![CDATA[
Folks -<br><br>Here's more info on the crash in eggdrop. What you are seeing is 'glibc detected' - meaning that your C library you use is detecting a memory corruption issue. This is a good thing, because memory should not be corrupted.<br><br>I have a system built from scratch, and I can recreate the crashing bots at will by using Tcl/Tk 8.5.10. If I back out to Tcl/Tk 8.5.9, everything works fine and dandy. It just takes minutes for me to swap back and forth, compiling and installing Tcl/Tk, then rebuilding Eggdrop. I do know that my header files are updating properly, etc. There appears to be some sort of issue with Eggdrop and the latest TCL - what, I do not know.<br><br>But this is why some people see a problem, and some don't. Many haven't upgraded to Tcl 8.5.10 yet.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11715">JPB</a> — Mon Jul 04, 2011 1:45 pm</p><hr />
]]></content>
	</entry>
	</feed>
