Skip to content
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

v4.33.2 causes segmentation faults on artisan commands when opcache is enabled #6370

Closed
MarcusOhman91 opened this issue May 7, 2024 · 1 comment

Comments

@MarcusOhman91
Copy link

MarcusOhman91 commented May 7, 2024

  • Laravel Version: 10 &11
  • Nova Version: 4.33.2
  • PHP Version: 8.1 & 8.2
  • Database Driver & Version: -
  • Operating System and Version: Linux ubuntu 22
  • Browser type and version: -
  • Reproduction Repository: -

Description:

Spent numerous hours debugging until i finally found that this version of laravel nova was the cause. My license currently only works until 4.33.2 so I don't know if this was fixed in 4.33.3 or if it's still a problem.

My current solution is to downgrade to 4.33.1. ALternatively if you want to run 4.33.2 you need to disable opcache in cli by setting opcache.enable_cli=0 in php.ini

Detailed steps to reproduce the issue on a fresh Nova installation:

  1. Install laravel 11 + php 8.2.
  2. make sure opcache is installed and enabled for CLI via php.ini: opcache.enable_cli=1
  3. run php artisan and you will see that it crashes with Segmentation fault (core dumped)
@crynobone
Copy link
Member

Laravel doesn't recommend using OpCache wirh enable_cli. See laravel/sail#684

@crynobone crynobone closed this as not planned Won't fix, can't repro, duplicate, stale May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants