Opened 7 years ago

Closed 7 years ago

#5183 closed Bugs (fixed)

intrusive::tree_algorithms::replace_node fails with safe_link

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


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 (1)

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

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by johannes.gajdosik@…

Attachment: IntrusiveTest.C added

Demonstrate safe_link failure of replace_node

comment:1 Changed 7 years ago by Steven Watanabe

Component: Noneintrusive
Owner: set to Ion Gaztañaga

comment:2 Changed 7 years ago by Ion Gaztañaga

Resolution: fixed
Status: newclosed

Fixed in Boost 1.47

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Ion Gaztañaga.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.