-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uv_queue_work() - Error in `zts-php': double free or corruption (fasttop) #46
Comments
This thing is very much unsafe … I definitely wouldn't use it currently :x … I probably should remove that thing altogether here. That's what ext/pthreads is actually for… Use that, if you need threads in a safe way. |
I resolve the cause, this problem in |
Did you try with PHP 7.2? ZTS is broken in PHP 7.0 and 7.1. |
# zts-php -v
# zts-php test_uv_queue_work.php
|
added the no real issue amphp#46
For future reference, I find the issues with other extensions installed. Having I find segmentation faults really happening on type of variables being referenced in the callbacks. Everything executes as expected, but segfaults when done, like using As the current Windows version does not do after callbacks, but using So removing #83 not really a good idea. |
- some testing under PHPunit works best with `@runInSeparateProcess` - skip channel test under PHPunit long stall before segfault, no segfault under Windows though - update `Thread` class to properly handle multi arguments, docblock comment about cancel - these additions in reference to amphp/ext-uv#46
in reference to: amphp#46
The text was updated successfully, but these errors were encountered: