[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63381] [octave forge] (string) Properly clean
From: |
Rafael Laboissière |
Subject: |
[Octave-bug-tracker] [bug #63381] [octave forge] (string) Properly cleanup of PCRE2 data |
Date: |
Thu, 17 Nov 2022 22:39:38 -0500 (EST) |
Follow-up Comment #1, bug #63381 (project octave):
Memory leaking can be observed, without the patch, like this:
$ echo 'pkg load strings ; while 1 ; pcregexp("x", "y") ; endwhile' |
octave-cli & while true ; do sleep 5 ; ps uax | grep octave-cli | grep -v grep
; done
rlaboiss 19084 62.0 4.1 378872 84356 pts/2 Rl 00:37 0:03 octave-cli
rlaboiss 19084 81.1 6.8 433916 139268 pts/2 Rl 00:37 0:08 octave-cli
rlaboiss 19084 87.4 9.7 491732 197084 pts/2 Rl 00:37 0:13 octave-cli
rlaboiss 19084 90.7 12.5 549152 254636 pts/2 Rl 00:37 0:18 octave-cli
On the other hand, with my patch:
$ echo 'pkg load strings ; while 1 ; pcregexp("x", "y") ; endwhile' |
octave-cli & while true ; do sleep 5 ; ps uax | grep octave-cli | grep -v grep
; done
rlaboiss 18095 61.8 2.7 350892 56036 pts/2 Rl 00:35 0:03 octave-cli
rlaboiss 18095 81.0 2.7 350892 56036 pts/2 Rl 00:35 0:08 octave-cli
rlaboiss 18095 87.8 2.7 350892 56036 pts/2 Rl 00:35 0:13 octave-cli
rlaboiss 18095 90.9 2.7 350892 56036 pts/2 Rl 00:35 0:18 octave-cli
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63381>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/