bneradt opened a new issue, #12140:
URL: https://github.com/apache/trafficserver/issues/12140
When testing 10.1.x on a production box, I'm seeing the following crash with
some frequency:
```
(gdb) bt
#0 0x00007f1504a95b1f in ssl3_ctrl (s=0x7f0abe756800, cmd=<optimized out>,
larg=0, parg=0x0) at ssl/s3_lib.c:3736
#1 0x00000000007e193a in ssl_callback_info (ssl=0x7f0abe756800,
where=<optimized out>, ret=<optimized out>) at
/home/bneradt/build/_scm/trafficserver10.1/src/iocore/net/SSLUtils.cc:1092
#2 0x00007f1504b11cb4 in tls_finish_handshake (s=0x7f0abe756800,
wst=<optimized out>, clearbufs=<optimized out>, stop=1) at
ssl/statem/statem_lib.c:1519
#3 0x00007f1504b056ec in write_state_machine (s=0x7f0abe756800) at
ssl/statem/statem.c:860
#4 state_machine (s=0x7f0abe756800, server=1) at ssl/statem/statem.c:488
#5 0x00007f1504aa5aa2 in SSL_read_early_data (s=0x7f0abe756800,
buf=0x7f096e1ff000, num=16384, readbytes=0x7f14f83fcf48) at ssl/ssl_lib.c:2377
#6 0x00000000007c59f1 in SSLNetVConnection::_ssl_accept
(this=0x7f07e7408000) at
/home/bneradt/build/_scm/trafficserver10.1/include/tscore/Ptr.h:116
#7 0x00000000007ca782 in SSLNetVConnection::sslServerHandShakeEvent
(this=this@entry=0x7f07e7408000, err=@0x7f14f83fd464: 0) at
/home/bneradt/build/_scm/trafficserver10.1/src/iocore/net/SSLNetVConnection.cc:1249
#8 0x00000000007cb1c9 in SSLNetVConnection::sslStartHandShake
(this=0x7f07e7408000, event=<optimized out>, err=@0x7f14f83fd464: 0) at
/home/bneradt/build/_scm/trafficserver10.1/src/iocore/net/SSLNetVConnection.cc:1050
#9 0x00000000007c7a49 in SSLNetVConnection::net_read_io
(this=0x7f07e7408000, nh=0x7f14fd8ce690) at
/home/bneradt/build/_scm/trafficserver10.1/src/iocore/net/SSLNetVConnection.cc:507
#10 0x0000000000827d14 in NetHandler::process_ready_list
(this=this@entry=0x7f14fd8ce690) at
/home/bneradt/build/_scm/trafficserver10.1/src/iocore/net/NetHandler.cc:284
#11 0x000000000082806a in NetHandler::waitForActivity (this=0x7f14fd8ce690,
timeout=<optimized out>) at
/home/bneradt/build/_scm/trafficserver10.1/src/iocore/net/NetHandler.cc:375
#12 0x00000000008636ea in EThread::execute_regular
(this=this@entry=0x7f14fd8cdb00) at
/home/bneradt/build/_scm/trafficserver10.1/include/tsutil/Histogram.h:156
#13 0x0000000000863919 in EThread::execute (this=0x7f14fd8cdb00) at
/home/bneradt/build/_scm/trafficserver10.1/src/iocore/eventsystem/UnixEThread.cc:358
#14 EThread::execute (this=0x7f14fd8cdb00) at
/home/bneradt/build/_scm/trafficserver10.1/src/iocore/eventsystem/UnixEThread.cc:335
#15 0x00000000008604b2 in spawn_thread_internal (a=0x7f1500703640) at
/home/bneradt/build/_scm/trafficserver10.1/src/iocore/eventsystem/Thread.cc:75
#16 0x00007f1502fa21ca in start_thread () from /lib64/libpthread.so.0
#17 0x00007f1502c0ee73 in clone () from /lib64/libc.so.6
```
Some possibly interesting early data variables:
```
(gdb) f 7
#7 0x00000000007ca782 in SSLNetVConnection::sslServerHandShakeEvent
(this=this@entry=0x7f07e7408000, err=@0x7f14f83fd464: 0) at
/home/bneradt/build/_scm/trafficserver10.1/src/iocore/net/SSLNetVConnection.cc:1249
1249 ssl_error_t ssl_error = this->_ssl_accept();
(gdb) set pagination off
(gdb) set print pretty
(gdb) p *this
$1 = {
...
<TLSEarlyDataSupport> = {
_vptr.TLSEarlyDataSupport = 0x917408 <vtable for SSLNetVConnection+936>,
static DEFAULT_MAX_EARLY_DATA_SIZE = 16384,
static _ex_data_index = 7,
_early_data_len = 0
},
...
_early_data_finish = false,
_early_data_buf = 0x0,
_early_data_reader = 0x0
```
For reference, I'm testing against 10.1.x commit:
```
commit 42f2920bce6df86e0e21a8de85e33a1795e9eff5
Author: Chris McFarlen <[email protected]>
Date: Tue Mar 11 11:51:42 2025 -0500
Move defaulting install prefix before layout setup (#12085)
Co-authored-by: Chris McFarlen <[email protected]>
(cherry picked from commit 9a1ef119f3b7a017583c9aa5d088b2437101b92a)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]