develooper Front page | perl.qpsmtpd | Postings from January 2015

Aw: Re: Issues in the current HEAD

Thread Previous | Thread Next
From:
Hans Salvisberg
Date:
January 5, 2015 12:45
Subject:
Aw: Re: Issues in the current HEAD
Message ID:
trinity-41bb2dea-8b49-4f13-9689-b22639e1f2d7-1420461879353@3capp-gmx-bs46
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>No, this produces</div>

<div>&nbsp;</div>

<div>
<div>Deep recursion on subroutine &quot;Qpsmtpd::Transaction::DESTROY&quot; at lib/Qpsmtpd.pm line 271.<br/>
Deep recursion on subroutine &quot;Qpsmtpd::log&quot; at lib/Qpsmtpd/Transaction.pm line 242.<br/>
Deep recursion on subroutine &quot;Qpsmtpd::varlog&quot; at lib/Qpsmtpd.pm line 93.<br/>
Deep recursion on subroutine &quot;Qpsmtpd::run_hooks_no_respond&quot; at lib/Qpsmtpd.pm line 105.<br/>
Out of memory!</div>

<div>&nbsp;</div>

<div>Hans</div>
</div>

<div>&nbsp;
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b>&nbsp;Montag, 05. Januar 2015 um 01:35 Uhr<br/>
<b>Von:</b>&nbsp;&quot;Matt Simerson&quot; &lt;matt@tnpi.net&gt;<br/>
<b>An:</b>&nbsp;&quot;Hans Salvisberg&quot; &lt;salvisbe@gmx.ch&gt;<br/>
<b>Cc:</b>&nbsp;&quot;Jared Johnson&quot; &lt;jjohnson@efolder.net&gt;, &quot;qpsmtpd@perl.org&quot; &lt;qpsmtpd@perl.org&gt;<br/>
<b>Betreff:</b>&nbsp;Re: Issues in the current HEAD</div>

<div name="quoted-content">
<div>&nbsp;
<div>
<blockquote>
<div>On Jan 4, 2015, at 3:38 PM, Hans Salvisberg &lt;<a href="salvisbe@gmx.ch" target="_parent">salvisbe@gmx.ch</a>&gt; wrote:</div>
&nbsp;

<div>
<div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>
<div>Going to the new HEAD</div>

<div>&nbsp;&nbsp; b1abc66 - qpsmtpd: Add additional dependency for geoip: Math::Complex. (2015-01-03 18:29:08 +0100)</div>

<div>
<div>has brought some relief:</div>

<div>&nbsp;</div>

<div>Handle 2 now gives me only 7 instances of</div>

<div>&nbsp;</div>

<div>
<div>FATAL PLUGIN ERROR [logging::file_3a7]: Can&#39;t call method &quot;notes&quot; on unblessed reference at /home/smtpd/qpsmtpd/plugins/logging/file line 275.</div>

<div>&nbsp;</div>

<div>anymore, even though I still have 4 file loggers enabled. Plus one</div>

<div>&nbsp;</div>

<div>
<div>5014 XX: Can&#39;t call method &quot;notes&quot; on unblessed reference at /home/smtpd/qpsmtpd/plugins/logging/file line 275.</div>

<div>&nbsp;</div>

<div>And the warn_handler message is indeed gone, at least in my test case! Thanks!</div>

<div>&nbsp;</div>

<div>Hans</div>
</div>

<div>&nbsp;</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>

<div>&nbsp;</div>

<div>Seems to be a bug in that logging plugin:</div>

<div>&nbsp;</div>

