Project

General

Profile

Actions

Bug #12737

open

Cancel all async operations on session process' socket when closing

Added by Matthias Van Ceulebroeck about 1 month ago. Updated about 6 hours ago.

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

0%

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.

Actions #1

Updated by Bruce Toll about 1 month ago

Probably not identical, but possibly related: #9106.

Actions #2

Updated by Matthias Van Ceulebroeck 17 days ago

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

Updated by Matthias Van Ceulebroeck about 7 hours ago

  • Status changed from New to InProgress
Actions #4

Updated by Matthias Van Ceulebroeck about 6 hours ago

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

Also available in: Atom PDF