Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113401 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 94566 invoked from network); 5 Mar 2021 13:52:53 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Mar 2021 13:52:53 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B8F8F1804F6 for ; Fri, 5 Mar 2021 05:43:53 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail01.nexxes.net (mail01.nexxes.net [144.76.185.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 5 Mar 2021 05:43:52 -0800 (PST) Received: from [IPv6:2001:4dd6:1a8b:0:8530:a54d:dd2b:df01] (2001-4dd6-1a8b-0-8530-a54d-dd2b-df01.ipv6dyn.netcologne.de [IPv6:2001:4dd6:1a8b:0:8530:a54d:dd2b:df01]) (Authenticated sender: db220660-p0g-1) by mail01.nexxes.net (Postfix) with ESMTPSA id 716B686063B; Fri, 5 Mar 2021 14:43:50 +0100 (CET) To: Dmitry Stogov , Derick Rethans Cc: Nikita Popov , PHP Developers Mailing List References: Message-ID: <9d6a2c36-87fa-faad-72b4-a94e1e726f04@dennis.birkholz.biz> Date: Fri, 5 Mar 2021 14:43:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Recent changes to opcache cause crashes From: php@dennis.birkholz.biz (Dennis Birkholz) Hello, I was also able to reproduce the error. I used the latest available "daily" cloud image for Debian Buster and created a small recipe to reproduce. Hopefully this helps in finding the problem. Greets Dennis wget "https://cloud.debian.org/images/cloud/buster/20210208-542/debian-10-nocloud-amd64-20210208-542.tar.xz" tar -xvf "debian-10-nocloud-amd64-20210208-542.tar.xz" # Resized the image, 2GB is to small dd if=/dev/zero bs=1M count=1 seek=20479 of=disk.raw echo ", +" | /sbin/sfdisk -N 1 disk.raw sudo losetup -f --show disk.raw sudo partprobe /dev/loop0 sudo e2fsck -f /dev/loop0p1 sudo resize2fs /dev/loop0p1 sudo losetup -d /dev/loop0 # create and start VM, e.g. with virt-manager # Inside VM # Generate ssh host keys dpkg-reconfigure openssh-server # Change PermitRootLogin, PasswordAuthentication and PermitEmptyPasswords to yes to login without password/key systemctl restart sshd.service apt install git autoconf make gcc g++ pkg-config bison re2c libssl-dev libxml2-dev libsqlite3-dev zlib1g-dev libbz2-dev libcurl4-openssl-dev libpng-dev libjpeg-dev libonig-dev libreadline-dev libsodium-dev libxslt1-dev libzip-dev libffi-dev git clone https://github.com/php/php-src cd php-src ./buildconf ./configure '--prefix=/usr/local/php/master' '--enable-debug' '--with-gettext' '--with-gd' '--enable-gd' '--with-jpeg' '--without-freetype' '--with-jpeg-dir=/usr' '--without-freetype-dir' '--with-mysql=mysqlnd' '--enable-bcmath' '--with-readline' '--with-openssl' '--without-esmtp' '--with-curl' '--with-sodium' '--with-ffi' '--with-mysqli' '--enable-pcntl' '--enable-sockets' '--enable-zip' '--with-zip' '--enable-memory-limit' '--with-mcrypt' '--with-libxml' '--enable-libxml' '--with-iconv' '--enable-wddx' '--enable-calendar' '--with-sqlite3' '--enable-spl' '--enable-pdo' '--with-pdo-mysql' '--with-pdo-sqlite' '--with-ctype' '--with-bz2' '--enable-mbstring' '--with-mime-magic' '--with-xmlrpc' '--with-zlib' '--disable-zend-memory-manager' '--with-esmtp' '--with-xsl' '--enable-exif' '--enable-soap' '--enable-ftp' '--enable-intl' '--enable-opcache' '--enable-fpm' '--enable-fileinfo' '--with-pear' make && make install cd ~ wget "https://derickrethans.nl/files/dump/xdebug_var_dump_typed_properties-text.php.txt" -O "xdebug_var_dump_typed_properties-text.php" /usr/local/php/master/bin/php -n -dzend_extension=opcache -d "opcache.enable=1" -d "opcache.enable_cli=1" -d "opcache.optimization_level=-1" -f xdebug_var_dump_typed_properties-text.php Am 04.03.21 um 19:14 schrieb Dmitry Stogov: > I suppose, something is wrong with your build. > This code works fine for me. > Please, try full rebuild. > > Thanks. Dmitry. > > On Thu, Mar 4, 2021 at 9:00 PM Derick Rethans wrote: > >> Hi, >> >> turns out that this test fails even without Xdebug even loaded, so it's >> not something on my side :-) >> >> Just run it as: >> >> wget >> https://derickrethans.nl/files/dump/xdebug_var_dump_typed_properties-text.php.txt >> -O xdebug_var_dump_typed_properties-text.php >> php -n -dzend_extension=opcache -d "opcache.enable=1" -d >> "opcache.enable_cli=1" -d "opcache.optimization_level=-1" -f >> xdebug_var_dump_typed_properties-text.php >> >> Result: >> >> php: /home/derick/dev/php/php-src.git/ext/opcache/zend_persist.c:327: >> zend_accel_get_type_map_ptr: Assertion `ret > 2' failed. >> Aborted >> >> >> cheers, >> Derick >> >> >