<div>
<div style="margin: 0.0px;font-size: 14.0px;font-family: Inconsolata;background-color: rgb(255,253,195);">&nbsp; &nbsp;&nbsp;<span style="color: rgb(172,170,33);">if</span> ( &nbsp; !<span style="color: rgb(46,184,197);">&#36;self-&gt;{</span><span style="color: rgb(193,53,30);">_f</span><span style="color: rgb(46,184,197);">}</span></div>

<div style="margin: 0.0px;font-size: 14.0px;font-family: Inconsolata;background-color: rgb(255,253,195);">&nbsp; &nbsp; &nbsp; &nbsp; &#124;&#124; !<span style="color: rgb(46,184,197);">&#36;self-&gt;{</span><span style="color: rgb(193,53,30);">_nosplit</span><span style="color: rgb(46,184,197);">}</span></div>

<div style="margin: 0.0px;font-size: 14.0px;font-family: Inconsolata;background-color: rgb(255,253,195);">&nbsp; &nbsp; &nbsp; &nbsp; &#124;&#124; !<span style="color: rgb(46,184,197);">&#36;transaction</span></div>

<div style="margin: 0.0px;font-size: 14.0px;font-family: Inconsolata;color: rgb(193,53,30);background-color: rgb(255,253,195);"><span style="color: rgb(0,0,0);">&nbsp; &nbsp; &nbsp; &nbsp; &#124;&#124; !</span><span style="color: rgb(46,184,197);">&#36;transaction-&gt;notes</span><span style="color: rgb(0,0,0);">(</span>&#39;file-logged-this-session&#39;<span style="color: rgb(0,0,0);">))</span></div>

<div>&nbsp;</div>
</div>

<div>The last line is 275, and apparently &#36;transaction isn&#39;t a reference there. &#36;transaction can be an empty hash defined in ::Qpsmtpd, which seems like a dumb default, as it will cause arrow operations like this one to blow up). Try this and see if it helps:</div>

<div>&nbsp;</div>

<div>
<div style="margin: 0.0px;font-size: 14.0px;font-family: Inconsolata;background-color: rgb(255,253,195);">--- a/lib/Qpsmtpd.pm</div>

<div style="margin: 0.0px;font-size: 14.0px;font-family: Inconsolata;background-color: rgb(255,253,195);">+++ b/lib/Qpsmtpd.pm</div>

<div style="margin: 0.0px;font-size: 14.0px;font-family: Inconsolata;color: rgb(46,184,197);background-color: rgb(255,253,195);">@@ -244,7 +244,10 @@ sub _load_package_plugin {</div>

<div style="margin: 0.0px;font-size: 14.0px;font-family: Inconsolata;background-color: rgb(255,253,195);">&nbsp;&nbsp; &nbsp; return &#36;plug;</div>

<div style="margin: 0.0px;font-size: 14.0px;font-family: Inconsolata;background-color: rgb(255,253,195);">&nbsp;}</div>

<p style="margin: 0.0px;font-size: 14.0px;font-family: Inconsolata;background-color: rgb(255,253,195);min-height: 15.0px;">&nbsp;</p>

<div style="margin: 0.0px;font-size: 14.0px;font-family: Inconsolata;color: rgb(193,53,30);background-color: rgb(255,253,195);">-sub transaction { return {}; }&nbsp; &nbsp; # base class implements empty transaction</div>

<div style="margin: 0.0px;font-size: 14.0px;font-family: Inconsolata;color: rgb(48,185,35);background-color: rgb(255,253,195);">
<div style="margin: 0.0px;">+sub transaction {</div>

<div style="margin: 0.0px;">+&nbsp; &nbsp; eval &#39;use Qpsmtpd::Transaction&#39;;</div>

<div style="margin: 0.0px;">+&nbsp; &nbsp; return Qpsmtpd::Transaction-&gt;new();</div>

<div style="margin: 0.0px;">+}</div>
</div>

<p style="margin: 0.0px;font-size: 14.0px;font-family: Inconsolata;background-color: rgb(255,253,195);min-height: 15.0px;">&nbsp;</p>

<div style="margin: 0.0px;font-size: 14.0px;font-family: Inconsolata;background-color: rgb(255,253,195);">&nbsp;sub run_hooks {</div>

<div style="margin: 0.0px;font-size: 14.0px;font-family: Inconsolata;background-color: rgb(255,253,195);">&nbsp;&nbsp; &nbsp; my (&#36;self, &#36;hook) = (shift, shift);</div>

<div>&nbsp;</div>
</div>

<div>&nbsp;</div>

<div>Matt</div>

<div>&nbsp;</div>
&nbsp;

<blockquote>
<div>
<div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>
<div>
<div>&nbsp;</div>

<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><b>Gesendet:</b>&nbsp;Sonntag, 04. Januar 2015 um 06:11 Uhr<br/>
<b>Von:</b>&nbsp;&quot;Jared Johnson&quot; &lt;<a href="jjohnson@efolder.net" target="_parent">jjohnson@efolder.net</a>&gt;<br/>
<b>An:</b>&nbsp;&quot;<a href="salvisbe@gmx.ch" target="_parent">salvisbe@gmx.ch</a>&quot; &lt;<a href="salvisbe@gmx.ch" target="_parent">salvisbe@gmx.ch</a>&gt;<br/>
<b>Cc:</b>&nbsp;&quot;<a href="qpsmtpd@perl.org" target="_parent">qpsmtpd@perl.org</a>&quot; &lt;<a href="qpsmtpd@perl.org" target="_parent">qpsmtpd@perl.org</a>&gt;<br/>
<b>Betreff:</b>&nbsp;Re: Issues in the current HEAD</div>

<div>
<p>Regarding the warn_handler message, I probably managed to mess up my recently merged <a href="https://github.com/smtpd/qpsmtpd/pull/168" target="_blank">https://github.com/smtpd/qpsmtpd/pull/168</a> for xinetd mode. Unfortunately my availability will be spotty this week. As a temporary fix, you could use a different mode (I recorded prefork) or un-merge that PR. Of course this may be the least of your problems.</p>

<div class="gmail_quote">On Jan 3, 2015 5:12 PM, <a href="salvisbe@gmx.ch" target="_parent">salvisbe@gmx.ch</a> wrote:

<blockquote class="quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;">
<div>
<div>I&#39;m using xinetd according to <a href="http://wiki.qpsmtpd.org/doku.php?id=deploy:start" target="_blank"> http://wiki.qpsmtpd.org/doku.php?id=deploy:start</a>, i.e. no daemon mode but just running<br/>
<br/>
exec qpsmtpd<br/>
<br/>
<br/>
-----Urspr&uuml;ngliche Nachricht-----<br/>
Gesendet: Saturday, 03 January 2015 um 23:31:06 Uhr<br/>
Von: &quot;Jared Johnson&quot; &lt;<a href="jjohnson@efolder.net" target="_parent">jjohnson@efolder.net</a>&gt;<br/>
An: &quot;<a href="salvisbe@gmx.ch" target="_parent">salvisbe@gmx.ch</a>&quot; &lt;<a href="salvisbe@gmx.ch" target="_parent">salvisbe@gmx.ch</a>&gt;<br/>
Betreff: Re: Issues in the current HEAD<br/>
<br/>
What daemon mode are you using? Prefork?<br/>
--<br/>
*** DoubleCheck identified this as CLEAN. Give feedback:<br/>
*** This is SPAM: <a href="http://filter.emailportal.com/" target="_blank">http://filter.emailportal.com</a><br/>
*** More options: <a href="http://filter.emailportal.com/" target="_blank">http://filter.emailportal.com</a></div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div></div></body></html>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About