<div dir="ltr">Sorry, this is the full backtrace which gdb gives:<br>(gdb) bt<br>#0 strlen (str=0xffffffffdf3f9d40 <Address 0xffffffffdf3f9d40 out of bounds>)<br> at /usr/src/lib/libc/string/strlen.c:100<br>#1 0x0000000800ae2ae7 in PyString_FromString ()<br> from /usr/local/lib/libpython2.7.so.1<br>#2 0x0000000805a760a7 in milter_wrap_connect ()<br> from /usr/local/lib/python2.7/site-packages/milter.so<br>#3 0x0000000805c82c7b in mi_sendok () from /usr/local/lib/libmilter.so.6<br>#4 0x0000000805c81bc5 in mi_engine () from /usr/local/lib/libmilter.so.6<br>#5 0x0000000805c84d11 in mi_start_session ()<br> from /usr/local/lib/libmilter.so.6<br>#6 0x000000080082ac35 in thread_start (curthread=0x801d9d800)<br> at /usr/src/lib/libthr/thread/thr_create.c:289<br>#7 0x0000000000000000 in ?? ()<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 20 November 2017 at 17:54, Stuart Gathman <span dir="ltr"><<a href="mailto:stuart@gathman.org" target="_blank">stuart@gathman.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div class="m_6787759023144657741moz-cite-prefix">This seems to be a postfix problem, as
it does not happen with sendmail - indeed on my servers most mail
traffic is IPv6. EL7 has postfix 2.10, do you know if it has the
problem? I'll try in a bit. What version of pymilter? <br>
<br>
Possibly, postfix passes the args to the connect callback slightly
differently than sendmail, and there may be a work around we could
do in pymilter.<br>
<br>
Your traceback needs to include a function within miltermodule.c
to be useful. It is unlikely that strlen is the problem.<span class=""><br>
<br>
On 11/20/2017 07:24 AM, Attila Nagy wrote:<br>
</span></div><span class="">
<blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>Pymilter segfaults when I try to connect to
postfix (3.2) from an IPv6 address.<br>
</div>
</div>
An easy way to reproduce this is to add:<br>
smtpd_authorized_xclient_hosts = <a href="http://127.0.0.0/8" target="_blank">127.0.0.0/8</a><br>
</div>
to postfix <a href="http://main.cf" target="_blank">main.cf</a><br>
</div>
and then do the following:<br>
</div>
$ nc localhost 25<br>
220 localhost ESMTP Postfix<br>
XCLIENT ADDR=IPV6:::1<br>
<br>
pymilter dies with:<br>
Segmentation fault (core dumped)<br>
</div>
<div><br>
</div>
<div>postfix logs this:</div>
<div>warning: milter unix:/tmp/milter.sock: can't read
SMFIC_CONNECT reply packet header: No error: 0<br>
</div>
<div><br>
</div>
gdb says:<br>
#0 strlen (str=0xffffffffdf3f9d40 <Address
0xffffffffdf3f9d40 out of bounds>)<br>
at /usr/src/lib/libc/string/<wbr>strlen.c:100</div>
</blockquote>
</span></div>
<br>______________________________<wbr>_________________<br>
Pymilter mailing list<br>
<a href="mailto:Pymilter@gathman.org">Pymilter@gathman.org</a><br>
<a href="https://gathman.org/mailman/listinfo/pymilter" rel="noreferrer" target="_blank">https://gathman.org/mailman/<wbr>listinfo/pymilter</a><br>
<br></blockquote></div><br></div>
<!DSPAM:15FDD94FE62785977234968>