Niels,I sent a few patches to the list and got no reply from you - I think you were on vacation. Here they are again, slightly cleaned up. One- line summary here; full description at the top of the attached files.
* event-once-leak.patch - fixes event_once() leak on event_add() failure.
* event-poll-leak.patch - fixes realloc() leak in poll() code* event-signal.patch - fixes a SIGCHLD problem reported by Anton Povarov <[EMAIL PROTECTED]>
test/regress as of libevent 1.2 segfaults for me (Linux/x86_64) in the evbuffer stuff. I haven't done much to diagnose, since I don't use it. But here's something. After turning off "-O" and turning on USE_DEBUG:
$ LD_LIBRARY_PATH=.libs gdb test/.libs/regress ... (gdb) run ... Evbuffer: Program received signal SIGSEGV, Segmentation fault. 0x0000003f12173c90 in ?? () from /lib64/libc.so.6 (gdb) bt #0 0x0000003f12173c90 in ?? () from /lib64/libc.so.6#1 0x0000003f1214488b in _IO_vfprintf_internal (s=0x7fff44567930, format=Variable "format" is not available.
) at vfprintf.c:1559#2 0x0000003f121652fa in _IO_vsnprintf (string=0x511310 "", maxlen=Variable "maxlen" is not available.
) at vsnprintf.c:120#3 0x00002aaaaaab4aaf in evbuffer_add_vprintf (buf=0x511160, fmt=0x406347 "%s/%d", ap=0x7fff44567b00)
at buffer.c:144#4 0x00002aaaaaab4c33 in evbuffer_add_printf (buf=0x511160, fmt=0x406347 "%s/%d") at buffer.c:168
#5 0x0000000000402f15 in test_evbuffer () at regress.c:492#6 0x0000000000403c05 in main (argc=1, argv=0x7fff44567d18) at regress.c:905
(gdb) A couple other complaints:* CVS seems out of date - it doesn't have evdns.c, and the http tests fail. (They work for me in libevent 1.2) * evhttp.c doesn't compile for me with USE_DEBUG in either current CVS or libevent 1.2. Looks like some data structures have changed since the event_debug()s were written.
Best regards, Scott -- Scott Lamb <http://www.slamb.org/>
event-once-leak.patch
Description: Binary data
event-poll-leak.patch
Description: Binary data
event-signal.patch
Description: Binary data
_______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users