Package: libqtcore4-perl
Version: 4.8.4-1
Severity: normal

Hi there,

as I was learning to use Qt and the perl bindings, I found myself unable
to cope with a slow but steady memory leak due to C++ objects
(constructed from within perl) never being destroyed (neither when the
variable goes out of scope nor when explicitly calling ->DESTROY).

Steps to reproduce:
- Execute the attached minimal test case. (Basically a timer to call
Qt::Color() 10000 times per second)
- Using "top" and shift-M, watch as the test case's resident size
steadily grows at roughly 1 MB/s (=100 bytes/call) and finally rises
above iceweasel.

I positively tested Qt::Color, Qt::Point, Qt::Pen, etc. as well as
Qt::Object. Calling Qt::Object's deleteLater() did not help either.
Qt::Ushort and Qt::String were not affected (I guess, they're not backed
by C++ objects?).

I also tried to avoid creating new objects in timer events, which
reduced the problem but did not eliminate all memory leaks so far.

I tried getting my hands on the source of 4.8.4-1+b1 to check if the
problem has been fixed there, but apt refused to cooperate.


Yours
Thomas Kremer


-- System Information:
Debian Release: 7.5
  APT prefers stable
  APT policy: (700, 'stable'), (500, 'stable'), (500, 'oldstable'),
(450, 'testing'), (400, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libqtcore4-perl depends on:
ii  libc6                       2.13-38+deb7u1
ii  libgcc1                     1:4.7.2-5
ii  libperl5.14                 5.14.2-21+deb7u1
ii  libqt4-network              4:4.8.2+dfsg-11
ii  libqtcore4                  4:4.8.2+dfsg-11
ii  libqtgui4                   4:4.8.2+dfsg-11
ii  libsmokebase3               4:4.8.4-1
ii  libsmokeqtcore4-3           4:4.8.4-1
ii  libsmokeqtgui4-3            4:4.8.4-1
ii  libsmokeqtnetwork4-3        4:4.8.4-1
ii  libstdc++6                  4.7.2-5
ii  perl                        5.14.2-21+deb7u1
ii  perl-base [perlapi-5.14.2]  5.14.2-21+deb7u1

libqtcore4-perl recommends no packages.

libqtcore4-perl suggests no packages.

-- no debconf information


-- 
OpenPGP Key ID: 486A60BF

Attachment: qttestmem.pl
Description: Perl program

Reply via email to