Ticket #6275 (closed Bugs: fixed)

Opened 5 years ago

Last modified 5 years ago

On Mac OS X deadline_timer::cancel() may hangs

Reported by: Andrew Kargalov <a.kargalov@…> Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.48.0 Severity: Problem
Keywords: Cc:


When deadline_timer is canceled from signal handler after the next signal arrived it cause hang on detail::posix_mutex::lock().

This behaviour couldn't be reproduced on linux and freebsd.


asio-bug1.cpp (3.0 KB) - added by Andrew Kargalov <a.kargalov@…> 5 years ago.
minimal test case

Change History

Changed 5 years ago by Andrew Kargalov <a.kargalov@…>

minimal test case

comment:1 Changed 5 years ago by chris_kohlhoff

(In [76427]) Fix deadlock on Mac OS X. Refs #6275.

comment:2 Changed 5 years ago by chris_kohlhoff

  • Status changed from new to closed
  • Resolution set to fixed

(In [76516]) Merge from trunk:

  • Chrono support.
  • Added object_handle support.
  • Need to enable the basic_handle class when object_handle is supported.
  • Update copyright notices.
  • Fix MSVC "performance warning".
  • Fix for NetBSD. Fixes #6098.
  • Fix regression in buffered_write_stream. Fixes #6310.
  • Fix deadlock on Mac OS X. Fixes #6275.
  • On linux, connect can return EAGAIN in certain circumstances. Remap to another error so that it doesn't look like a non-blocking operation. Fixes #6048.
  • Fix non-paged pool "leak" on Windows when io_service is repeatedly run without anything to do. Fixes #6321.
  • Disable object_handle on Windows CE.
  • Add extra include required for OVERLAPPED struct.
  • Fix doxygen comments.
  • Update documentation.
  • Add missing class.
  • Update copyright year.

Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.