-
Notifications
You must be signed in to change notification settings - Fork 118
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
PHP7 segmentation fault with references #94
Comments
Hey @redcapital This is AWESOME I had some other people submit a bug that is probably the same, but couldn't get to the bottom of it because the cases were large (I couldn't get them smaller and reproduce either) I will look at this tonight after work. thanks |
@Sean-Der have you forgot about it? |
Here is some extra test data. I pulled it out of the
this wil segfault in php7, but not in php5.5:
works
segmentation fault Strange thing is, there are a lot of ways to have it not-segfault, for instance:
This works in all versions. |
workaround for msgpack#94, possibly at the expense of leaking a bit of memory?
workaround for #94, possibly at the expense of leaking a bit of memory?
Hey @redcapital @mente @NanneHuiges sorry this got dropped, I don't work on PHP daily so hard to find time. The good news is that @sodabrew contributed a patch that fixes this! Would you mind trying master? The example data in the first comment doesn't cause a segfault anymore. |
cool! We're currently running our own compiled version with that patch ( e932088 ) and it is performing very well for us. |
Yep! My mistake it was @mheijkoop who fixed it, I was trying to close tickets quickly last night and just grabbing anything that worked out of my clipring |
👍 then this is considered fixed for us |
Segfault when using PHP references. This is the test case which I tried to reduce as much as possible:
Works in PHP 5.4 and possibly in any other PHP 5
The text was updated successfully, but these errors were encountered: