I found the problem !

I use ifplugd. On down event, my script did a "/sbin/ifconfig eth0 0.0.0.0". If I comment this line, libevent doesn't make a SEGFAULT or something hazardious.

I think you can reproduce the problem with a program which evhttp_connection_base_new() and use the same connection again and again. After, If you unplug the cable, you should see the problem.

Maybe libevent could be resilience about this case, couldn't it ?

Regards,
Anthony Viallard