[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] Memory leak in locks?
- To: libevent-users@xxxxxxxxxxxxx
- Subject: [Libevent-users] Memory leak in locks?
- From: Ralph Castain <rhc@xxxxxxxxxxxx>
- Date: Fri, 9 Jan 2015 10:05:47 -0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Fri, 09 Jan 2015 13:05:54 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:content-type:content-transfer-encoding:subject :message-id:date:to:mime-version; bh=SYgAJ0HEM8O6R54yumVxB9/Uu5Ih1F52lv+yBW1mZTY=; b=Fpj7sxNB+Ix/61YUE0hkSxdOm/Ib45VYmqR96l4uj3Wu7D+BrOI4Hy8EYKuh3cUvYV jmw+PfjjRyCbRpzt42iQCjNRcekxSrfnJDqu0m/rMQwgoN8avdORAT6K+GH0CVwaDrsX jmxzRThpuaLNEpB9KLevaql5Xgb+bPB/qmWeKAztotoHuFQML3deOl0N0KC4dVbYthMO e1n1qOVm+rRGuyxAxtOopJUU96BCEWN/k4L0LapcRDCYRd2L8ovRHBjEhSYz/YeU8laa ZJmUg3dwWO+h1q0+frguvKopEMbPWbKPPJ1BZM2QKGz4RlT7rtP232Pq0cggrZGAPiBq u/aw==
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
Hi folks
Iâve trying to make a new library that uses libevent be valgrind clean. This is a threaded library, and so libevent is thread enabled. I create a new event base, and I call event_base_free before finalizing.
However, I keep seeing reports like this:
==16029== 40 bytes in 1 blocks are still reachable in loss record 1 of 3
==16029== at 0x4C288FE: malloc (in /home/common/local/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==16029== by 0x52A9EE1: evthread_posix_lock_alloc (evthread_pthread.c:46)
==16029== by 0x5075572: event_global_setup_locks_ (event.c:2900)
==16029== by 0x52AA08A: evthread_use_pthreads (evthread_pthread.c:185)
This is with libevent 2.0.22-stable. Is this an expected situation? Or is there something I need to do beyond event_base_free to get a clean finalize?
Thanks
Ralph
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.