-
Notifications
You must be signed in to change notification settings - Fork 19
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
[2.0.0] segfault in ZTS #35
Comments
Seems you need a GINIT / GSHUTDOWN function... but IIRC create zval there is not possible |
|
Yes, but in ZTS module, globals must be managed per thread, so allocated in GINIT and freed in GSHUTDOWN... |
I'll do some reading tomorrow to become familiar. Thank you for the direction. 🙇 |
I think that what is wrong is trying to create class constant (module level) using some zval define are another level (request for now) |
Digging a bit more, I think class constants being of the same class is not possible (in PHP code or in C extension). Dropping the 2 constants solves the issue. Also it doesn"t work in web env, only on first request for a process, second request raise error and segfault.
|
Various segfault running test suite on thread safe build
Ex:
The text was updated successfully, but these errors were encountered: