Hi Jaeyong, > Avl_node_base::remove function removes itself from the Avl_tree and leaves > the _parent and _child[] variables as they are. > Since someone could try to remove the same Avl_node_base twice by mistake, > it results in the crash of Avl_tree datastructure. > So, how about setting _parent and _child[] to NULL at Avl_node_base::remove > and, at the entry of the remove function, if someone tries to remove twice, > we could warn him.
thank you for this sensible suggestion. I have just added it to the issue tracker: https://github.com/genodelabs/genode/issues/597 Best regards Norman -- Dr.-Ing. Norman Feske Genode Labs http://www.genode-labs.com · http://genode.org Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122912 _______________________________________________ Genode-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/genode-main
