Discussion:
[Gc] Issue with Valgrind in threading
Agnius Vasiliauskas
2015-11-01 10:41:11 UTC
Permalink
Hi,

I'm trying to use boehm garbage collector. When I run Valgrind memory leak
detector in my
program which uses GC - i've got such messages: (GC was compiled with POSIX
thread support):

Leak_PossiblyLost|====|144 bytes in 1 blocks are possibly lost in loss
record 1 of 1| ||Call stack:|
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so||0x402C109: calloc|
/build/buildd/eglibc-2.19/elf/dl-tls.c|296|0x401117E: allocate_dtv|
/build/buildd/eglibc-2.19/elf/dl-tls.c|460|0x40118EB: _dl_allocate_tls|
/build/buildd/eglibc-2.19/nptl/allocatestack.c|589|0x40587A2:
pthread_create@@GLIBC_2.1|
/home/agnius/Downloads/gc-7.4.2/pthread_support.c|437|0x80529ED:
GC_start_mark_threads|
/home/agnius/Downloads/gc-7.4.2/misc.c|1195|0x80498DE: GC_init.part.1|
/home/agnius/Downloads/bigint/main.c|225|0x804B284: main|

seems like some memory leak issue when creating posix threads ?

Thanks for help.
Agnius
Brian Beuning
2015-11-01 18:23:49 UTC
Permalink
Sounds like at least 2 FAQ topics in this.


Brian Beuning
CoreCard
Work: 770 564 5616
E-mail: ***@corecard.com
Web: www.corecard.com

----- Original Message -----
From: "Agnius Vasiliauskas" <***@gmail.com>
To: ***@lists.opendylan.org
Sent: Sunday, November 1, 2015 5:41:11 AM
Subject: [Gc] Issue with Valgrind in threading



Hi,


I'm trying to use boehm garbage collector. When I run Valgrind memory leak detector in my
program which uses GC - i've got such messages: (GC was compiled with POSIX thread support):



Leak_PossiblyLost|====|144 bytes in 1 blocks are possibly lost in loss record 1 of 1| ||Call stack:|
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so||0x402C109: calloc|
/build/buildd/eglibc-2.19/elf/dl-tls.c|296|0x401117E: allocate_dtv|
/build/buildd/eglibc-2.19/elf/dl-tls.c|460|0x40118EB: _dl_allocate_tls|
/build/buildd/eglibc-2.19/nptl/allocatestack.c|589|0x40587A2: pthread_create@@GLIBC_2.1|
/home/agnius/Downloads/gc-7.4.2/pthread_support.c|437|0x80529ED: GC_start_mark_threads|
/home/agnius/Downloads/gc-7.4.2/misc.c|1195|0x80498DE: GC_init.part.1|
/home/agnius/Downloads/bigint/main.c|225|0x804B284: main|


seems like some memory leak issue when creating posix threads ?


Thanks for help.
Agnius

Loading...