Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113468 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 65974 invoked from network); 11 Mar 2021 09:42:15 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Mar 2021 09:42:15 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 689581804D3 for ; Thu, 11 Mar 2021 01:34:43 -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.1 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_NEUTRAL autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) by php-smtp4.php.net (Postfix) with ESMTP for ; Thu, 11 Mar 2021 01:34:42 -0800 (PST) Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 3909710C4EF; Thu, 11 Mar 2021 09:34:42 +0000 (GMT) Date: Thu, 11 Mar 2021 09:34:42 +0000 (GMT) X-X-Sender: derick@singlemalt.home.derickrethans.nl To: Dmitry Stogov cc: Dennis Birkholz , Nikita Popov , PHP Developers Mailing List In-Reply-To: Message-ID: References: <9d6a2c36-87fa-faad-72b4-a94e1e726f04@dennis.birkholz.biz> User-Agent: Alpine 2.23 (DEB 453 2020-06-18) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [PHP-DEV] Re: Recent changes to opcache cause crashes From: derick@php.net (Derick Rethans) Hi Dmitry, I can confirm that it works locally again too now. cheers, Derick On Wed, 10 Mar 2021, Dmitry Stogov wrote: > This is fixed in master. > > Thanks. Dmitry. > > On Fri, Mar 5, 2021 at 4:43 PM Dennis Birkholz > wrote: > > > 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 > > >> > > >> > > > > > > > > -- PHP 7.4 Release Manager Host of PHP Internals News: https://phpinternals.news Like Xdebug? Consider supporting me: https://xdebug.org/support https://derickrethans.nl | https://xdebug.org | https://dram.io twitter: @derickr and @xdebug