oerdnj / deb.sury.org

Public bugreports for anything ppa:ondrej/*
830 stars 26 forks source link

Segmentation fault executing curl_init() with php8.3-swoole on Debian packages #2082

Closed MrMeshok closed 6 months ago

MrMeshok commented 9 months ago

Frequently asked questions

Describe the bug I got error "Segmentation fault (core dumped)" when running composer commands on Debian 12 VM. After disabling swoole extension error disappeared. After that i tried to reproduce it in docker on Debian 12 and Ubuntu 22.04. Error happens only on packages from packages.sury.org, Ubuntu PPA not affected. I even try to use packages.sury.org on Ubuntu(pretending to be bookworm)

I did some digging through composer source code and found out error happens when using curl_init. And it's happening only on php8.3, php8.2 work as expected

To Reproduce Run this commands on clean Debian 12:

  1. apt-get update
  2. apt-get install -y curl
  3. curl -sSL https://packages.sury.org/php/README.txt | bash -x
  4. apt install -y php8.3-swoole
  5. php -r 'curl_init();'

OR through docker

docker run --rm -it debian:12 /bin/sh -c "apt-get update && apt-get install -y curl && curl -sSL https://packages.sury.org/php/README.txt | bash -x && apt install -y php8.3-swoole && php -r 'curl_init();'"

What steps did you take to resolve issue yourself before reporting it here Tried different distributions and packages

Expected behavior php -r 'curl_init();' executes without error

Distribution:

jadeops commented 9 months ago

maybe php8.3-swoole needs an update.

current: Version: 5.1.1-1+0~20240213.15+debian12\~1.gbpb0e467

from v5.1.2 changelog https://github.com/swoole/swoole-src/releases

Fixed native-curl crash on PHP 8.3 @NathanFreeman
oerdnj commented 9 months ago

It's missing the upload to the PECL.

MrMeshok commented 9 months ago

Ubuntu PPA has the same 5.1.1-1 version, but no issue there

oerdnj commented 8 months ago

Still nothing, see the upstream issue: https://github.com/swoole/swoole-src/issues/5242

nanaya commented 8 months ago

as an alternative maybe disable curl option for now?

webard commented 6 months ago

Hello, Swoole 5.1.2 was released in PECL today: https://pecl.php.net/package-changelog.php?amp=&package=swoole&release=4.5.5 @oerdnj can you trigger build extension in your repository?

jadeops commented 6 months ago

looks like upstream closed the issue - https://github.com/swoole/swoole-src/issues/5242

jadeops commented 6 months ago

this is now fixed! @MrMeshok

$ apt info php8.3-swoole
Package: php8.3-swoole
Version: 5.1.2-1+0~20240513.22+debian12~1.gbp9cce87
MrMeshok commented 6 months ago

Everything works now. Thanks everyone!