Re: 4.7.4 zlib buffer error?

David R Bosso <[email protected]> Thu, 8 Dec 2016 08:33:50 -0800
Newsgroups gmane.network.lftp.user
Message-ID <[email protected]>
--===============6250815929047538499==
Content-Type: multipart/alternative; boundary="Apple-Mail=_2A91FC49-9800-4CFB-B245-420D69A8ABA6"


--Apple-Mail=_2A91FC49-9800-4CFB-B245-420D69A8ABA6
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On Dec 7, 2016, at 10:58 PM, Alexander V. Lukyanov <[email protected]> =
wrote:
>=20
> On Wed, Dec 07, 2016 at 09:16:29AM -0800, David R Bosso wrote:
>> Thanks. Let me know if this helps. This was with "mirror =
--parallel=3D20 =E2=80=94reverse"
>>=20
>> -David
>>=20
>> lftp: buffer_zlib.cc:131: virtual void =
DataDeflator::PutTranslated(Buffer*, const char*, int): Assertion `ret =
!=3D (-2)' failed.
>>=20
>> Program received signal SIGABRT, Aborted.
>> 0x00007ffff646c5f7 in raise () from /lib64/libc.so.6
>> Missing separate debuginfos, use: debuginfo-install =
glibc-2.17-106.el7_2.8.x86_64 gmp-6.0.0-12.el7_1.x86_64 =
gnutls-3.3.8-14.el7_2.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 =
krb5-libs-1.13.2-12.el7_2.x86_64 libcom_err-1.42.9-7.el7.x86_64 =
libffi-3.0.13-16.el7.x86_64 libgcc-4.8.5-4.el7.x86_64 =
libselinux-2.2.2-6.el7.x86_64 libstdc++-4.8.5-4.el7.x86_64 =
libtasn1-3.8-2.el7.x86_64 ncurses-libs-5.9-13.20130511.el7.x86_64 =
nettle-2.7.1-4.el7.x86_64 openssl-libs-1.0.1e-51.el7_2.7.x86_64 =
p11-kit-0.20.7-3.el7.x86_64 pcre-8.32-15.el7_2.1.x86_64 =
readline-6.2-9.el7.x86_64 trousers-0.3.13-1.el7.x86_64 =
xz-libs-5.1.2-12alpha.el7.x86_64 zlib-1.2.7-15.el7.x86_64
>> (gdb) bt
>> #0  0x00007ffff646c5f7 in raise () from /lib64/libc.so.6
>> #1  0x00007ffff646dce8 in abort () from /lib64/libc.so.6
>> #2  0x00007ffff6465566 in __assert_fail_base () from /lib64/libc.so.6
>> #3  0x00007ffff6465612 in __assert_fail () from /lib64/libc.so.6
>> #4  0x000000000055b13e in DataDeflator::PutTranslated =
(this=3D0x13e1fb0, target=3D0x14e4958,
>>    put_buf=3D0x1672e30 =
"\334[Esm;\255\301\302H\233q\234\343\034\236\275\351\001s^\361\005\276\202=
\221Iw\005\303\305+m\017\020R\003z\034\221[=DA=AE\242\272f\231-\364\220\27=
3\210\300&5#w$\fu\306y\240\016R\373\304=D6=9A}=E5=9D=A5\334SE%\312\356\313=
.\026>:\023\334\347\216\063\315a\307\342}?P\323\365G\236\322\177&\314\354\=
232)#\311e9\355\333\361\351L\vQ\353\061\303\341H\365-3O\177(DLp\f\001\030\=
031\344\363\320c<sX^\026=D5=AE\337\303Q\315%\235\325\324\302\066\224?=CB=89=
\211s\302\222s\372t\240\n^\006\326.\265+{\211\256!\232O\264]H\342e#=CB=8C`=
ay9\343\030\351]\275", <incomplete sequence \317>..., size=3D4947) at =
buffer_zlib.cc:131
>=20
> Thanks. Please do also these commands in gdb:
>=20
>    frame 4
>    p z
>    p &z
>    p z.state
>=20
> Also try to run lftp under valgrind.
>=20
> --
>   Alexander.

(gdb) frame 4
#4  0x000000000055b13e in DataDeflator::PutTranslated (this=3D0x13e1fb0, =
target=3D0x14e4958,=20
    put_buf=3D0x1672e30 =
"\334[Esm;\255\301\302H\233q\234\343\034\236\275\351\001s^\361\005\276\202=
\221Iw\005\303\305+m\017\020R\003z\034\221[=DA=AE\242\272f\231-\364\220\27=
3\210\300&5#w$\fu\306y\240\016R\373\304=D6=9A}=E5=9D=A5\334SE%\312\356\313=
.\026>:\023\334\347\216\063\315a\307\342}?P\323\365G\236\322\177&\314\354\=
232)#\311e9\355\333\361\351L\vQ\353\061\303\341H\365-3O\177(DLp\f\001\030\=
031\344\363\320c<sX^\026=D5=AE\337\303Q\315%\235\325\324\302\066\224?=CB=89=
\211s\302\222s\372t\240\n^\006\326.\265+{\211\256!\232O\264]H\342e#=CB=8C`=
ay9\343\030\351]\275", <incomplete sequence \317>..., size=3D4947) at =
buffer_zlib.cc:131
131	      assert(ret !=3D Z_STREAM_ERROR);  /* state not clobbered =
*/
(gdb) p z
$1 =3D {
  next_in =3D 0x1672e30 =
"\334[Esm;\255\301\302H\233q\234\343\034\236\275\351\001s^\361\005\276\202=
\221Iw\005\303\305+m\017\020R\003z\034\221[=DA=AE\242\272f\231-\364\220\27=
3\210\300&5#w$\fu\306y\240\016R\373\304=D6=9A}=E5=9D=A5\334SE%\312\356\313=
.\026>:\023\334\347\216\063\315a\307\342}?P\323\365G\236\322\177&\314\354\=
232)#\311e9\355\333\361\351L\vQ\353\061\303\341H\365-3O\177(DLp\f\001\030\=
031\344\363\320c<sX^\026=D5=AE\337\303Q\315%\235\325\324\302\066\224?=CB=89=
\211s\302\222s\372t\240\n^\006\326.\265+{\211\256!\232O\264]H\342e#=CB=8C`=
ay9\343\030\351]\275", <incomplete sequence \317>..., avail_in =3D 4947, =
total_in =3D 393216, next_out =3D 0x1733c5d "",=20
  avail_out =3D 5203, total_out =3D 361024, msg =3D 0x7ffff78a2760 =
"stream error", state =3D 0x14febb0, zalloc =3D 0x7ffff789c560 =
<zcalloc>, zfree =3D 0x7ffff789c570 <zcfree>, opaque =3D 0x0, data_type =
=3D 0,=20
  adler =3D 2504375505, reserved =3D 140737328916424}
(gdb) p &z
$2 =3D (z_stream *) 0x13e2010
(gdb) p z.state
$3 =3D (internal_state *) 0x14febb0
(gdb)=20

I will see about running in valgrind later today.

Thanks.

-David


--Apple-Mail=_2A91FC49-9800-4CFB-B245-420D69A8ABA6
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div =
class=3D"">On Dec 7, 2016, at 10:58 PM, Alexander V. Lukyanov &lt;<a =
href=3D"mailto:[email protected]" class=3D"">[email protected]</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><div =
class=3D"">On Wed, Dec 07, 2016 at 09:16:29AM -0800, David R Bosso =
wrote:<br class=3D""><blockquote type=3D"cite" class=3D"">Thanks. Let me =
know if this helps. This was with "mirror --parallel=3D20 =E2=80=94reverse=
"<br class=3D""><br class=3D"">-David<br class=3D""><br class=3D"">lftp: =
buffer_zlib.cc:131: virtual void DataDeflator::PutTranslated(Buffer*, =
const char*, int): Assertion `ret !=3D (-2)' failed.<br class=3D""><br =
class=3D"">Program received signal SIGABRT, Aborted.<br =
class=3D"">0x00007ffff646c5f7 in raise () from /lib64/libc.so.6<br =
class=3D"">Missing separate debuginfos, use: debuginfo-install =
glibc-2.17-106.el7_2.8.x86_64 gmp-6.0.0-12.el7_1.x86_64 =
gnutls-3.3.8-14.el7_2.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 =
krb5-libs-1.13.2-12.el7_2.x86_64 libcom_err-1.42.9-7.el7.x86_64 =
libffi-3.0.13-16.el7.x86_64 libgcc-4.8.5-4.el7.x86_64 =
libselinux-2.2.2-6.el7.x86_64 libstdc++-4.8.5-4.el7.x86_64 =
libtasn1-3.8-2.el7.x86_64 ncurses-libs-5.9-13.20130511.el7.x86_64 =
nettle-2.7.1-4.el7.x86_64 openssl-libs-1.0.1e-51.el7_2.7.x86_64 =
p11-kit-0.20.7-3.el7.x86_64 pcre-8.32-15.el7_2.1.x86_64 =
readline-6.2-9.el7.x86_64 trousers-0.3.13-1.el7.x86_64 =
xz-libs-5.1.2-12alpha.el7.x86_64 zlib-1.2.7-15.el7.x86_64<br =
class=3D"">(gdb) bt<br class=3D"">#0 &nbsp;0x00007ffff646c5f7 in raise =
() from /lib64/libc.so.6<br class=3D"">#1 &nbsp;0x00007ffff646dce8 in =
abort () from /lib64/libc.so.6<br class=3D"">#2 &nbsp;0x00007ffff6465566 =
in __assert_fail_base () from /lib64/libc.so.6<br class=3D"">#3 =
&nbsp;0x00007ffff6465612 in __assert_fail () from /lib64/libc.so.6<br =
class=3D"">#4 &nbsp;0x000000000055b13e in DataDeflator::PutTranslated =
(this=3D0x13e1fb0, target=3D0x14e4958,<br class=3D""> =
&nbsp;&nbsp;&nbsp;put_buf=3D0x1672e30 =
"\334[Esm;\255\301\302H\233q\234\343\034\236\275\351\001s^\361\005\276\202=
\221Iw\005\303\305+m\017\020R\003z\034\221[=DA=AE\242\272f\231-\364\220\27=
3\210\300&amp;5#w$\fu\306y\240\016R\373\304=D6=9A}=E5=9D=A5\334SE%\312\356=
\313.\026&gt;:\023\334\347\216\063\315a\307\342}?P\323\365G\236\322\177&am=
p;\314\354\232)#\311e9\355\333\361\351L\vQ\353\061\303\341H\365-3O\177(DLp=
\f\001\030\031\344\363\320c&lt;sX^\026=D5=AE\337\303Q\315%\235\325\324\302=
\066\224?=CB=89\211s\302\222s\372t\240\n^\006\326.\265+{\211\256!\232O\264=
]H\342e#=CB=8C`ay9\343\030\351]\275", &lt;incomplete sequence =
\317&gt;..., size=3D4947) at buffer_zlib.cc:131<br =
class=3D""></blockquote><br class=3D"">Thanks. Please do also these =
commands in gdb:<br class=3D""><br class=3D""> &nbsp;&nbsp;&nbsp;frame =
4<br class=3D""> &nbsp;&nbsp;&nbsp;p z<br class=3D""> =
&nbsp;&nbsp;&nbsp;p &amp;z<br class=3D""> &nbsp;&nbsp;&nbsp;p z.state<br =
class=3D""><br class=3D"">Also try to run lftp under valgrind.<br =
class=3D""><br class=3D"">--<br class=3D""> &nbsp;&nbsp;Alexander.<br =
class=3D""></div></div></blockquote></div><br class=3D""><div =
class=3D""><div style=3D"margin: 0px; font-size: 11px; line-height: =
normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">(gdb) =
frame 4</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">#4&nbsp; =
0x000000000055b13e in DataDeflator::PutTranslated (this=3D0x13e1fb0, =
target=3D0x14e4958,&nbsp;</span></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp; &nbsp; put_buf=3D0x1672e30 =
"\334[Esm;\255\301\302H\233q\234\343\034\236\275\351\001s^\361\005\276\202=
\221Iw\005\303\305+m\017\020R\003z\034\221[=DA=AE\242\272f\231-\364\220\27=
3\210\300&amp;5#w$\fu\306y\240\016R\373\304=D6=9A}=E5=9D=A5\334SE%\312\356=
\313.\026&gt;:\023\334\347\216\063\315a\307\342}?P\323\365G\236\322\177&am=
p;\314\354\232)#\311e9\355\333\361\351L\vQ\353\061\303\341H\365-3O\177(DLp=
\f\001\030\031\344\363\320c&lt;sX^\026=D5=AE\337\303Q\315%\235\325\324\302=
\066\224?=CB=89\211s\302\222s\372t\240\n^\006\326.\265+{\211\256!\232O\264=
]H\342e#=CB=8C`ay9\343\030\351]\275", &lt;incomplete sequence =
\317&gt;..., size=3D4947) at buffer_zlib.cc:131</span></div><div =
style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">131<span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>&nbsp; &nbsp; &nbsp; assert(ret =
!=3D Z_STREAM_ERROR);&nbsp; /* state not clobbered */</span></div><div =
style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">(gdb) p z</span></div><div =
style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">$1 =3D {</span></div><div style=3D"margin:=
 0px; font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp; next_in =3D 0x1672e30 =
"\334[Esm;\255\301\302H\233q\234\343\034\236\275\351\001s^\361\005\276\202=
\221Iw\005\303\305+m\017\020R\003z\034\221[=DA=AE\242\272f\231-\364\220\27=
3\210\300&amp;5#w$\fu\306y\240\016R\373\304=D6=9A}=E5=9D=A5\334SE%\312\356=
\313.\026&gt;:\023\334\347\216\063\315a\307\342}?P\323\365G\236\322\177&am=
p;\314\354\232)#\311e9\355\333\361\351L\vQ\353\061\303\341H\365-3O\177(DLp=
\f\001\030\031\344\363\320c&lt;sX^\026=D5=AE\337\303Q\315%\235\325\324\302=
\066\224?=CB=89\211s\302\222s\372t\240\n^\006\326.\265+{\211\256!\232O\264=
]H\342e#=CB=8C`ay9\343\030\351]\275", &lt;incomplete sequence =
\317&gt;..., avail_in =3D 4947, total_in =3D 393216, next_out =3D =
0x1733c5d "",&nbsp;</span></div><div style=3D"margin: 0px; font-size: =
11px; line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
avail_out =3D 5203, total_out =3D 361024, msg =3D 0x7ffff78a2760 "stream =
error", state =3D 0x14febb0, zalloc =3D 0x7ffff789c560 &lt;zcalloc&gt;, =
zfree =3D 0x7ffff789c570 &lt;zcfree&gt;, opaque =3D 0x0, data_type =3D =
0,&nbsp;</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
adler =3D 2504375505, reserved =3D 140737328916424}</span></div><div =
style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">(gdb) p &amp;z</span></div><div =
style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">$2 =3D (z_stream *) =
0x13e2010</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">(gdb) p =
z.state</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">$3 =3D =
(internal_state *) 0x14febb0</span></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">(gdb)&nbsp;</span></div></div><div class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""><br =
class=3D""></span></div><div class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">I will =
see about running in valgrind later today.</span></div><div =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D""><br class=3D""></span></div><div class=3D"">Thanks.</div><div =
class=3D""><br class=3D""></div><div class=3D"">-David</div><div =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D""><br class=3D""></span></div></body></html>=

--Apple-Mail=_2A91FC49-9800-4CFB-B245-420D69A8ABA6--

--===============6250815929047538499==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

--===============6250815929047538499==--