offlist-mail is out

deleting functions until it stops happening is no option in case of a global library, the autotest-suite is using them all...

thx for feedback!

Am 21.07.2017 um 13:06 schrieb Nikita Popov:
Can you provide the contents of "/Volumes/dune/www-servers/phpincludes/contentlounge-api/functions.inc.php"? If this is not publicly available code, can you send the file to ni...@php.net <mailto:ni...@php.net> and dmi...@php.net <mailto:dmi...@php.net>? (Or reduce the code -- in this case it should be easy, just delete functions until it stops happening).

Thanks,
Nikita

PS: bugs.php.net <http://bugs.php.net> is usually a better venue to report these kinds of issues.

On Fri, Jul 21, 2017 at 12:42 PM, li...@rhsoft.net <mailto:li...@rhsoft.net> <li...@rhsoft.net <mailto:li...@rhsoft.net>> wrote:

    
/home/builduser/rpmbuild/BUILD/php-7.2.0/ext/opcache/Optimizer/zend_ssa.c:1090:
    zend_ssa_compute_use_def_chains: Assertion `phi->sources[j] >= 0'
    failed.

    below a backtrace of 'opcache' from 7.2.0 beta1, the used 'php.ini'
    and the start of the build-process with configure and compiler params

    i used to build HEAD for a long time with my rpm-spec file by just
    replace the tarball, alpha1 did not compile at all, late rbuild was
    fine as well as our cli-cms-testsuite but the intermediate webserver
    before the second part for a PGO-build was broken

    currently 'opcache' when "opcache.enable_cli = 1" is enabled crashs
    very early (before any output line of the application)
    _________________________________________________________

    [builduser@testserver:/rpmbuild/PHP-PGO]$ gdb -ex=r --args
    /home/builduser/rpmbuild/BUILD/php-7.2.0/sapi/cli/php -c
    /rpmbuild/PHP-PGO/php.ini /php-pgo-docroot/cms/autotest.php
    GNU gdb (GDB) Fedora 7.12.1-48.fc25
    Copyright (C) 2017 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later
    <http://gnu.org/licenses/gpl.html <http://gnu.org/licenses/gpl.html>>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show
    copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-redhat-linux-gnu".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/
    <http://www.gnu.org/software/gdb/bugs/>>.
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/
    <http://www.gnu.org/software/gdb/documentation/>>.
    For help, type "help".
    Type "apropos word" to search for commands related to "word"...
    Reading symbols from
    /home/builduser/rpmbuild/BUILD/php-7.2.0/sapi/cli/php...done.
    Starting program:
    /home/builduser/rpmbuild/BUILD/php-7.2.0/sapi/cli/php -c
    /rpmbuild/PHP-PGO/php.ini /php-pgo-docroot/cms/autotest.php
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib64/libthread_db.so.1".
    Detaching after fork from child process 25798.
    php:
    
/home/builduser/rpmbuild/BUILD/php-7.2.0/ext/opcache/Optimizer/zend_ssa.c:1090:
    zend_ssa_compute_use_def_chains: Assertion `phi->sources[j] >= 0'
    failed.

    Program received signal SIGABRT, Aborted.
    0x00007ffff6d448df in raise () from /lib64/libc.so.6
    Missing separate debuginfos, use: dnf debuginfo-install
    bzip2-libs-1.0.6-21.fc25.x86_64
    cyrus-sasl-lib-2.1.26-26.2.fc24.x86_64 expat-2.2.1-1.fc25.x86_64
    fontconfig-2.12.1-1.fc25.x86_64 freetype-2.6.5-9.fc25.x86_64
    gd-2.2.4-1.fc25.x86_64 glibc-2.24-9.fc25.x86_64
    jbigkit-libs-2.1-5.fc24.x86_64 keyutils-libs-1.5.9-8.fc24.x86_64
    krb5-libs-1.14.4-7.fc25.x86_64 libX11-1.6.5-1.fc25.x86_64
    libXau-1.0.8-6.fc24.x86_64 libXpm-3.5.12-1.fc25.x86_64
    libcom_err-1.43.3-1.fc25.x86_64 libcrypt-nss-2.24-9.fc25.x86_64
    libcurl-7.51.0-7.fc25.x86_64 libgcc-6.3.1-1.fc25.x86_64
    libgomp-6.3.1-1.fc25.x86_64 libicu-57.1-5.fc25.x86_64
    libidn2-2.0.2-1.fc25.x86_64 libjpeg-turbo-1.5.1-0.fc25.x86_64
    libnghttp2-1.13.0-2.fc25.x86_64 libpng-1.6.27-1.fc25.x86_64
    libpsl-0.17.0-1.fc25.x86_64 libselinux-2.5-13.fc25.x86_64
    libssh2-1.8.0-1.fc25.x86_64 libstdc++-6.3.1-1.fc25.x86_64
    libtidy-5.4.0-1.fc25.x86_64 libtiff-4.0.8-1.fc25.x86_64
    libunistring-0.9.4-3.fc24.x86_64 libwebp-0.5.2-1.fc25.x86_64
    libxcb-1.12-1.fc25.x86_64 libxml2-2.9.4-2.fc25.x86_64
    libzip-1.1.3-1.fc25.x86_64 nspr-4.15.0-1.fc25.x86_64
    nss-3.31.0-1.1.fc25.x86_64 nss-softokn-freebl-3.31.0-1.0.fc25.x86_64
    nss-util-3.31.0-1.0.fc25.x86_64 openldap-2.4.44-11.fc25.x86_64
    openssl-libs-1.0.2k-1.fc25.x86_64 pcre-8.41-1.fc25.x86_64
    xz-libs-5.2.2-2.fc24.x86_64
    (gdb) bt
    #0  0x00007ffff6d448df in raise () from /lib64/libc.so.6
    #1  0x00007ffff6d464da in abort () from /lib64/libc.so.6
    #2  0x00007ffff6d3cd67 in __assert_fail_base () from /lib64/libc.so.6
    #3  0x00007ffff6d3ce12 in __assert_fail () from /lib64/libc.so.6
    #4  0x00007ffff5fa4fcd in zend_ssa_compute_use_def_chains
    (arena=0x7fffffffa4a0, op_array=0x7ffff621bcb0, ssa=0x7ffff630c288)
    at
    
/home/builduser/rpmbuild/BUILD/php-7.2.0/ext/opcache/Optimizer/zend_ssa.c:1090
    #5  0x00007ffff5f9cf9e in zend_dfa_analyze_op_array
    (op_array=0x7ffff621bcb0, ctx=0x7fffffffa4a0, ssa=0x7ffff630c288,
    flags=0x7ffff630c284)
         at
    
/home/builduser/rpmbuild/BUILD/php-7.2.0/ext/opcache/Optimizer/dfa_pass.c:102
    #6  0x00007ffff5f82767 in zend_optimize_script
    (script=0x7ffff6284a00, optimization_level=2147467263
    <tel:2147467263>, debug_level=0) at
    
/home/builduser/rpmbuild/BUILD/php-7.2.0/ext/opcache/Optimizer/zend_optimizer.c:1268
    #7  0x00007ffff5f6a93b in cache_script_in_shared_memory
    (new_persistent_script=0x7ffff6284a00, key=0x7ffff6292158
    "/Volumes/dune/www-servers/phpincludes/contentlounge-api/functions.inc.php",
    key_length=73,
         from_shared_memory=0x7fffffffa750) at
    /home/builduser/rpmbuild/BUILD/php-7.2.0/ext/opcache/ZendAccelerator.c:1321
    #8  0x00007ffff5f6beea in persistent_compile_file
    (file_handle=0x7fffffffa7c0, type=8) at
    /home/builduser/rpmbuild/BUILD/php-7.2.0/ext/opcache/ZendAccelerator.c:1922
    #9  0x00005555557f69e8 in compile_filename (type=8,
    filename=0x7ffff621f6f0) at Zend/zend_language_scanner.l:662
    #10 0x00005555558b096c in zend_include_or_eval
    (inc_filename=0x7ffff621f6f0, type=8) at
    /home/builduser/rpmbuild/BUILD/php-7.2.0/Zend/zend_execute.c:2823
    #11 0x000055555591f40f in ZEND_INCLUDE_OR_EVAL_SPEC_TMPVAR_HANDLER
    () at
    /home/builduser/rpmbuild/BUILD/php-7.2.0/Zend/zend_vm_execute.h:48099
    #12 0x0000555555934ac0 in execute_ex (ex=0x7ffff621f030) at
    /home/builduser/rpmbuild/BUILD/php-7.2.0/Zend/zend_vm_execute.h:62475
    #13 0x00005555559357f7 in zend_execute (op_array=0x7ffff6282700,
    return_value=0x0) at
    /home/builduser/rpmbuild/BUILD/php-7.2.0/Zend/zend_vm_execute.h:63099
    #14 0x00005555558519ab in zend_execute_scripts (type=8, retval=0x0,
    file_count=3) at
    /home/builduser/rpmbuild/BUILD/php-7.2.0/Zend/zend.c:1490
    #15 0x00005555557bf27f in php_execute_script
    (primary_file=0x7fffffffdfd0) at
    /home/builduser/rpmbuild/BUILD/php-7.2.0/main/main.c:2550
    #16 0x00005555559380f0 in do_cli (argc=4, argv=0x555555c9bd50) at
    /home/builduser/rpmbuild/BUILD/php-7.2.0/sapi/cli/php_cli.c:1001
    #17 0x00005555559390aa in main (argc=4, argv=0x555555c9bd50) at
    /home/builduser/rpmbuild/BUILD/php-7.2.0/sapi/cli/php_cli.c:1394
    (gdb)
    _________________________________________________________

    [builduser@testserver:/rpmbuild/PHP-PGO]$ cat php.ini
    [PHP]
    extension_dir                    =
    /home/builduser/rpmbuild/BUILD/php-7.2.0/modules
    extension                        = "zlib.so"
    extension                        = "openssl.so"
    extension                        = "mbstring.so"
    extension                        = "calendar.so"
    extension                        = "curl.so"
    extension                        = "dom.so"
    extension                        = "exif.so"
    extension                        = "fileinfo.so"
    extension                        = "gd.so"
    extension                        = "hash.so"
    extension                        = "iconv.so"
    extension                        = "intl.so"
    extension                        = "json.so"
    extension                        = "mysqlnd.so"
    extension                        = "mysqli.so"
    extension                        = "session.so"
    extension                        = "simplexml.so"
    extension                        = "tidy.so"
    extension                        = "xml.so"
    extension                        = "zip.so"
    open_basedir                     =
    "/Volumes/dune/www-servers:/usr/share/pear:/usr/share/php:/rpmbuild/PHP-PGO"
    include_path                     =
    
".:/php-pgo-docroot/cms/php:/Volumes/dune/www-servers/phpincludes:/usr/share/pear:/usr/share/php"
    default_charset                  = "ISO-8859-1"
    zend.enable_gc                   = 1
    zend.detect_unicode              = 0
    register_argc_argv               = 0
    upload_tmp_dir                   = "/rpmbuild/PHP-PGO/logs"
    error_log                        =
    "/rpmbuild/PHP-PGO/logs/php_error.log"
    zlib.output_compression          = 0
    max_execution_time               = 120
    max_input_nesting_level          = 32
    max_input_time                   = -1
    memory_limit                     = -1
    post_max_size                    = "150M"

    upload_max_filesize              = "150M"

    file_uploads                     = 1

    max_file_uploads                 = 30

    allow_url_fopen                  = 1

    allow_url_include                = 0

    realpath_cache_size              = 64K

    realpath_cache_ttl               = 300

    error_reporting                  = E_ALL

    disable_functions                = ""

    disable_classes                  = ""

    engine                           = 1

    short_open_tag                   = 1
    output_buffering                 = 0
    output_handler                   = ""
    implicit_flush                   = 0
    expose_php                       = 0
    report_memleaks                  = 1
    display_errors                   = 1
    display_startup_errors           = 1
    log_errors                       = 1
    log_errors_max_len               = 2048
    html_errors                      = 0
    track_errors                     = 0
    warn_plus_overloading            = 1
    enable_dl                        = 0
    cgi.force_redirect               = 0
    cgi.rfc2616_headers              = 0
    fastcgi.impersonate              = 1
    ignore_repeated_errors           = 0
    ignore_repeated_source           = 0
    arg_separator.output             = "&amp;"
    arg_separator.input              = "&"
    auto_globals_jit                 = 1
    request_order                    = "GP"
    default_mimetype                 = "text/html"
    default_socket_timeout           = 10
    auto_detect_line_endings         = 0
    user_agent                       = "PHP"
    gd.jpeg_ignore_warning           = 1
    pcre.jit                         = 1

    highlight.string                 = "#dd0000"
    highlight.comment                = "#ff8000"
    highlight.keyword                = "#007700"
    highlight.bg <http://highlight.bg>                     = "#ffffff"
    highlight.default                = "#0000bb"
    highlight.html                   = "#000000"

    error_prepend_string             = ""
    error_append_string              = ""
    auto_prepend_file                = ""
    auto_append_file                 = ""

    [Session]
    session.save_path                = "/rpmbuild/PHP-PGO/logs"
    session.save_handler             = "files"
    session.use_cookies              = 1
    session.use_only_cookies         = 1
    session.use_strict_mode          = 1
    session.name <http://session.name>                     = "LOUNGE_ID"
    session.referer_check            = ""
    session.auto_start               = 0
    session.cookie_lifetime          = 0
    session.cookie_path              = "/"
    session.cookie_domain            = ""
    session.cookie_secure            = 0
    session.cookie_httponly          = 1
    session.serialize_handler        = "php_serialize"
    session.gc_probability           = 0
    session.entropy_file             = "/dev/urandom"
    session.entropy_length           = 16
    session.cache_limiter            = "nocache"
    session.cache_expire             = 180
    session.use_trans_sid            = 0
    session.bug_compat_42            = 0
    session.bug_compat_warn          = 0
    session.hash_function            = 1
    session.hash_bits_per_character  = 6
    session.upload_progress.enabled  = 1
    session.lazy_write               = 1
    session.sid_bits_per_character   = 5
    session.sid_length               = 40
    url_rewriter.tags                = "disabled"

    [MySQLI]
    mysqli.default_host              = "localhost"
    mysqli.default_port              = 3306
    mysqli.default_socket            = "/var/lib/mysql/mysql.sock"
    mysqli.default_user              = ""
    mysqli.default_password          = ""
    mysqli.reconnect                 = 1
    mysqli.allow_local_infile        = 0
    mysqli.allow_persistent          = 0
    mysqli.max_links                 = 15

    [mysqlnd]
    mysqlnd.collect_statistics       = 0
    mysqlnd.debug                    = 0
    mysqlnd.net_read_timeout         = 60
    pdo_mysql.default_socket         = "/var/lib/mysql/mysql.sock"

    [Assertion]
    zend.assertions                  = -1
    assert.active                    = 0
    assert.quiet_eval                = 0

    [soap]
    soap.wsdl_cache_enabled          = 1
    soap.wsdl_cache_dir              = "/rpmbuild/PHP-PGO/logs"
    soap.wsdl_cache_ttl              = 5

    [mbstring]
    mbstring.language                = "German"
    mbstring.internal_encoding       = "ISO-8859-1"
    mbstring.http_input              = "auto"
    mbstring.encoding_translation    = 0
    mbstring.detect_order            = "auto"
    mbstring.func_overload           = 0

    [Date]
    date.timezone                    = "Europe/Vienna"

    [zend]
    zend_extension                   = "opcache.so"
    opcache.enable                   = 1
    opcache.enable_cli               = 1
    opcache.load_comments            = 0
    opcache.save_comments            = 0
    opcache.use_cwd                  = 1
    opcache.validate_timestamps      = 1
    opcache.validate_permission      = 0
    opcache.revalidate_freq          = 1
    opcache.revalidate_path          = 0
    opcache.max_accelerated_files    = 1000
    opcache.memory_consumption       = 32
    opcache.interned_strings_buffer  = 8
    opcache.max_file_size            = 327680
    opcache.enable_file_override     = 1
    opcache.fast_shutdown            = 1
    opcache.log_verbosity_level      = 1
    opcache.huge_code_pages          = 1
    _________________________________________________________

    [builduser@testserver:/rpmbuild/SPECS]$ rpmbuild -bb php.spec
    Ausführung(%prep): /bin/sh -e /var/tmp/rpm-tmp.VKIxrw
    + umask 022
    + cd /home/builduser/rpmbuild/BUILD
    + export LANG=C
    + LANG=C
    + cd /home/builduser/rpmbuild/BUILD
    + rm -rf php-7.2.0
    + /usr/bin/xz -dc /home/builduser/rpmbuild/SOURCES/php-7.2.0.tar.xz
    + /usr/bin/tar -xof -
    + STATUS=0
    + '[' 0 -ne 0 ']'
    + cd php-7.2.0
    + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
    + echo 'Patch #1 (php-realpath-cache-openbasedir.patch):'
    Patch #1 (php-realpath-cache-openbasedir.patch):
    + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .realpath
    --fuzz=0
    patching file main/main.c
    Hunk #1 succeeded at 1642 (offset 40 lines).
    Hunk #2 succeeded at 2230 (offset 52 lines).
    + echo 'Patch #3 (php-71-systzdata.patch):'
    Patch #3 (php-71-systzdata.patch):
    + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix
    .systzdata-71 --fuzz=0
    patching file ext/date/lib/parse_tz.c
    patching file ext/date/lib/timelib.m4
    + '[' -f /usr/bin/php ']'
    + /usr/bin/php ext/fileinfo/create_data_file.php
    /usr/share/misc/magic.mgc
    + '[' -f /usr/bin/php ']'
    + /usr/bin/php Zend/zend_vm_gen.php --with-vm-kind=HYBRID
    zend_vm_opcodes.h generated successfully.
    zend_vm_opcodes.c generated successfully.
    zend_vm_execute.h generated successfully.
    + rm -f TSRM/tsrm_win32.h TSRM/tsrm_config.w32.h
    Zend/zend_config.w32.h ext/mysqlnd/config-win.h
    ext/standard/winver.h main/win32_internal_function_disabled.h
    main/win95nt.h
    + find . -name '*.[ch]' -exec chmod 644 '{}' ';'
    + xargs rm -f
    + rm -rf ext/openssl/tests/
    + exit 0
    Ausführung(%build): /bin/sh -e /var/tmp/rpm-tmp.Hi7mx2
    + umask 022
    + cd /home/builduser/rpmbuild/BUILD
    + cd php-7.2.0
    + export LANG=C
    + LANG=C
    + libtoolize --force --copy --quiet
    ++ aclocal --print-ac-dir
    ++ aclocal --print-ac-dir
    ++ aclocal --print-ac-dir
    ++ aclocal --print-ac-dir
    ++ aclocal --print-ac-dir
    + cat /usr/share/aclocal/libtool.m4 /usr/share/aclocal/ltoptions.m4
    /usr/share/aclocal/ltsugar.m4 /usr/share/aclocal/ltversion.m4
    /usr/share/aclocal/lt~obsolete.m4
    + touch configure.in <http://configure.in>
    + ./buildconf --force
    Forcing buildconf
    Removing configure caches
    buildconf: checking installation...
    buildconf: autoconf version 2.69 (ok)
    rebuilding aclocal.m4
    rebuilding configure
    autoconf: warning: both `configure.ac <http://configure.ac>' and
    `configure.in <http://configure.in>' are present.
    autoconf: warning: proceeding with `configure.ac <http://configure.ac>'.
    rebuilding main/php_config.h.in <http://php_config.h.in>
    autoheader: 'configure.ac <http://configure.ac>' and 'configure.in
    <http://configure.in>' both present.
    autoheader: proceeding with 'configure.ac <http://configure.ac>'
    + RH_LTO_FLAGS='-fno-lto -fuse-ld=gold -fuse-linker-plugin'
    + export 'CFLAGS=-m64 -O0 -g3 -fno-lto'
    + CFLAGS='-m64 -O0 -g3 -fno-lto'
    + export 'CC=gcc -m64 -O0 -g3 -fno-lto'
    + CC='gcc -m64 -O0 -g3 -fno-lto'
    + export 'CXXFLAGS=-m64 -O0 -g3 -fno-lto'
    + CXXFLAGS='-m64 -O0 -g3 -fno-lto'
    + export 'CXX=gcc -m64 -O0 -g3 -fno-lto'
    + CXX='gcc -m64 -O0 -g3 -fno-lto'
    + export 'SH_LDFLAGS=-Wl,--as-needed -Wl,-z,now -Wl,-z,relro
    -Wl,-z,noexecstack -Wl,-z,nodump -m64 -O0 -g3 -fno-lto'
    + SH_LDFLAGS='-Wl,--as-needed -Wl,-z,now -Wl,-z,relro
    -Wl,-z,noexecstack -Wl,-z,nodump -m64 -O0 -g3 -fno-lto'
    + export 'LDFLAGS=-Wl,--as-needed -Wl,-z,now -Wl,-z,relro
    -Wl,-z,noexecstack -Wl,-z,nodump -m64 -O0 -g3 -fno-lto -pie -fPIE'
    + LDFLAGS='-Wl,--as-needed -Wl,-z,now -Wl,-z,relro
    -Wl,-z,noexecstack -Wl,-z,nodump -m64 -O0 -g3 -fno-lto -pie -fPIE'
    + export EXTENSION_DIR=/usr/lib64/php/modules
    + EXTENSION_DIR=/usr/lib64/php/modules
    + ./configure --host=x86_64-redhat-linux --build=x86_64-redhat-linux
    --target=x86_64-redhat-linux --prefix=/usr --program-prefix=
    --libdir=/usr/lib64/php --disable-all --disable-dependency-tracking
    --enable-bcmath=shared --enable-calendar=shared --enable-cli
    --enable-ctype=shared --enable-dom=shared --enable-exif=shared
    --enable-fileinfo=shared --enable-filter --enable-hash=shared
    --enable-huge-code-pages --enable-inline-optimization
    --enable-intl=shared --enable-json=shared --enable-libxml
    --enable-mbregex --enable-mbstring=shared --enable-mysqlnd=shared
    --enable-opcache=shared --enable-opcache-jit --enable-pcntl=shared
    --enable-pdo=shared --enable-phar=shared --enable-posix=shared
    --enable-re2c-cgoto --enable-session=shared --enable-shared
    --enable-simplexml=shared --enable-soap=shared
    --enable-sockets=shared --enable-tokenizer=shared
    --enable-xml=shared --enable-xmlreader=shared
    --enable-xmlwriter=shared --enable-zip=shared
    --with-apxs2=/usr/bin/apxs --with-bz2=shared,/usr
    --with-config-file-path=/etc
    --with-config-file-scan-dir=/etc/php.lounge.d
    --with-curl=shared,/usr --with-freetype-dir=/usr
    --with-gd=shared,/usr --with-gettext=shared,/usr --with-iconv=shared
    --with-imap-ssl=/usr --with-imap=shared,/usr --with-kerberos=/usr
    --with-layout=GNU --with-libdir=lib64 --with-libedit=shared,/usr
    --with-libxml-dir=/usr --with-libzip=/usr
    --with-mysql-sock=/var/lib/mysql/mysql.sock
    --with-mysqli=shared,mysqlnd --with-openssl=shared,/usr
    --with-pcre-jit --with-pcre-regex=/usr
    --with-pdo-mysql=shared,mysqlnd --with-pic --with-system-ciphers
    --with-system-tzdata --with-tidy=shared,/usr --with-zlib=shared
    --with-zlib-dir=/usr --disable-cgi --disable-dmalloc
    --disable-dtrace --disable-gcov --disable-gd-jis-conv --disable-ipv6
    --disable-mysqlnd-compression-support --disable-opcache-file
    --disable-phpdbg --disable-rpath --disable-short-tags
    --disable-static --enable-gcc-global-regs --enable-debug
    configure: WARNING: unrecognized options:
    --disable-dependency-tracking, --enable-opcache-jit

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to