Project

General

Profile

Actions

Bug #12737

closed

Cancel all async operations on session process' socket when closing

Added by Matthias Van Ceulebroeck 4 months ago. Updated 8 days 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.

Actions #1

Updated by Bruce Toll 4 months ago

Probably not identical, but possibly related: #9106.

Actions #2

Updated by Matthias Van Ceulebroeck 3 months ago

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

Updated by Matthias Van Ceulebroeck 3 months ago

  • Status changed from New to InProgress
Actions #4

Updated by Matthias Van Ceulebroeck 3 months ago

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

Updated by Matthias Van Ceulebroeck 2 months ago

  • Target version changed from 4.11.1 to 4.11.0
Actions #6

Updated by Matthias Van Ceulebroeck about 2 months ago

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

Updated by Matthias Van Ceulebroeck 8 days ago

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: Atom PDF