This is the mail archive of the
glibc-bugs-regex@sources.redhat.com
mailing list for the glibc project.
[Bug regex/215] New: memoryleak in regexec
- From: "folkert at vanheusden dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs-regex at sources dot redhat dot com
- Date: 10 Jun 2004 21:21:09 -0000
- Subject: [Bug regex/215] New: memoryleak in regexec
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
Hi,
I found a memoryleak in regexec.
I found it while running MultiTail (http://www.vanheusden.com/multitail) which
runs regexec quiet a few times.
Using valgrind I traced back the leakage in glibc:
==25067== 146920 bytes in 13997 blocks are still reachable in loss record 90 of
94
==25067== at 0x40027BAA: malloc (vg_replace_malloc.c:153)
==25067== by 0x40365649: re_node_set_init_copy (in /lib/libc-2.3.1.so)
==25067== by 0x40366764: create_cd_newstate (in /lib/libc-2.3.1.so)
==25067== by 0x403662E4: re_acquire_state_context (in /lib/libc-2.3.1.so)
==25067==
==25067==
==25067== 147728 bytes in 14167 blocks are still reachable in loss record 91 of
94
==25067== at 0x40027BAA: malloc (vg_replace_malloc.c:153)
==25067== by 0x40365649: re_node_set_init_copy (in /lib/libc-2.3.1.so)
==25067== by 0x40366384: create_newstate_common (in /lib/libc-2.3.1.so)
==25067== by 0x403665C3: create_cd_newstate (in /lib/libc-2.3.1.so)
==25067==
==25067==
==25067== 167724 bytes in 13977 blocks are still reachable in loss record 92 of
94
==25067== at 0x40027BAA: malloc (vg_replace_malloc.c:153)
==25067== by 0x4036674E: create_cd_newstate (in /lib/libc-2.3.1.so)
==25067== by 0x403662E4: re_acquire_state_context (in /lib/libc-2.3.1.so)
==25067== by 0x4035FF5C: check_matching (in /lib/libc-2.3.1.so)
==25067==
==25067==
==25067== 453344 bytes in 14167 blocks are still reachable in loss record 93 of
94
==25067== at 0x4002803A: calloc (vg_replace_malloc.c:284)
==25067== by 0x4036636A: create_newstate_common (in /lib/libc-2.3.1.so)
==25067== by 0x403665C3: create_cd_newstate (in /lib/libc-2.3.1.so)
==25067== by 0x403662E4: re_acquire_state_context (in /lib/libc-2.3.1.so)
if you need any more details, do not hesitate to contact me.
--
Summary: memoryleak in regexec
Product: glibc
Version: 2.3.2
Status: NEW
Severity: normal
Priority: P2
Component: regex
AssignedTo: gotom at debian dot or dot jp
ReportedBy: folkert at vanheusden dot com
CC: glibc-bugs-regex at sources dot redhat dot com,glibc-
bugs at sources dot redhat dot com
http://sources.redhat.com/bugzilla/show_bug.cgi?id=215
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.