[Libevent-users] Re: Bug#632490: libevent-dev: namespace polution (#define-s _GNU_SOURCE)

2011-07-11 Thread Nick Mathewson
On Sat, Jul 2, 2011 at 3:33 PM, Jonathan Nieder wrote: > Package: libevent-dev > Version: 2.0.12-stable-1 > Severity: important > Justification: beanstalkd ftbfs > Files: /usr/include/event2/util.h > > Hi, > > Trying to build beanstalkd, I get: > > | gcc -DHAVE_CONFIG_H -I.     -g -O2  -Wall -Werr

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Nick Mathewson
On Mon, Jul 11, 2011 at 2:40 PM, Mark Ellzey wrote: > Nick, > > Are the github repo's out of sync? I can't seem to find the most recent > branch, libevent/master libevent/patches-2.0, nmathewson/* all seem to > be out of sync. Yeah. The canonical location for master/patches-2.0 is still sourcefo

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Mark Ellzey
Nick, Are the github repo's out of sync? I can't seem to find the most recent branch, libevent/master libevent/patches-2.0, nmathewson/* all seem to be out of sync. In any case, patch for the global locks issue attached. On Mon, Jul 11, 2011 at 08:10:02PM +0200, Andrei Chirila wrote: > Hi Mark

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Andrei Chirila
Hi Mark, Thank you for your interest in this issue. Best regards, Andrei On Mon, Jul 11, 2011 at 7:33 PM, Mark Ellzey wrote: > Yeah I see it now - not a huge issue but I will submit a patch here > soon. > > *** > To unsubscrib

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Mark Ellzey
Yeah I see it now - not a huge issue but I will submit a patch here soon. *** To unsubscribe, send an e-mail to majord...@freehaven.net with unsubscribe libevent-usersin the body.

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Andrei Chirila
Hi Mark, I tried the following: ./configure --disable-debug-mode make clean all copy my libs to the right places and compile test_event.c This is the result: $ valgrind --leak-check=full --show-reachable=yes ./test_event.exe ==28671== Memcheck, a memory error detector ==28671== Copyright (C) 20

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Mark Ellzey
int event_global_setup_locks_(const int enable_locks) { #ifndef _EVENT_DISABLE_DEBUG_MODE EVTHREAD_SETUP_GLOBAL_LOCK(_event_debug_map_lock, 0); #endif is your issue. so yeah, --disable-debug-mode will fix that problem. On Mon, Jul 11, 2011 at 11:26:28AM -0500, Mark Ellzey wrote: > On Mon,

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Mark Ellzey
On Mon, Jul 11, 2011 at 06:06:22PM +0200, Andrei Chirila wrote: > Hello, > > I just tried with the latest: > Try compiling with --disable-debug-mode *** To unsubscribe, send an e-mail to majord...@freehaven.net with unsubscribe

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Andrei Chirila
It's no big issue, I was just wondering if this was in my usage or it's generic libevent. I have some programs which get tested under valgrind, and valgrind complains about libevent, so maybe a global event_library_cleanup() would be enough. I don't have enough knowledge of the internals, but if a

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Mark Ellzey
Ah, this is a global lock. Unfortunately there doesn't seem to be a way to free that, is it a big issue? this is small, one time allocat, and handled by dtor's. *** To unsubscribe, send an e-mail to majord...@freehaven.net with

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Andrei Chirila
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 Se

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Mark Ellzey
On Mon, Jul 11, 2011 at 10:55:16AM -0500, Mark Ellzey 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 >

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Andrei Chirila
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 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

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Mark Ellzey
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

[Libevent-users] Libevent memory leak?

2011-07-11 Thread Andrei Chirila
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. Valgrind reports: achirila@virtual-machine:~/src/tests$ valgrind --leak-check=full --show-reachable=yes ./test_event.ex