|
| From: | Rik |
| Subject: | [Octave-bug-tracker] [bug #47372] Memory leaks and segmentation faults in Octave |
| Date: | Sun, 13 Mar 2016 19:20:50 +0000 |
| User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Update of bug #47372 (project octave):
Status: Confirmed => In Progress
_______________________________________________________
Follow-up Comment #12:
I'm attaching a quick patch which seems to resolve all of the segfaults as
well as the memory leaks in the image directory. This is probably not the way
to do it--I just did it as a quick test--but if it resolves the numerous
strage crashes on Windows platforms then this might be worth stuffing in to a
4.0.1-rc5 candidate.
diff -r de155ca994d4 liboctave/util/oct-shlib.h
--- a/liboctave/util/oct-shlib.h Sun Mar 13 08:46:59 2016 -0700
+++ b/liboctave/util/oct-shlib.h Sun Mar 13 12:17:10 2016 -0700
@@ -119,8 +119,8 @@ public:
~octave_shlib (void)
{
- if (--rep->count == 0)
- delete rep;
+ //if (--rep->count == 0)
+ // delete rep;
}
octave_shlib (const octave_shlib& sl)
(file #36622)
_______________________________________________________
Additional Item Attachment:
File name: octshlib.patch Size:0 KB
_______________________________________________________
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] |