-
Notifications
You must be signed in to change notification settings - Fork 11
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
SIGSEGV on OSX #19
Comments
Oh dear, no, it should be stable. It's being used in production on quite a few sites and no one has reported anything like this. Could you build with debugging on and get a stack trace on the segv? I could look over your code, if you're able to share it. If you can make a reproducible test-case, that would be best of all, of course. |
I try to test the ext with Neos CMS (neos.io). The CMS offer CLI tools to (re)generate thumbnails, and those commands work great, but if the thumbnail are build during a web request, it crash sometimes, I try to debug a bit more to detect where the request crash in the system, if I found nothing, i will try to setup a PHP version with more debuging tools. |
So after a bit of debugging the segv happens during the call of The value for the filename is
|
Is it a certain image (or image extension) that random crashes? Or perhaps a 1x1 GIF image is being processed? If so, then it is fixed with https://github.com/jcupitt/libvips/issues/773. |
Interesting! Does that image kill it every time? Could you send the file somehow? |
@jcupitt I prepare a small script that process only this image, outside of the CMS, and I publish it if I can reproduce the error |
My test project https://github.com/dfeyer/php-vips-ext-test So the problem seems related to my setup, from the CLI it work nicely, for a web request (Caddy Server + PHP-FPM, configuration included in the repo) it crash
From a web request: Works fine: Segv: Trying to output a phpinfo, work from the CLI, segv from a web request ... |
It seems to work for me from the CLI, but I can't get caddy to cooperate, some error about a bad gateway. I think your
I'll keep trying. |
@jcupitt this command should be fine to launch caddy
You need to adapt the path to your PHP FPM binary in the CaddyFile configuration, I use PHP OSX
And BTW thanks a lots for your support 👍 |
The content of my PHP FPM configuration file |
I couldn't reproduce the segv with Caddy + PHP-FPM + PHP 7.2 + libvips 8.5.9 on CentOS 7.4. I was able to successfully create the thumbnail from CLI and web. BTW, |
It's just a symlink |
[02-Dec-2017 00:15:55] WARNING: [pool www] child 1618 exited on signal 11 (SIGSEGV) after 55.787030 seconds from start
Is this a know issue ?
I use vips-8.5.9-Fri Dec 1 23:13:50 CET 2017
vips installed with brew and the php extension compile with pecl
OSX 10.13.1
Tested with PHP 7.1 and 7.2 it's pretty random, sometime everything work and it fast ... and sometimes just crash
Thanks
The text was updated successfully, but these errors were encountered: