Modify

Ticket #7349 (closed Bugs: fixed)

Opened 20 months ago

Last modified 19 months ago

packaged_task holds refence to temporary

Reported by: olli Owned by: viboes
Milestone: Boost 1.52.0 Component: thread
Version: Boost 1.51.0 Severity: Problem
Keywords: allocator_destructor packaged_task temporary reference Cc:

Description

The ctor of packaged_task creates a rebound allocator on the stack (stack frame of ctor). the allocator instance is passed to allocator_destructor which hold a reference to the allocator. Unfortunately the allocator instance will be destroyed/invalid after return from ctor.

Suggestion, because of the allocators a required to by copyable allocator_destructor should store the value of the allocator instance (using allocators copy-ctor).

Attachments

7349_7250.pacth Download (1.9 KB) - added by viboes 20 months ago.
Fix for this ticket and #7350

Change History

comment:1 Changed 20 months ago by viboes

  • Status changed from new to assigned
  • Version changed from Boost 1.52.0 to Boost 1.51.0
  • Milestone changed from To Be Determined to Boost 1.52.0

Changed 20 months ago by viboes

Fix for this ticket and #7350

comment:2 Changed 20 months ago by viboes

Committed in trunk revision [80460].

comment:3 Changed 19 months ago by viboes

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

Committed revision 80516.

View

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.