psalm: Version 5.7 fails with exit code 139

With version 5.6 I get this:

dev@php-fpm /app (chore(deps)/dependency-update)> ./vendor/bin/psalm --version
Psalm 5.6.0@e784128902dfe01d489c4123d69918a9f3c1eac5
dev@php-fpm /app (chore(deps)/dependency-update)> ./vendor/bin/psalm src/Controller/IndexController.php
Target PHP version: 8.2 (inferred from current PHP version) Enabled extensions: pdo.
Scanning files...
Deprecation: Psalm stubs for ext-apcu loaded using legacy way. Instead, please declare ext-apcu as dependency in composer.json or use <enableExtensions> and/or <disableExtensions> directives in Psalm config.
Analyzing files...

░

To whom it may concern: Psalm cannot detect unused classes, methods and properties
when analyzing individual files and folders. Run on the full project to enable
complete unused code detection.
------------------------------
                              
       No errors found!       
                              
------------------------------

Checks took 1.59 seconds and used 316.663MB of memory
Psalm was able to infer types for 100% of the codebase
dev@php-fpm /app (chore(deps)/dependency-update)>

And with version 5.7 I get this:

dev@php-fpm /app (chore(deps)/dependency-update)> ./vendor/bin/psalm --version
Psalm 5.7.0@d934875532c7eb344d6b2914c3525f116a6b0cf2
dev@php-fpm /app (chore(deps)/dependency-update)> ./vendor/bin/psalm src/Controller/IndexController.php
dev@php-fpm /app (chore(deps)/dependency-update) [139]> 

And in the version 5.7 the exit code is 139, so there is something fishy going on.

Also tried to run with --threads=1 option and the end results is the same.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 22 (8 by maintainers)

Commits related to this issue

Most upvoted comments

Try commenting out these lines:

https://github.com/vimeo/psalm/blob/d934875532c7eb344d6b2914c3525f116a6b0cf2/src/Psalm/Internal/Fork/PsalmRestarter.php#L98-L100

and running without PSALM_ALLOW_XDEBUG=1

Yeah it works when I commented out those lines.