Hello,
I tried to make a streaming server with libevent 2.0.22 (testsuite passed).
After a couple of minutes, server crashes on a SIGSEGV with the following backtrace:
#0 0x00007f4e98df01bb in __vsnprintf_chk () from /usr/lib/libc.so.6
#1 0x00007f4e99aec003 in evutil_vsnprintf () from /usr/lib/libevent-2.0.so.5
#2 0x00007f4e99ae349e in evbuffer_add_vprintf () from /usr/lib/libevent-2.0.so.5
#3 0x00007f4e99ae3624 in evbuffer_add_printf () from /usr/lib/libevent-2.0.so.5
#4 0x00007f4e99af2b9d in evhttp_send_reply_chunk () from /usr/lib/libevent-2.0.so.5
#5 0x00000000004015ff in (anonymous namespace)::Client::run (this=0x7f4e94006030) at main.cpp:71
#6 0x00000000004016be in (anonymous namespace)::Client::run (arg=0x7f4e94006030) at main.cpp:99
#7 0x00007f4e99d1a314 in start_thread () from /usr/lib/libpthread.so.0
#8 0x00007f4e98de224d in clone () from /usr/lib/libc.so.6
I attached a c++ example and a script that triggers the bug.
Regards
Romain Giraud