[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55287] Memory leak in graphics subsystem

From: Rik
Subject: [Octave-bug-tracker] [bug #55287] Memory leak in graphics subsystem
Date: Mon, 31 Dec 2018 00:31:01 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #11, bug #55287 (project octave):

I'm using the attached tst_leak.m file

 i += 1;
 data = rand (100_000, 1);
 plot (data);
until (i > 10)

After building with debugging and --enable-address-sanitizer-flags I can run

./run-octave -f tst_leak.m |& tee myleak.log

The top three leaks are

Direct leak of 852720 byte(s) in 10659 object(s) allocated from:
    #0 0x7f276e9f9b50 in __interceptor_malloc
    #1 0x7f27646bbd6c  (/usr/lib/x86_64-linux-gnu/libfreetype.so.6+0x11d6c)

Direct leak of 4352 byte(s) in 17 object(s) allocated from:
    #0 0x7f276e9f9b50 in __interceptor_malloc
    #1 0x7f276497b8ed  (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0x1d8ed)

Direct leak of 208 byte(s) in 1 object(s) allocated from:
    #0 0x7f276e9f9d38 in __interceptor_calloc
    #1 0x7f273b33a828  (/usr/lib/x86_64-linux-gnu/dri/i965_dri.so+0x419828)

It gets pretty small after that.  Clearly we are not doing something correctly
in the interaction with FreeType.  I'm adding Pantxo to the CC list since he
has done a lot of work with FreeType and Fontconfig and might understand if we
are not freeing memory correctly from text objects.

(file #45805)

Additional Item Attachment:

File name: tst_leak.m                     Size:0 KB


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]