|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-09-13 16:54 UTC] evert at rooftopsolutions dot nl
Description: ------------ I upgraded my libevent to 2.0.20, but this gave me "Segmentation fault 11" when using pecl/event. Downgrading back to 2.0.19 seem to work. GDB indicated that the segmentation fault happened in event_pending(). The changelog seems to indicate a change did indeed happen there: https://raw.github.com/libevent/libevent/release-2.0.20-stable/ChangeLog Note that I did also recompile the pecl extension. Just in case there was an ABI break. Test script: --------------- Run : event_base_loop with some events attached. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 03:00:01 2025 UTC |
Took me some time to get a very simple test case, and it also made me realize my bug is a lot more specific than I initially thought. Sorry about this, but here's the new information This script will always throw the SIG11 with Libevent 2.0.20. <?php $buffer = event_buffer_new( STDIN, function() { echo "read\n"; }, function() { echo "write\n"; }, function() { echo "error\n"; } ); event_buffer_timeout_set($buffer, 5, 5); ?> I also came to the realization that event_buffer_timeout_set will not throw the segmentation fault, if it is called *after* event_buffer_base. And just in case.. The SIG11 does not get thrown with libevent 2.0.19, so this is definitely a newly introduced bug. Hope this helps! I have my workaround in any case.