[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] Libevent memory leak?



Hello,

I just tried with the latest:

$ git describe
release-2.0.12-stable-162-g7d08a28

Valgrind still reports memory leaks:

$ valgrind --leak-check=full --show-reachable=yes ./test_event.exe
==2705== Memcheck, a memory error detector
==2705== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==2705== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
==2705== Command: ./test_event.exe
==2705==Â
==2705==Â
==2705== HEAP SUMMARY:
==2705== Â Â in use at exit: 120 bytes in 3 blocks
==2705== Â total heap usage: 41 allocs, 38 frees, 4,390 bytes allocated
==2705==Â
==2705== 40 bytes in 1 blocks are still reachable in loss record 1 of 3
==2705== Â Âat 0x4C2815C: malloc (vg_replace_malloc.c:236)
==2705== Â Âby 0x4D1B99: evthread_posix_lock_alloc (evthread_pthread.c:48)
==2705== Â Âby 0x4B5092: event_global_setup_locks_ (event.c:2830)
==2705== Â Âby 0x4D198C: evthread_use_pthreads (evthread_pthread.c:187)
==2705== Â Âby 0x404145: main (test_event.c:6)
==2705==Â
==2705== 40 bytes in 1 blocks are still reachable in loss record 2 of 3
==2705== Â Âat 0x4C2815C: malloc (vg_replace_malloc.c:236)
==2705== Â Âby 0x4D1B99: evthread_posix_lock_alloc (evthread_pthread.c:48)
==2705== Â Âby 0x4C8CF3: evsig_global_setup_locks_ (signal.c:440)
==2705== Â Âby 0x4B50A5: event_global_setup_locks_ (event.c:2832)
==2705== Â Âby 0x4D198C: evthread_use_pthreads (evthread_pthread.c:187)
==2705== Â Âby 0x404145: main (test_event.c:6)
==2705==Â
==2705== 40 bytes in 1 blocks are still reachable in loss record 3 of 3
==2705== Â Âat 0x4C2815C: malloc (vg_replace_malloc.c:236)
==2705== Â Âby 0x4D1B99: evthread_posix_lock_alloc (evthread_pthread.c:48)
==2705== Â Âby 0x4C7423: evutil_secure_rng_global_setup_locks_ (evutil_rand.c:106)
==2705== Â Âby 0x4B50D6: event_global_setup_locks_ (event.c:2834)
==2705== Â Âby 0x4D198C: evthread_use_pthreads (evthread_pthread.c:187)
==2705== Â Âby 0x404145: main (test_event.c:6)
==2705==Â
==2705== LEAK SUMMARY:
==2705== Â Âdefinitely lost: 0 bytes in 0 blocks
==2705== Â Âindirectly lost: 0 bytes in 0 blocks
==2705== Â Â Âpossibly lost: 0 bytes in 0 blocks
==2705== Â Âstill reachable: 120 bytes in 3 blocks
==2705== Â Â Â Â suppressed: 0 bytes in 0 blocks
==2705==Â
==2705== For counts of detected and suppressed errors, rerun with: -v
==2705== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 4 from 4)


Thank you,
Andrei Chirila

On Mon, Jul 11, 2011 at 6:01 PM, Andrei Chirila <andreich@xxxxxxxxx> wrote:
Hello,

Thank you for your interest.

$ git describe
release-2.0.12-stable-125-g3312403

Andrei

On Mon, Jul 11, 2011 at 5:55 PM, Mark Ellzey <mthomas@xxxxxxxxxx> wrote:
On Mon, Jul 11, 2011 at 10:35:46AM +0200, Andrei Chirila wrote:
> Hello,
>
> I'm using libevent in some programs and I came across a memory leak in
> libevent. I'm wondering if I'm the one doing something wrong or it's really
> something in libevent.
>

What version are you using? I just browsed through the code and the
symbols don't match newest ver line wise.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users  Âin the body.






--
Mobile: +49 151 42647382
e-Mail: andreich@xxxxxxxxx