Project

General

Profile

Actions

Bug #12737

closed
MV RM

Cancel all async operations on session process' socket when closing

Bug #12737: Cancel all async operations on session process' socket when closing

Added by Matthias Van Ceulebroeck over 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
06/10/2024
Due date:
% Done:

100%

Estimated time:

Description

It is possible that SessionProcess::readHandler() is called when the socket has been deleted. Likely this occurs when read() and stop() are called near simultaneously.
stop() will have closed the socket and set it to a nullptr, but read() had already been scheduled.

At the moment that the socket closes, readHandler() is called, with a nullptr object, causing a segfault.
Ensuring that all operations on the socket are cancelled when the socket closes, ought to resolve this issue.

BT Updated by Bruce Toll over 2 years ago Actions #1

Probably not identical, but possibly related: #9106.

MV Updated by Matthias Van Ceulebroeck about 2 years ago Actions #2

  • Assignee set to Romain Mardulyn
  • Target version changed from 4.11.0 to 4.11.1

MV Updated by Matthias Van Ceulebroeck about 2 years ago Actions #3

  • Status changed from New to InProgress

MV Updated by Matthias Van Ceulebroeck about 2 years ago Actions #4

  • Status changed from InProgress to Review
  • Assignee changed from Romain Mardulyn to Matthias Van Ceulebroeck

MV Updated by Matthias Van Ceulebroeck about 2 years ago Actions #5

  • Target version changed from 4.11.1 to 4.11.0

MV Updated by Matthias Van Ceulebroeck about 2 years ago Actions #6

  • Status changed from Review to Implemented @Emweb
  • Assignee changed from Matthias Van Ceulebroeck to Romain Mardulyn
  • % Done changed from 0 to 100

MV Updated by Matthias Van Ceulebroeck almost 2 years ago Actions #7

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: PDF Atom