Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-95921

PGO build of PHP fails with SSA corruption

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • rhel-10.1
    • rhel-10.0
    • gcc
    • gcc-14.3.1-2.1.el10
    • Yes
    • Important
    • 1
    • rhel-pt-gcc
    • ssg_platform_tools
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • Red Hat Enterprise Linux
    • PT GCC 2025 S09
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified
    • x86_64
    • None

      gcc version 14.2.1 20250110 (Red Hat 14.2.1-7) on Almalinux 10

      May have been fixed in upstream 14.3

      Upstream bug:
      https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120613

      Options:
      ./configure CFLAGS='-O2 -march=native' --prefix=/usr/local/php848 --enable-intl --with-mysqli --with-zlib --with-zip --enable-fpm --with-openssl --enable-mbstring --with-curl --enable-calendar --enable-exif --enable-opcache --enable-shmop --enable-bcmath --with-sodium --enable-gd --with-fpm-systemd --with-fpm-selinux --with-pear --with-readline

      Command line:
      make prof-gen
      sapi/cgi/php-cgi -T 100 /path/to/index.php >/dev/null
      make prof-clean
      make prof-use

      Output:
      /bin/sh /tmp/php-8.4.8/libtool --silent --preserve-dup-deps --tag=CC --mode=compile cc -Iext/session/ -I/tmp/php-8.4.8/ext/session/ -I/tmp/php-8.4.8/main -I/tmp/php-8.4.8 -I/tmp/php-8.4.8/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng16 -I/tmp/php-8.4.8/ext/mbstring/libmbfl -I/tmp/php-8.4.8/ext/mbstring/libmbfl/mbfl -I/tmp/php-8.4.8/TSRM -I/tmp/php-8.4.8/Zend -D_GNU_SOURCE -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond -Wno-clobbered -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -O2 -march=native -ffp-contract=off -fvisibility=hidden -Wimplicit-fallthrough=1 -DZEND_SIGNALS -fprofile-use -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /tmp/php-8.4.8/ext/session/session.c -o ext/session/session.lo -MMD -MF ext/session/session.dep -MT ext/session/session.lo
      /tmp/php-8.4.8/ext/session/session.c: In function 'php_session_rfc1867_callback':
      /tmp/php-8.4.8/ext/session/session.c:3407:1: warning: '/tmp/php-8.4.8/ext/session/.libs/session.gcda' profile count data file not found [-Wmissing-profile]
      3407 | };

      ^

      Unable to coalesce ssa_names 3 and 4 which are marked as MUST COALESCE.
      __orig_bailout_3(ab) and __orig_bailout_4(ab)
      during RTL pass: expand
      In file included from /tmp/php-8.4.8/main/php.h:35,
      from /tmp/php-8.4.8/ext/session/session.c:22:
      /tmp/php-8.4.8/ext/session/session.c: In function 'zm_deactivate_session':
      /tmp/php-8.4.8/Zend/zend_API.h:225:49: internal compiler error: SSA corruption
      225 | #define ZEND_MODULE_DEACTIVATE_N(module) zm_deactivate_##module

      ^~~~~~~~~~~~~~
      /tmp/php-8.4.8/Zend/zend_API.h:235:61: note: in expansion of macro 'ZEND_MODULE_DEACTIVATE_N'
      235
      #define ZEND_MODULE_DEACTIVATE_D(module) zend_result ZEND_MODULE_DEACTIVATE_N(module)(SHUTDOWN_FUNC_ARGS)
      ^~~~~~~~~~~~~~~~~~~~~~~~
      /tmp/php-8.4.8/main/php.h:403:33: note: in expansion of macro 'ZEND_MODULE_DEACTIVATE_D'
      403
      #define PHP_RSHUTDOWN_FUNCTION ZEND_MODULE_DEACTIVATE_D
      ^~~~~~~~~~~~~~~~~~~~~~~~
      /tmp/php-8.4.8/ext/session/session.c:2925:8: note: in expansion of macro 'PHP_RSHUTDOWN_FUNCTION'
      2925
      static PHP_RSHUTDOWN_FUNCTION(session) /* {{{ */
      ^~~~~~~~~~~~~~~~~~~~~~
      Please submit a full bug report, with preprocessed source.
      See <
      http://bugs.almalinux.org/
      > for instructions.
      Preprocessed source stored into /tmp/ccJtjIIy.out file, please attach this to your bugreport.
      make[1]: *** [Makefile:2500: ext/session/session.lo] Error 1
      make[1]: Leaving directory '/tmp/php-8.4.8'
      make: *** [Makefile:267: prof-use] Error 2

              rhn-support-vkadlcik Vaclav Kadlcik
              p.ruber Petasus Ruber (Inactive)
              SST PT GCC Bot SST PT GCC Bot
              Vaclav Kadlcik Vaclav Kadlcik
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: