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

	<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>2010-08-11T12:14:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[thommey]]></name></author>
		<updated>2010-08-11T12:14:45-04:00</updated>

		<published>2010-08-11T12:14:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93880#p93880</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93880#p93880"/>
		<title type="html"><![CDATA[eggdrop 1.6.20 + SSL patch segfaults with HAVE_NOTIFIERS = 1]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93880#p93880"><![CDATA[
The replacement notifier is a Good Thing. You don't want to undefine that.<br><br>init_tcl initializes the threaddata, so it's required to be run before init_ssl.<br><br>The main.c:1034 init_threaddata(1); is just required in case the notifier isn't replaced =&gt; init_tcl doesn't cause it to be initialized.<br><br>So, the solution I propose is moving init_ssl (main.c:1040) a few lines so that init_tcl() is called before it (or vice versa) in the SSL patch. I could reproduce the crash and moving init_ssl to after init_tcl solved it for me. (Maybe report it as bug to the SSL patch author?)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9830">thommey</a> — Wed Aug 11, 2010 12:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[paef]]></name></author>
		<updated>2010-08-10T22:30:01-04:00</updated>

		<published>2010-08-10T22:30:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93865#p93865</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93865#p93865"/>
		<title type="html"><![CDATA[eggdrop 1.6.20 + SSL patch segfaults with HAVE_NOTIFIERS = 1]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93865#p93865"><![CDATA[
As stated in topic, when we have <br>#define HAVE_TCL_SETNOTIFIER 1 <br>in config the eggdrop segfaults when i try to start it. Traced that to the init_ssl function which sets a threaddata structs ssl part to null.<br><br>However when  HAVE_TCL_SETNOTIFIER is set this struct doesn't seem to get initiated when looking at the code in main.c.<br><br>So to my question is it bad to unset this in config? Will the ssl work if we add another ifndef statement within init_ssl for the part of that function that segfaults.<br><br>Codeparts that matter:<br>main.c:<div class="codebox"><p>Code: </p><pre><code>1033 #ifndef REPLACE_NOTIFIER1034   init_threaddata(1);1035 #endif</code></pre></div>net.c:<div class="codebox"><p>Code: </p><pre><code> 144 void init_ssl() 145 { 146   int i; 147   struct threaddata *td = threaddata(); 148 149   for (i = 0; i &lt; td-&gt;MAXSOCKS; i++) { 150     td-&gt;socklist[i].ssl = NULL; 151   } 152   ...........</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10237">paef</a> — Tue Aug 10, 2010 10:30 pm</p><hr />
]]></content>
	</entry>
	</feed>
