Print

Print


Ah, I just realized that head contains a lot of added code for handling 
x509 credentials using GSI not OpenSSL. It would seem that the code may be 
causing this problem as the crash occurs in freeing x509 stuff. I'm 
copying Elvin so he can run comparable tests (he was the author). So, 
indeed, if you can provide the setup your doing it would help.

On Wed, 15 Jul 2020, Oliver Freyermuth wrote:

> I first tried HEAD with `http.tlsreuse off`. Sadly, I get this trace, leading to a segfault:
> ```
> #0  __GI___libc_free (mem=0x301) at malloc.c:2941
> #1  0x00007f62b815a80d in CRYPTO_free () from /lib64/libcrypto.so.10
> #2  0x00007f62b824451d in ASN1_STRING_free () from /lib64/libcrypto.so.10
> #3  0x00007f62b82385fd in ASN1_primitive_free () from /lib64/libcrypto.so.10
> #4  0x00007f62b82385df in ASN1_primitive_free () from /lib64/libcrypto.so.10
> #5  0x00007f62b823897f in ASN1_template_free () from /lib64/libcrypto.so.10
> #6  0x00007f62b823880a in asn1_item_combine_free () from /lib64/libcrypto.so.10
> #7  0x00007f62b823897f in ASN1_template_free () from /lib64/libcrypto.so.10
> #8  0x00007f62b823880a in asn1_item_combine_free () from /lib64/libcrypto.so.10
> #9  0x00007f62b82388c5 in ASN1_item_free () from /lib64/libcrypto.so.10
> #10 0x00007f62b859cdf8 in SSL_SESSION_free () from /lib64/libssl.so.10
> #11 0x00007f62b8599d0d in SSL_free () from /lib64/libssl.so.10
> #12 0x00007f62b3a0866e in XrdHttpProtocol::Cleanup (this=this@entry=0x7f62a400d8e0) at /usr/src/debug/xrootd/xrootd/src/XrdHttp/XrdHttpProtocol.cc:1687
> #13 0x00007f62b3a0891e in XrdHttpProtocol::Recycle (this=0x7f62a400d8e0, lp=<optimized out>, csec=<optimized out>, reason=<optimized out>) at /usr/src/debug/xrootd/xrootd/src/XrdHttp/XrdHttpProtocol.cc:865
> #14 0x00007f62b9d03ec9 in XrdXrootdTransit::Recycle (this=0x7f62a40274d0, lp=0x7f62a4006af8, consec=0, reason=0x7f62a40249e0 "send failure") at /usr/src/debug/xrootd/xrootd/src/XrdXrootd/XrdXrootdTransit.cc:424
> #15 0x00007f62b9a6828e in XrdLinkXeq::Close (this=0x7f62a4006af8, defer=<optimized out>) at /usr/src/debug/xrootd/xrootd/src/Xrd/XrdLinkXeq.cc:240
> #16 0x00007f62b9a64eb9 in XrdLink::setProtocol (this=0x7f62a4006af8, pp=<optimized out>, runit=<optimized out>, push=<optimized out>) at /usr/src/debug/xrootd/xrootd/src/Xrd/XrdLink.cc:421
> #17 0x00007f62b9a6b7bf in XrdScheduler::Run (this=0x614c20 <XrdGlobal::Sched>) at /usr/src/debug/xrootd/xrootd/src/Xrd/XrdScheduler.cc:382
> #18 0x00007f62b9a6b909 in XrdStartWorking (carg=<optimized out>) at /usr/src/debug/xrootd/xrootd/src/Xrd/XrdScheduler.cc:88
> #19 0x00007f62b9a2eae7 in XrdSysThread_Xeq (myargs=0x15c36e0) at /usr/src/debug/xrootd/xrootd/src/XrdSys/XrdSysPthread.cc:86
> #20 0x00007f62b95d3ea5 in start_thread (arg=0x7f62b48b9700) at pthread_create.c:307
> #21 0x00007f62b88ca8dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
> ```
> So it seems OpenSSL tries to clean up the session even if caching is disabled... (?).
>
> I'll try with `http.tlsreuse on` next.
>
> -- 
> You are receiving this because you commented.
> Reply to this email directly or view it on GitHub:
> https://github.com/xrootd/xrootd/issues/1252#issuecomment-658905044


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1252#issuecomment-658978031

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1