[rt-devel] rt-mailgate bouncing with Encode.pm error

Jamie Wilkinson jaq at spacepants.org
Mon Jun 23 01:35:56 EDT 2003


Hi,

Since about 3.03pre2 we've been having mail sent to the mailgate bounce with
the following message:


<contact at syd.harbour.anchor.net.au>: Command died with status 32:
    "/usr/bin/rt-mailgate --queue enquiries --action correspond --url
    https://rt.engineroom.anchor.net.au/". Command output: RT server error.
    The RT server which handled your email did not behave as expected. It said:
    <html><body>  <p align="center"><font face="Verdana, Arial, Helvetica,
    sans-serif"><b>System error</b></font></p> <table border="0"
    cellspacing="0" cellpadding="1">  <tr>   <td nowrap="nowrap" align="left"
    valign="top"><font face="Verdana, Arial, Helvetica, sans-serif"
    size="-2"><b>error:</b>&nbsp;</font></td>   <td align="left"
    valign="top"><font face="Verdana, Arial, Helvetica, sans-serif"
    size="-2">panic: sv_setpvn called with negative strlen at
    /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Encode.pm line
    140.<br></font></td>  </tr>  <tr>   <td nowrap="nowrap" align="left"
    valign="top"><font face="Verdana, Arial, Helvetica, sans-serif"
    size="-2"><b>context:</b>&nbsp;</font></td>   <td align="left" valign="top"
    nowrap="nowrap"><font face="Verdana, Arial, Helvetica, sans-serif"
    size="-2">    <table border="0" cellpadding="0" cellspacing="0">      <tr>
    <td nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial,
    Helvetica, sans-serif" size="-2"><b>...</b>&nbsp;</font></td>      <td
    align="left" valign="top" nowrap="nowrap"><font face="Verdana, Arial,
    Helvetica, sans-serif" size="-2"></font></td>     </tr>      <tr>      <td
    nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial,
    Helvetica, sans-serif" size="-2"><b>136:</b>&nbsp;</font></td>      <td
    align="left" valign="top" nowrap="nowrap"><font face="Verdana, Arial,
    Helvetica, sans-serif" size="-2">    unless(defined $enc){</font></td>
    </tr>      <tr>      <td nowrap="nowrap" align="left" valign="top"><font
    face="Verdana, Arial, Helvetica, sans-serif"
    size="-2"><b>137:</b>&nbsp;</font></td>      <td align="left" valign="top"
    nowrap="nowrap"><font face="Verdana, Arial, Helvetica, sans-serif"
    size="-2"> require Carp;</font></td>     </tr>      <tr>      <td
    nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial,
    Helvetica, sans-serif" size="-2"><b>138:</b>&nbsp;</font></td>      <td
    align="left" valign="top" nowrap="nowrap"><font face="Verdana, Arial,
    Helvetica, sans-serif" size="-2"> Carp::croak(&quot;Unknown encoding
    '$name'&quot;);</font></td>     </tr>      <tr>      <td nowrap="nowrap"
    align="left" valign="top"><font face="Verdana, Arial, Helvetica,
    sans-serif" size="-2"><b>139:</b>&nbsp;</font></td>      <td align="left"
    valign="top" nowrap="nowrap"><font face="Verdana, Arial, Helvetica,
    sans-serif" size="-2">    }</font></td>     </tr>      <tr>      <td
    nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial,
    Helvetica, sans-serif" size="-2"><b>140:</b>&nbsp;</font></td>      <td
    align="left" valign="top" nowrap="nowrap"><font face="Verdana, Arial,
    Helvetica, sans-serif" size="-2"><font color=red>    my $octets =
    $enc-&gt;encode($string,$check);</font></font></td>     </tr>      <tr>
    <td nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial,
    Helvetica, sans-serif" size="-2"><b>141:</b>&nbsp;</font></td>      <td
    align="left" valign="top" nowrap="nowrap"><font face="Verdana, Arial,
    Helvetica, sans-serif" size="-2">    return undef if ($check &amp;&amp;
    length($string));</font></td>     </tr>      <tr>      <td nowrap="nowrap"
    align="left" valign="top"><font face="Verdana, Arial, Helvetica,
    sans-serif" size="-2"><b>142:</b>&nbsp;</font></td>      <td align="left"
    valign="top" nowrap="nowrap"><font face="Verdana, Arial, Helvetica,
    sans-serif" size="-2">    return $octets;</font></td>     </tr>      <tr>
    <td nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial,
    Helvetica, sans-serif" size="-2"><b>143:</b>&nbsp;</font></td>      <td
    align="left" valign="top" nowrap="nowrap"><font face="Verdana, Arial,
    Helvetica, sans-serif" size="-2">}</font></td>     </tr>      <tr>      <td
    nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial,
    Helvetica, sans-serif" size="-2"><b>144:</b>&nbsp;</font></td>      <td
    align="left" valign="top" nowrap="nowrap"><font face="Verdana, Arial,
    Helvetica, sans-serif" size="-2"></font></td>     </tr>      <tr>      <td
    nowrap="nowra 

The error hidden inside that mess is

  panic: sv_setpvn called with negative strlen at
  /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Encode.pm line 140.

and then some context.

I've upgraded to rc2, rc4, and now the released 3.0.3 with no improvement,
the mailgate is still bouncing mails that come in.  It's not every mail,
though, and I can't yet see a pattern in the mails to see what's causing it.

-- 
jaq at spacepants.org                           http://spacepants.org/jaq.gpg



More information about the Rt-devel mailing list