This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug regex/215] New: memoryleak in regexec


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]