Skip to content

Segfault when using Imagick with phpbrew #609

@bahag-schlachterk

Description

@bahag-schlachterk

After an upgrade to Ubuntu 23.04 and starting to rebuild php 8.1 or 8.2 by using phpbrew the build works but the resulting version of the extension is broken and will cause php to crash with a seg fault.

Information gathered so far:

  • phpbrew used: 2.1
  • Imagick used: 6.9.11-60 Q16 x86_64 2021-01-25 (from ubuntu repo for 23.04, see below)
  • Installed packages:
    -- imagemagick-6-common/lunar,lunar,now 8:6.9.11.60+dfsg-1.6
    -- imagemagick-6.q16/lunar,now 8:6.9.11.60+dfsg-1.6
    -- imagemagick-common/lunar,lunar,now 8:6.9.11.60+dfsg-1.6
    -- imagemagick/lunar,now 8:6.9.11.60+dfsg-1.6
    -- libimage-magick-perl/lunar,lunar,now 8:6.9.11.60+dfsg-1.6
    -- libimage-magick-q16-perl/lunar,now 8:6.9.11.60+dfsg-1.6
    -- libmagick++-6.q16-8/lunar,now 8:6.9.11.60+dfsg-1.6
    -- libmagickcore-6-arch-config/lunar,now 8:6.9.11.60+dfsg-1.6
    -- libmagickcore-6-headers/lunar,lunar,now 8:6.9.11.60+dfsg-1.6
    -- libmagickcore-6.q16-6-extra/lunar,now 8:6.9.11.60+dfsg-1.6
    -- libmagickcore-6.q16-6/lunar,now 8:6.9.11.60+dfsg-1.6
    -- libmagickcore-6.q16-dev/lunar,now 8:6.9.11.60+dfsg-1.6
    -- libmagickwand-6-headers/lunar,lunar,now 8:6.9.11.60+dfsg-1.6
    -- libmagickwand-6.q16-6/lunar,now 8:6.9.11.60+dfsg-1.6
    -- libmagickwand-6.q16-dev/lunar,now 8:6.9.11.60+dfsg-1.6
    -- libmagickwand-dev/lunar,lunar,now 8:6.9.11.60+dfsg-1.6

Steps to reproduce (as far as known ...):

  • Install / Upgrade to Ubuntu 23.04
  • install phpbrew 2.10 as recommended
  • install / compile a version of php 8.2.x or php 8.1.x with phpbrew including desired variants
  • switch or use or call binary for specific version
  • run php -v or php -i to see if version is selected and working => works fine
  • add imagick to running variant by 'phpbrew ext install imagick'
  • compile runs once imagick-dev and other dependencies are installed on host
  • run php -v or php -i to check everything still works => get segfault message => disabling the extension needs to be done manually as the activated php is not usable anymore ...

If more information is required, feel free to ask.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions