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
[BUG] php artisan
runs into segmentation fault on laravel 9 and php8.1.0, php 8.1.1 and php 8.1.2
#1734
Comments
Hey @christoph-kluge, we have recently fixed a segmentation fault (#1727) which possibly is related. Could you please verify whether the crash persists with 0.79.0? Thanks! |
@bwoebi, I can reproduce a sigsegv during building the Dockerfile:
Here are the last few lines:
I'm on an Intel Mac in case that ends up mattering somehow. Here's the backtrace:
|
A possibly important finding: I did not crash on I also didn't crash on PHP 8.1.3, 8.1.4, nor 8.1.6 (I did a sort of bisect). Again, could be something subtle, but in any case it's always reproduced with the exact Dockerfile I showed above. |
PHP 8.1.3 had a critical bugfix related to observing attributes. (php/php-src@2f6a06c) That's the only thing which stands out to me, and it's not really fixable, except by using a version newer than 8.1.2 I guess. |
Changing the php image to 8.1.3 fixed this issue. Perhaps it's worth adding some |
The problem is that most code on PHP 8.1.0-8.1.2 is fine, unless it's very new code (using attributes). |
php artisan
runs into segmentation faultphp artisan
runs into segmentation fault on laravel 9 and php8.1.0, php 8.1.1 and php 8.1.2
True. I totally forgot this fact. It only applys to laravel 9 + ddtrace and php 8.1.0 - 8.1.2. My idea was how to prevent this for some other people. Anyway I've changed the title to me a bit more precise if some else searches for it. In my personal opinion this issue can be closed. |
Since @christoph-kluge is happy to close, and since we can't really think of any good solution (except using a version that includes the fix upstream), I'm closing this now. It remains for reference, thanks for the report 👍 |
Bug description
After debugging #1732 further I decided to split this.
Laravel 9 / Artisan is not supported.
What is strange and perhaps might be an indicator: bullseye with --enable-debug works 🤷♂️
Docker Image: Debian Bullseye
Docker Image: Alpine
ddtrace-debug.so
Tracer version
0.78.0
OS info
Host-System executing docker
Reproducible Dockerfiles
Alpine + Laravel 8 / 9
Debian Bullseye + Laravel 8 / 9
Debian Bullseye + Laravel 8 / 9 +
--enable-debug
- works?!The text was updated successfully, but these errors were encountered: