Skip to content

Crash due to null mutex in QUICBidirectionalStream::generate_frame  #7141

Closed

Description

@maskit
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000000000075d777 in Mutex_lock (location=..., ahandler=0x0, m=0x0, t=0x2abfa3220000) at /usr/local/src/trafficserver/iocore/eventsystem/I_Lock.h:320
320	  if (m->thread_holding != t) {
[Current thread is 1 (Thread 0x2abfa4604700 (LWP 20265))]
#2  0x00000000007829b6 in MutexLock::MutexLock (this=0x2abfa4603320, location=..., ahandler=0x0, am=..., t=0x2abfa3220000) at /usr/local/src/trafficserver/iocore/eventsystem/I_Lock.h:439
#3  0x0000000000b14d3b in QUICBidirectionalStream::generate_frame (this=0x2abfb4216400, buf=0x2abfa46034c0 "蜽", level=QUICEncryptionLevel::ONE_RTT, connection_credit=4611686018427349604, maximum_frame_size=1140, current_packet_size=6, seq_num=811) at QUICBidirectionalStream.cc:374
#4  0x0000000000ac771d in QUICStreamManager::generate_frame (this=0x2abfa616e100, buf=0x2abfa46034c0 "蜽", level=QUICEncryptionLevel::ONE_RTT, connection_credit=4611686018427349604, maximum_frame_size=1140, current_packet_size=6, seq_num=811) at QUICStreamManager.cc:451
#5  0x0000000000a423fd in QUICNetVConnection::_packetize_frames (this=0x2abfb3efa640, packet_buf=0x2abfa46036a0 "\360\066`\244\277*", level=QUICEncryptionLevel::ONE_RTT, max_packet_size=1280, frames=std::vector of length 1, capacity 1 = {...}) at QUICNetVConnection.cc:1693
#6  0x0000000000a41465 in QUICNetVConnection::_state_common_send_packet (this=0x2abfb3efa640) at QUICNetVConnection.cc:1529
#7  0x0000000000a3e255 in QUICNetVConnection::state_connection_established (this=0x2abfb3efa640, event=2501, data=0x2abfa1f05980) at QUICNetVConnection.cc:900

Activity

  1. added this to the 10.0.0 milestone on Aug 26, 2020
  2. maskit commented on Aug 26, 2020

    @maskit
    MemberAuthor

    This is similar to #7115. The stream was reset. will_generate_frame can return true even if write_vio is not available because the stream may want to send some frames that don't require write_vio. However, current code tries to acquire the lock regardless of the necessity of write_vio at the top of generate_frame.

  3. added a commit that references this issue on Aug 27, 2020
    6b66956
  4. added 2 commits that reference this issue on Aug 28, 2020
    88b89d5
    27e6796
  5. added a commit that references this issue on Nov 1, 2020
    0102afd
  6. modified the milestones: 10.0.0, 9.1.0 on Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions