Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2007-01-22 11:08:42


Bugs item #1641750, was opened at 2007-01-22 08:08
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1641750&group_id=7586

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: graph
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Jeremy Siek (jsiek)
Summary: remove_edge core dumps on self-circle

Initial Comment:

This is uncovered while using in bioconductor's RBGL.

This is tested on boost_1_33_1 with modified test codes, adjacency_list.cpp:

bash-3.00$ cd download/boost_1_33_1/libs/graph/example/
bash-3.00$ diff adjacency_list.cpp bug_remove_vertex.cpp
78a79,81
> // test removal of self-circle
> add_edge(vertex(3, g), vertex(3, g), EdgeProperties("test"), g);
>
88a92,94
> cout << endl << "removing edge (3,3): " << endl;
> remove_edge(vertex(3, g), vertex(3, g), g);
>
bash-3.00$ g++ bug_remove_vertex.cpp -I../../../ -lm
bash-3.00$ ./a.out
0 --joe--> 1
1 --joe--> 0 --curly--> 2 --dick--> 3
2 --curly--> 1 --tom--> 4
3 --dick--> 1 --harry--> 4 --LL--> 3 --LL--> 3
4 --tom--> 2 --harry--> 3
(0,1) (1,2) (1,3) (2,4) (3,4) (3,3)

removing edge (3,3):
*** glibc detected *** double free or corruption (out): 0x0889f288 ***
Aborted (core dumped)

Seems like it needs an additional test for edges like A -- A.

Thanks

lilong_at_[hidden]

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1641750&group_id=7586

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk