❯ apt-cache policy gjs gjs: Installato: 1.72.4-0ubuntu0.22.04.4 Candidato: 1.72.4-0ubuntu0.22.04.4 Tabella versione: *** 1.72.4-0ubuntu0.22.04.4 400 400 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 Packages 100 /var/lib/dpkg/status 1.72.4-0ubuntu0.22.04.3~really.is.1.72.2.0ubuntu2 500 500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages 1.72.0-1 500 500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
❯ env G_SLICE=always-malloc valgrind --leak-check=full \ --suppressions=/usr/share/glib-2.0/valgrind/glib.supp \ gjs -c "const GLib=imports.gi['GLib'];function leak(){const l=GLib.Variant['new']('i',1)};leak();imports.system.gc();" ==1944776== Memcheck, a memory error detector ==1944776== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==1944776== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==1944776== Command: gjs -c const\ GLib=imports.gi['GLib'];function\ leak(){const\ l=GLib.Variant['new']('i',1)};leak();imports.system.gc(); ==1944776== ==1944776== Warning: set address range perms: large range [0x1b8f456c7000, 0x1b8fc52c7000) (noaccess) ==1944776== Warning: set address range perms: large range [0x1b8f456c7000, 0x1b8fc52c7000) (noaccess) ==1944776== ==1944776== HEAP SUMMARY: ==1944776== in use at exit: 193,453 bytes in 2,451 blocks ==1944776== total heap usage: 20,023 allocs, 17,572 frees, 9,271,628 bytes allocated ==1944776== ==1944776== 352 bytes in 1 blocks are possibly lost in loss record 1,970 of 2,013 ==1944776== at 0x484DA83: calloc (vg_replace_malloc.c:1328) ==1944776== by 0x40147D9: calloc (rtld-malloc.h:44) ==1944776== by 0x40147D9: allocate_dtv (dl-tls.c:375) ==1944776== by 0x40147D9: _dl_allocate_tls (dl-tls.c:634) ==1944776== by 0x501F7B4: allocate_stack (allocatestack.c:430) ==1944776== by 0x501F7B4: pthread_create@@GLIBC_2.34 (pthread_create.c:647) ==1944776== by 0x5A4E794: mozilla::TimeStamp::ComputeProcessUptime() (in /usr/lib/x86_64-linux-gnu/libmozjs-91.so.91.10.0) ==1944776== by 0x5A4E856: mozilla::TimeStamp::ProcessCreation(bool*) (in /usr/lib/x86_64-linux-gnu/libmozjs-91.so.91.10.0) ==1944776== by 0x545CA7F: JS::detail::InitWithFailureDiagnostic(bool) (in /usr/lib/x86_64-linux-gnu/libmozjs-91.so.91.10.0) ==1944776== by 0x48B72C3: ??? (in /usr/lib/x86_64-linux-gnu/libgjs.so.0.0.0) ==1944776== by 0x400647D: call_init.part.0 (dl-init.c:70) ==1944776== by 0x4006567: call_init (dl-init.c:33) ==1944776== by 0x4006567: _dl_init (dl-init.c:117) ==1944776== by 0x40202C9: ??? (in /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2) ==1944776== by 0x2: ??? ==1944776== by 0x1FFEFFF84A: ??? ==1944776== ==1944776== LEAK SUMMARY: ==1944776== definitely lost: 0 bytes in 0 blocks ==1944776== indirectly lost: 0 bytes in 0 blocks ==1944776== possibly lost: 352 bytes in 1 blocks ==1944776== still reachable: 77,592 bytes in 971 blocks ==1944776== suppressed: 97,829 bytes in 1,292 blocks ==1944776== Reachable blocks (those to which a pointer was found) are not shown. ==1944776== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==1944776== ==1944776== For lists of detected and suppressed errors, rerun with: -s ==1944776== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 1 from 1) ** Tags removed: verification-needed verification-needed-jammy ** Tags added: verification-done verification-done-jammy -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gjs in Ubuntu. https://bugs.launchpad.net/bugs/2012978 Title: Memory leak To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gjs/+bug/2012978/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs