Modify

Ticket #5183 (closed Bugs: fixed)

Opened 3 years ago

Last modified 3 years ago

intrusive::tree_algorithms::replace_node fails with safe_link

Reported by: johannes.gajdosik@… Owned by: igaztanaga
Milestone: To Be Determined Component: intrusive
Version: Boost 1.46.0 Severity: Problem
Keywords: Cc:

Description

intrusive::tree_algorithms::replace_node should modify the node_to_be_replaced, so that it is not member of the tree anymore. Otherwise safe_link mode will abort when destructing node_to_be_replaced. This is demonstrated in attached Test Program.

Yours, Johannes Gajdosik

Attachments

IntrusiveTest.C Download (721 bytes) - added by johannes.gajdosik@… 3 years ago.
Demonstrate safe_link failure of replace_node

Change History

Changed 3 years ago by johannes.gajdosik@…

Demonstrate safe_link failure of replace_node

comment:1 Changed 3 years ago by steven_watanabe

  • Owner set to igaztanaga
  • Component changed from None to intrusive

comment:2 Changed 3 years ago by igaztanaga

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

Fixed in Boost 1.47

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.