[Lazarus] IDE unstable - Online Package manager bug

Martin Frb lazarus at mfriebe.de
Sun Feb 24 15:21:52 CET 2019


So it hangs in openssl.
Which means the http request can not be aborted. (gracefully)

How up to date is your openssl?

I recently had an issue with git on windows, due to an openssl bug 
https://github.com/git-for-windows/git/issues/1993

The openssl bug seems older, but some activity referring to a fix is 
very recent.
So just maybe...?

--------------------
It might be possible to limit the IDE wait time though. Since this is on 
shutdown, the IDE can wait with the thread still running. That would 
report a memory leak.... (but not a problem, since it is a one off / 
will not accumulate)

That is assuming the OS manages to kill the thread then.
On windows it was not possible to kill any app hanging in that openssl 
bug (A system restart was required)


On 24/02/2019 15:11, Michael Van Canneyt via lazarus wrote:
>
> (gdb) t 4
>
> #1  0x00007fa2f1d47c3c in ?? () from 
> /usr/lib/x86_64-linux-gnu/libcrypto.so
> #2  0x00007fa2f1d45bdc in BIO_read () from 
> /usr/lib/x86_64-linux-gnu/libcrypto.so
> #3  0x00007fa2f19f180a in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so
> #4  0x00007fa2f19f30ad in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so
> #5  0x00007fa2f19efc64 in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so
> #6  0x000000000192107c in SSLREAD (SSL=0x7fa2e403ac30, 
> BUF=0x7fa2fc104dc8, NUM=4096) at openssl/src/openssl.pas:2156
> #7  0x0000000001929618 in READ (this=0x7fa2f2332e20, 
> BUF=0x7fa2fc104dc8, NUM=4096) at openssl/src/fpopenssl.pp:475
> #8  0x000000000192033f in RECV (this=0x7fa2f2139280, BUFFER=0, 
> COUNT=4096) at fcl-net/src/sslsockets.pp:436
> #9  0x00000000019175c4 in READ (this=0x7fa2f214b6e0, BUFFER=0, 
> COUNT=4096) at fcl-net/src/ssockets.pp:449
> #10 0x000000000199bcdd in FILLBUFFER (parentfp=0x7fa2fc603230) at 
> fpcmod/opkman_httpclient.pas:708
> #11 0x000000000199ba31 in READSTRING (this=0x7fa3058e08e0, S=0x0) at 
> fpcmod/opkman_httpclient.pas:730
> #12 0x000000000199c165 in READRESPONSEHEADERS (this=0x7fa3058e08e0) at 
> fpcmod/opkman_httpclient.pas:835
> #13 0x000000000199cb9f in READRESPONSE (this=0x7fa3058e08e0, 
> STREAM=0x7fa2f22efbc0, ALLOWEDRESPONSECODES=..., 
> highALLOWEDRESPONSECODES=-1, HEADERSONLY=false) at 
> fpcmod/opkman_httpclient.pas:1110
> #14 0x000000000199d7e8 in DONORMALREQUEST (this=0x7fa3058e08e0, 
> AURI=..., AMETHOD=0x1d62410 'GET', ASTREAM=0x7fa2f22efbc0, 
> AALLOWEDRESPONSECODES=..., highAALLOWEDRESPONSECODES=-1, 
> AHEADERSONLY=false,
>     AISHTTPS=true) at fpcmod/opkman_httpclient.pas:1205
> #15 0x000000000199dc6e in DOMETHOD (this=0x7fa3058e08e0, 
> AMETHOD=0x1d62410 'GET', AURL=0x7fa2f215a6d8 
> 'https://excellmedia.dl.sourceforge.net/project/lazarus-ccr/ColorPalette/OPM/update_ColorPalette.json',
>     STREAM=0x7fa2f22efbc0, ALLOWEDRESPONSECODES=..., 
> highALLOWEDRESPONSECODES=-1) at fpcmod/opkman_httpclient.pas:1263



More information about the lazarus mailing list