Litespeed bug ( unexpected signal=11) since version 5.4

#1
Hi everybody,

from version 5.4 upward (and not before) if I'll try to access the server administration web interface, LiteSpeed restart and I'll receive this error; any suggestion?



Code:
At [02/Jan/2020:22:29:41 +0100], web server with pid=5295 received unexpected signal=11, a core file has been created. A new instance of web server will be started automatically!

Please forward the following debug information to bug@litespeedtech.com.
Environment:

Server: LiteSpeed/5.4.3 Standard Build 5
OS: Linux
Release: 3.10.0-957.12.2.vz7.86.2
Version: #1 SMP Wed May 15 09:45:34 MSK 2019
Machine: x86_64

If the call stack information does not show up here, please compress and forward the core file located in /tmp/lshttpd/.

[New LWP 5295]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `litespeed (l'.
Program terminated with signal 11, Segmentation fault.
#0  0x083246f6 in Offloader::addJob (this=0x0, data=0xa352e60) at /home/build/release/litespeed/src/thread/offloader.cpp:118
#0  0x083246f6 in Offloader::addJob (this=0x0, data=0xa352e60) at /home/build/release/litespeed/src/thread/offloader.cpp:118
        rc = 138145872
        __PRETTY_FUNCTION__ = "int Offloader::addJob(ls_offload*)"
#1  0x08324ac3 in offloader_enqueue (offload=0x0, task=0xa352e60) at /home/build/release/litespeed/src/thread/offloader.cpp:194
No locals.
#2  0x08312f81 in AsyncPrivateKeySign (ssl=0xa3434b8, out=0xa36bc18 "", out_len=0xffd88e74, max_out=256, signature_algorithm=2052, in=0xa36bd28 ' ' <repeats 64 times>, "TLS 1.3, server CertificateVerify", in_len=130) at /home/build/release/litespeed/src/sslpp/sslasyncpk.cpp:121
        data = 0xa352e60
#3  0x0837c17d in bssl::ssl_private_key_sign (hs=0xa36be80, out=0xa36bc18 "", out_len=0xffd88e74, max_out=256, sigalg=2052, in=...) at /home/build/release/thirdparty/boringssl/ssl/ssl_privkey.cc:217
        ret = <optimized out>
        ssl = 0xa3434b8
        key_method = 0x86ab63c
        privatekey = 0xa345070
        ctx = {ctx_ = {digest = 0xd30b6295, md_data = 0x3c063c5, pctx = 0x7f04121a, pctx_ops = 0x1f293495}}
#4  0x0838cf8e in bssl::tls13_add_certificate_verify (hs=0xa36be80) at /home/build/release/thirdparty/boringssl/ssl/tls13_both.cc:585
        signature_algorithm = 2052
        body = {base = 0xa353618, child = 0xffd88ea0, offset = 1, pending_len_len = 3 '\003', pending_is_asn1 = 0 '\000', is_child = 1 '\001'}
        child = {base = 0xa353618, child = 0x0, offset = 6, pending_len_len = 2 '\002', pending_is_asn1 = 0 '\000', is_child = 1 '\001'}
        sig_len = 0
        max_sig_len = 256
        msg = {data_ = 0xa36bd28 ' ' <repeats 64 times>, "TLS 1.3, server CertificateVerify", size_ = 130}
        sign_result = <optimized out>
        ssl = 0xa3434b8
        cbb = {ctx_ = {base = 0xa353618, child = 0xffd88e90, offset = 0, pending_len_len = 0 '\000', pending_is_asn1 = 0 '\000', is_child = 0 '\000'}}
        sig = 0xa36bc18 ""
#5  0x083a3127 in do_send_server_certificate_verify (hs=0xa36be80) at /home/build/release/thirdparty/boringssl/ssl/tls13_server.cc:710
No locals.
#6  bssl::tls13_server_handshake (hs=0xa36be80) at /home/build/release/thirdparty/boringssl/ssl/tls13_server.cc:1007
        ret = bssl::ssl_hs_error
        state = bssl::state_send_server_certificate_verify
#7  0x0839a3c1 in do_tls13 (hs=0xa36be80) at /home/build/release/thirdparty/boringssl/ssl/handshake_server.cc:715
        wait = <optimized out>
#8  bssl::ssl_server_handshake (hs=<optimized out>) at /home/build/release/thirdparty/boringssl/ssl/handshake_server.cc:1682
        ret = bssl::ssl_hs_error
        state = bssl::state12_tls13
#9  0x083947dc in bssl::ssl_run_handshake (hs=0xa36be80, out_early_return=0xffd891cf) at /home/build/release/thirdparty/boringssl/ssl/handshake.cc:675
        ssl = 0xa3434b8
#10 0x0837a7d0 in SSL_do_handshake (ssl=0xa3434b8) at /home/build/release/thirdparty/boringssl/ssl/ssl_lib.cc:892
        early_return = false
        ret = <optimized out>
#11 0x0830ad19 in SslConnection::accept (this=0xa2e2b88) at /home/build/release/litespeed/src/sslpp/sslconnection.cpp:307
        ret = -143436688
        __PRETTY_FUNCTION__ = "int SslConnection::accept()"
#12 0x081d2d7c in NtwkIOLink::acceptSSL (this=0xa2e2b10) at /home/build/release/litespeed/src/http/ntwkiolink.cpp:1656
        ret = 56
#13 0x081d334e in NtwkIOLink::SSLAgain (this=0xa2e2b10) at /home/build/release/litespeed/src/http/ntwkiolink.cpp:1799
        ret = 0
#14 0x081d0a48 in NtwkIOLink::onReadSSL (pThis=0xa2e2b10) at /home/build/release/litespeed/src/http/ntwkiolink.cpp:648
        ret = 143832100
#15 0x081cfb24 in NtwkIOLink::handleEvents (this=0xa2e2b10, evt=1) at /home/build/release/litespeed/src/http/ntwkiolink.cpp:328
        event = 1
#16 0x081cfa1c in NtwkIOLink::tryRead (this=0xa2e2b10) at /home/build/release/litespeed/src/http/ntwkiolink.cpp:301
No locals.
#17 0x0819ade1 in HttpListener::addConnection (this=0xa324ba8, pCur=0x892b400, iCount=0xffd89380) at /home/build/release/litespeed/src/http/httplistener.cpp:787
        fd = 47
        pConn = 0xa2e2b10
        info = {m_pClientInfo = 0xa2e76a0, {m_pCrypto = 0xa3434b8, m_pSsl = 0xa3434b8}, m_pServerAddrInfo = 0xa352d00, m_remotePort = 52119}
        nodelay = 1
#18 0x0819a479 in HttpListener::handleEvents (this=0xa324ba8, event=1) at /home/build/release/litespeed/src/http/httplistener.cpp:527
        n = 1
        conns = {{fd = 47, achPeerAddr = "\002\000\313\227\005\\E7", '\000' <repeats 15 times>, pInfo = 0xa2e76a0}, {fd = -1, achPeerAddr = '\000' <repeats 23 times>, pInfo = 0x0}, {fd = 0, achPeerAddr = '\000' <repeats 23 times>, pInfo = 0x0}, {fd = 0, achPeerAddr = '\000' <repeats 23 times>, pInfo = 0x0}, {fd = 0, achPeerAddr = '\000' <repeats 23 times>, pInfo = 0x0}, {fd = 0, achPeerAddr = '\000' <repeats 23 times>, pInfo = 0x0}, {fd = 0, achPeerAddr = '\000' <repeats 23 times>, pInfo = 0x0}, {fd = 0, achPeerAddr = '\000' <repeats 23 times>, pInfo = 0x0}, {fd = 0, achPeerAddr = '\000' <repeats 23 times>, pInfo = 0x0}, {fd = 0, achPeerAddr = '\000' <repeats 23 times>, pInfo = 0x0}}
        pCur = 0x892b420
        iCount = 1
        pCLC = 0x88c7ca0
        limitType = 1
        pEnd = 0x892b540
        allowed = 160
#19 0x08306415 in epoll::processEvents (this=0xa339fd0, events=1) at /home/build/release/litespeed/src/edio/epoll.cpp:244
        pReactor = 0xa324ba8
        fd = 19
        seq = 1
        pHolder = 0xa303534
        p = 0xa306458
        __PRETTY_FUNCTION__ = "virtual int epoll::processEvents(int)"
#20 0x083062d9 in epoll::waitAndProcessEvents (this=0xa339fd0, iTimeoutMilliSec=100) at /home/build/release/litespeed/src/edio/epoll.cpp:213
        ret = 1
#21 0x0818df00 in EventDispatcher::run (this=0xa2e6a5c) at /home/build/release/litespeed/src/http/eventdispatcher.cpp:252
        ret = -2583416
        nextQuicEventMilliSec = -1
        sigEvent = 0
        errors = 0
        to = 100
        pQuicEngine = 0xa323880
#22 0x0811def1 in HttpServerImpl::start (this=0xa2e6a48) at /home/build/release/litespeed/src/main/httpserver.cpp:557
No locals.
#23 0x081212d9 in HttpServer::start (this=0xa2e6a38) at /home/build/release/litespeed/src/main/httpserver.cpp:2172
No locals.
#24 0x08118b32 in LshttpdMain::main (this=0xa2e67a8, argc=1, argv=0xffd895f4) at /home/build/release/litespeed/src/main/lshttpdmain.cpp:2402
        ret = 0
#25 0x08113e9a in main (argc=1, argv=0xffd895f4) at /home/build/release/litespeed/src/main.cpp:151
        ret = 139171947
eax            0x0      0
ecx            0x1f29   7977
edx            0x0      0
ebx            0x6      6
esp            0xffd88d30       0xffd88d30
ebp            0xffd88d48       0xffd88d48
esi            0xa3434b8        171193528
edi            0x86ab63c        141211196
eip            0x83246f6        0x83246f6 <Offloader::addJob(ls_offload*)+336>
eflags         0x10202  [ IF RF ]
cs             0x23     35
ss             0x2b     43
ds             0x2b     43
es             0x2b     43
fs             0x0      0
gs             0x63     99


Thanks!
 
#5
Enterprise edition wont have this problem . free starter can be used for small server.
It's a small server, the error it's only if one is connecting to the web administrator page, not with any other webpage. It's also only up to 5.4RC3. If I understand correctly, the bug will be fixed after 5.4.3, I'm right?
 
#7
Last question, sorry. I didn't realise LiteSpeed has now a licence, at least for the "enterprise" edition. The "Free Starter" pack of the "enterprise" seems to have limitation to 1 domain. Does it affect my "standard edition"? As I've more than one domain listened in the virtual hosts' configuration.

Thanks
 
Top