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
PHP: Segfault with version 3.11.2 and simple spanner call #7055
Comments
Are you able to simplify the logic to only need protobuf's logic? |
@TeBoring updated my test repo to eliminate needing to use spanner. segfaults when doing spanner unit tests. |
@TeBoring I tested #7077 and my spanner client example works now. The unit tests for https://github.com/googleapis/google-cloud-php segfault in a different place, but I think that's a different issue as they seem to segfault in the same place using php protobuf 3.10 c extension as well. |
Please give more details (stack trace could also help) for the google-cloud-php failure. |
Steps to reproduce
|
Could you copy the stack trace here? |
Sorry, cannot reproduce bug with your repo. |
ok, manually running commands from your script seems working |
I can reproduce the error now. However, there are so many tests and I am not familiar with their code base. Can someone simplify the logic to only involve protobuf? |
Any update? Shall we merge #7077 first? |
I have a similar segmentation fault error.
|
It's Works! |
Fixed in #7077 |
What version of protobuf and what language are you using?
Version: 3.11.2
Language: php 7.3.13 (tested with other versions)
What operating system (Linux, Windows, ...) and version?
Linux - Ubuntu Buster
What runtime / compiler are you using (e.g., python version or gcc version)
php 7.3.13 with gcc 8.3.0
What did you do?
See example at https://github.com/bakins/php-protobuf-segfault
What did you expect to see
PHP script runs successfully with protobuf extension version 3.11.2
What did you see instead?
Segfault.
Works with extension version 3.10.0
Anything else we should know about your project / environment
Simple spanner example code from https://github.com/GoogleCloudPlatform/php-docs-samples/blob/master/spanner/quickstart.php
The text was updated successfully, but these errors were encountered: