Re: 4.7.4 zlib buffer error?

David R Bosso <[email protected]> Thu, 8 Dec 2016 15:37:46 -0800
Newsgroups gmane.network.lftp.user
Message-ID <[email protected]>
--===============6122292584072418674==
Content-Type: multipart/alternative; boundary="Apple-Mail=_DFAFD9C7-4B2E-4351-82A2-F5144CB21A05"


--Apple-Mail=_DFAFD9C7-4B2E-4351-82A2-F5144CB21A05
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On Dec 8, 2016, at 8:33 AM, David R Bosso <[email protected]> wrote:
>=20
>=20
>> On Dec 7, 2016, at 10:58 PM, Alexander V. Lukyanov <[email protected] =
<mailto:[email protected]>> wrote:
>>=20
>>=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.
>=20
> (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
>=20
> I will see about running in valgrind later today.
>=20
> Thanks.
>=20
> -David

Hi, here=E2=80=99s a first run at valgrind. It=E2=80=99s been a while =
since I=E2=80=99ve used it, let me know if you want it run with other =
options.

http://pastebin.com/BHSFAQtX

Thanks.

-David=

--Apple-Mail=_DFAFD9C7-4B2E-4351-82A2-F5144CB21A05
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 8, 2016, at 8:33 AM, David R Bosso &lt;<a =
href=3D"mailto:[email protected]" class=3D"">[email protected]</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><meta =
http-equiv=3D"Content-Type" content=3D"text/html charset=3Dutf-8" =
class=3D""><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; -webkit-line-break: after-white-space;" class=3D""><br =
class=3D""><div class=3D""><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""><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></div></blockquote><br =
class=3D""></div><div>Hi, here=E2=80=99s a first run at valgrind. It=E2=80=
=99s been a while since I=E2=80=99ve used it, let me know if you want it =
run with other options.</div><div><br class=3D""></div><div><a =
href=3D"http://pastebin.com/BHSFAQtX" =
class=3D"">http://pastebin.com/BHSFAQtX</a></div><br class=3D""><div =
class=3D"">Thanks.</div><div class=3D""><br class=3D""></div><div =
class=3D"">-David</div></body></html>=

--Apple-Mail=_DFAFD9C7-4B2E-4351-82A2-F5144CB21A05--

--===============6122292584072418674==
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

--===============6122292584072418674==--