|
From: | John W. Eaton |
Subject: | [Octave-bug-tracker] [bug #47372] Memory leaks and segmentation faults in Octave |
Date: | Thu, 24 Mar 2016 17:04:10 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0 Iceweasel/44.0 |
Follow-up Comment #26, bug #47372 (project octave): I ran "make check" again in my address-sanitizer build and I'm not seeing the crash in the QR tests now. That's without the patch. The static nil_rep should be OK because shlib_rep's constructor sets count to 1. So when the static object is first created it has a count of 1. Then it is incremented in the constructor. So the count should never go to zero unless an octave_shlib object that is created this way is somehow deleted more than once. Is that possibly happening? The path I see that could allow that is something like octave_shlib *ptr = new octave_shlib; ... delete ptr; delete ptr; _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?47372> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |