sudheerv opened a new issue #6853:
URL: https://github.com/apache/trafficserver/issues/6853


   Seeing this crash in ats9 in prod. 
   
   It's a bit strange that `dynamic_cast` would crash this way.  
`Http2ClientSession` is no longer a subclass of `PluginIdentity` and only 
`PluginVC` now is derived from `PluginIdentity`, but it's odd that instead of 
returning a nullptr, dynamic_cast is causing a SegFault on attempting to do 
that. 
   
   Everything else about the pointer seems fine (i.e it seems to be a valid SSL 
VC pointer). Given that, this dynamic_cast is not required anymore (ie no real 
netvc is of type `PluginIdentity` anymore, I'm going to try just guarding it 
with `is_internal_request()` check to see if it helps. It's still pretty 
strange that it's crashing like this though. 
   
   ```
   (gdb) bt
   #0  0x00002b88ea38987e in __cxxabiv1::__dynamic_cast 
(src_ptr=0x2b89451cb5d0, src_type=0x81dd48 <typeinfo for NetVConnection>, 
dst_type=dst_type@entry=0x7c49d8 <typeinfo for PluginIdentity>, 
src2dst=src2dst@entry=-2)
       at ../../.././libstdc++-v3/libsupc++/dyncast.cc:71
   #1  0x000000000071d0e8 in ProxyTransaction::new_transaction 
(this=this@entry=0x2b894a65e240, from_early_data=<optimized out>) at 
ProxyTransaction.cc:46
   #2  0x0000000000523c11 in new_transaction (this=0x2b894a65ded0) at 
Http1ClientSession.cc:473
   #3  Http1ClientSession::state_keep_alive (this=0x2b894a65ded0, event=100, 
data=<optimized out>) at Http1ClientSession.cc:388
   #4  0x0000000000770393 in handleEvent (data=0x2b89451cb7b0, event=100, 
this=0x2b894a65ded0) at 
/home/svinukon/Traffic/ATS/ats9/ats-core_trunk/ats9/src/iocore/eventsystem/I_Continuation.h:190
   #5  read_signal_and_update (vc=0x2b89451cb5d0, event=100) at 
UnixNetVConnection.cc:83
   #6  UnixNetVConnection::readSignalAndUpdate (this=this@entry=0x2b89451cb5d0, 
event=event@entry=100) at UnixNetVConnection.cc:1016
   #7  0x0000000000741d53 in SSLNetVConnection::net_read_io 
(this=0x2b89451cb5d0, nh=0x2b88ef623d80, lthread=<optimized out>) at 
SSLNetVConnection.cc:671
   #8  0x0000000000760208 in NetHandler::process_ready_list 
(this=this@entry=0x2b88ef623d80) at UnixNet.cc:412
   #9  0x00000000007604fd in NetHandler::waitForActivity (this=0x2b88ef623d80, 
timeout=<optimized out>) at UnixNet.cc:547
   #10 0x00000000007be9ba in EThread::execute_regular 
(this=this@entry=0x2b88ef620000) at UnixEThread.cc:266
   #11 0x00000000007bec82 in EThread::execute (this=0x2b88ef620000) at 
UnixEThread.cc:327
   #12 0x00000000007bd029 in spawn_thread_internal (a=0x2b88ec163ec0) at 
Thread.cc:92
   #13 0x00002b88e9ee3dd5 in start_thread () from /lib64/libpthread.so.0
   #14 0x00002b88eac94ead in clone () from /lib64/libc.so.6
   (gdb) p *this
   ```


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to