Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 204341 Details for
Bug 303691
pthread create/join may be leaking memory according to valgrind
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Full text of valgrind output from this reproducer
vg_pthread.txt (text/plain), 5.37 KB, created by
Kim van der Riet
on 2007-09-24 17:41:45 UTC
(
hide
)
Description:
Full text of valgrind output from this reproducer
Filename:
MIME Type:
Creator:
Kim van der Riet
Created:
2007-09-24 17:41:45 UTC
Size:
5.37 KB
patch
obsolete
>[kpvdr@qpid-test ~]$ valgrind -v --track-fds=yes --leak-check=full --leak-resolution=high --show-reachable=yes ./pthread >==9446== Memcheck, a memory error detector. >==9446== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al. >==9446== Using LibVEX rev 1658, a library for dynamic binary translation. >==9446== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP. >==9446== Using valgrind-3.2.1, a dynamic binary instrumentation framework. >==9446== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al. >==9446== >--9446-- Command line >--9446-- ./pthread >--9446-- Startup, with flags: >--9446-- -v >--9446-- --track-fds=yes >--9446-- --leak-check=full >--9446-- --leak-resolution=high >--9446-- --show-reachable=yes >--9446-- Contents of /proc/version: >--9446-- Linux version 2.6.18-8.1.10.el5 (brewbuilder@hs20-bc1-6.build.redhat.com) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #1 SMP Thu Aug 30 20:43:28 EDT 2007 >--9446-- Arch and hwcaps: AMD64, amd64-sse2 >--9446-- Valgrind library directory: /usr/lib64/valgrind >--9446-- Reading syms from /home/kpvdr/pthread (0x400000) >--9446-- Reading syms from /usr/lib64/valgrind/amd64-linux/memcheck (0x38000000) >--9446-- object doesn't have a dynamic symbol table >--9446-- Reading syms from /lib64/ld-2.5.so (0x36E0E00000) >--9446-- Reading suppressions file: /usr/lib64/valgrind/default.supp >--9446-- Reading syms from /usr/lib64/valgrind/amd64-linux/vgpreload_core.so (0x4802000) >--9446-- Reading syms from /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so (0x4A03000) >--9446-- REDIR: 0x36E0E13D80 (index) redirected to 0x4A06550 (index) >--9446-- REDIR: 0x36E0E13F30 (strcmp) redirected to 0x4A067D0 (strcmp) >--9446-- REDIR: 0x36E0E13F60 (strlen) redirected to 0x4A06700 (strlen) >--9446-- Reading syms from /lib64/libpthread-2.5.so (0x36E1E00000) >--9446-- Reading syms from /usr/lib64/libstdc++.so.6.0.8 (0x33C6A00000) >--9446-- object doesn't have a symbol table >--9446-- Reading syms from /lib64/libm-2.5.so (0x36E1600000) >--9446-- Reading syms from /lib64/libgcc_s-4.1.1-20070105.so.1 (0x33C6600000) >--9446-- object doesn't have a symbol table >--9446-- Reading syms from /lib64/libc-2.5.so (0x36E1200000) >--9446-- REDIR: 0x36E12765C0 (memset) redirected to 0x4A06920 (memset) >--9446-- REDIR: 0x36E1276CE0 (memcpy) redirected to 0x4A06FF0 (memcpy) >--9446-- REDIR: 0x36E1275710 (rindex) redirected to 0x4A06400 (rindex) >--9446-- REDIR: 0x36E1275320 (strlen) redirected to 0x4A066C0 (strlen) >--9446-- REDIR: 0x36E12702F0 (calloc) redirected to 0x4A04AAC (calloc) >--9446-- REDIR: 0x36E1272110 (realloc) redirected to 0x4A05838 (realloc) >Hello! >--9446-- REDIR: 0x36E1271F30 (free) redirected to 0x4A05397 (free) >==9446== >==9446== FILE DESCRIPTORS: 3 open at exit. >==9446== Open file descriptor 2: /dev/pts/1 >==9446== <inherited from parent> >==9446== >==9446== Open file descriptor 1: /dev/pts/1 >==9446== <inherited from parent> >==9446== >==9446== Open file descriptor 0: /dev/pts/1 >==9446== <inherited from parent> >==9446== >==9446== >==9446== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 4 from 1) >--9446-- >--9446-- supp: 4 Fedora-Core-6-hack3-ld25 >==9446== malloc/free: in use at exit: 2,048 bytes in 1 blocks. >==9446== malloc/free: 2 allocs, 1 frees, 2,336 bytes allocated. >==9446== >==9446== searching for pointers to 1 not-freed blocks. >==9446== checked 182,208 bytes. >==9446== >==9446== 2,048 bytes in 1 blocks are still reachable in loss record 1 of 1 >==9446== at 0x4A05809: malloc (vg_replace_malloc.c:149) >==9446== by 0x4A05883: realloc (vg_replace_malloc.c:306) >==9446== by 0x36E1E06D19: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.5.so) >==9446== by 0x40064E: main (pthread.cpp:10) >==9446== >==9446== LEAK SUMMARY: >==9446== definitely lost: 0 bytes in 0 blocks. >==9446== possibly lost: 0 bytes in 0 blocks. >==9446== still reachable: 2,048 bytes in 1 blocks. >==9446== suppressed: 0 bytes in 0 blocks. >--9446-- memcheck: sanity checks: 2 cheap, 1 expensive >--9446-- memcheck: auxmaps: 212 auxmap entries (13568k, 13M) in use >--9446-- memcheck: auxmaps: 693086 searches, 1390016 comparisons >--9446-- memcheck: SMs: n_issued = 18 (288k, 0M) >--9446-- memcheck: SMs: n_deissued = 0 (0k, 0M) >--9446-- memcheck: SMs: max_noaccess = 524287 (8388592k, 8191M) >--9446-- memcheck: SMs: max_undefined = 0 (0k, 0M) >--9446-- memcheck: SMs: max_defined = 426 (6816k, 6M) >--9446-- memcheck: SMs: max_non_DSM = 18 (288k, 0M) >--9446-- memcheck: max sec V bit nodes: 0 (0k, 0M) >--9446-- memcheck: set_sec_vbits8 calls: 0 (new: 0, updates: 0) >--9446-- memcheck: max shadow mem size: 4432k, 4M >--9446-- translate: fast SP updates identified: 1,913 ( 88.8%) >--9446-- translate: generic_known SP updates identified: 164 ( 7.6%) >--9446-- translate: generic_unknown SP updates identified: 77 ( 3.5%) >--9446-- tt/tc: 4,732 tt lookups requiring 4,811 probes >--9446-- tt/tc: 4,732 fast-cache updates, 5 flushes >--9446-- transtab: new 2,269 (56,314 -> 1,020,805; ratio 181:10) [0 scs] >--9446-- transtab: dumped 0 (0 -> ??) >--9446-- transtab: discarded 12 (257 -> ??) >--9446-- scheduler: 226,355 jumps (bb entries). >--9446-- scheduler: 2/2,561 major/minor sched events. >--9446-- sanity: 3 cheap, 1 expensive checks. >--9446-- exectx: 30,011 lists, 10 contexts (avg 0 per list) >--9446-- exectx: 15 searches, 5 full compares (333 per 1000) >--9446-- exectx: 0 cmp2, 6 cmp4, 0 cmpAll
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 303691
: 204341