From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7E2463858C5E; Mon, 13 Mar 2023 13:53:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E2463858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678715622; bh=COIckJPoMHFOvWZfg0oPYKX/bPQ8vpcLBHswtcBugvg=; h=From:To:Subject:Date:From; b=livrmi65vgZLQeuEQDeN+9wcl96XVwLCj91BnVt38wXMXC95uixZU7OTQW35AyoQr N2n8SDbBprvYI8qFSqN3N4WzGTaOpPzn+6YHcix88O7wPVoTWjdCaxJdj94WQXfZSL 2kpG3Z5hFEnzBF8gpG1bEJ9xDX/Yf6k5tjcAiZMk= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109109] New: mariadb fails in tests on i586 (non-LTO mode) after r13-4435-g2c089640279614e3 Date: Mon, 13 Mar 2023 13:53:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109109 Bug ID: 109109 Summary: mariadb fails in tests on i586 (non-LTO mode) after r13-4435-g2c089640279614e3 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: jakub at gcc dot gnu.org, rguenth at gcc dot gnu.org Target Milestone: --- Created attachment 54648 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54648&action=3Dedit Unreduced test-case After the revision I see the following failure in mariadb package: ./mysql-test-run.pl --parallel=3D32 --force --retry=3D0 --ssl --suite-timeo= ut=3D900 --testcase-timeout=3D30 --mysqld=3D--binlog-format=3Dmixed --force-restart --shutdown-timeout=3D60 --max-test-fail=3D0 --skip-test=3Dspider --skip-test-list=3Dunstable-tests innodb_zip.bug36169 ... 2023-03-13 13:49:08 4 [ERROR] InnoDB: Cannot add field `col48` in table `test`.`table0` because after adding it, the row size is 708 which is great= er than maximum allowed size (708 bytes) for a record on index leaf page. 2023-03-13 13:49:08 4 [ERROR] InnoDB: Trying to read 4096 bytes at 42949632= 00 outside the bounds of the file: ./ibdata1 2023-03-13 13:49:08 4 [ERROR] InnoDB: File './ibdata1' is corrupted 2023-03-13 13:49:08 4 [ERROR] InnoDB: Cannot add field `DB_ROW_ID` in table `test`.`table1` because after adding it, the row size is 537 which is great= er than maximum allowed size (892 bytes) for a record on index leaf page. 2023-03-13 13:49:08 4 [ERROR] InnoDB: Trying to read 4096 bytes at 18792284= 16 outside the bounds of the file: ./ibdata1 2023-03-13 13:49:08 4 [ERROR] mariadbd: Index for table 'table2' is corrupt; try to repair it I reduced that to a single test-case and a function (see pragma GCC optimize "-O0"): g++ /tmp/trxundo.ii -o /var/tmp/build-root/standard-i586/home/abuild/rpmbuild/BUILD/mariadb-10.11.= 2/build/storage/innobase/CMakeFiles/innobase.dir/trx/trx0undo.cc.o -m32 -std=3Dgnu++11 -fomit-frame-pointer -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=3Dreturn-type -flto=3Dauto -ffat-lto-objects -fno-lto -U_FORTIFY_SOURCE -g -DOPENSSL_LOAD= _CONF -DPIC -fPIC -DFORCE_INIT_OF_VARS -Wno-unused-but-set-variable -fno-strict-aliasing -Wno-unused-parameter -Wno-error -felide-constructors = -pie -fPIC -fstack-protector --param=3Dssp-buffer-size=3D4 -fPIC -Wconversion -Wno-sign-conversion -fomit-frame-pointer -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=3Dreturn-type -flto=3Dauto -ffat-lto-objects -fno-lto -U_FORTIFY_SOURCE -g -DOPENSSL_LOAD= _CONF -DPIC -fPIC -DFORCE_INIT_OF_VARS -Wno-unused-but-set-variable -fno-strict-aliasing -Wno-unused-parameter -Wno-error -felide-constructors -fno-omit-frame-pointer -DDBUG_OFF -Wall -Wenum-compare -Wenum-conversion -Wextra -Wformat-security -Wmissing-braces -Wno-format-truncation -Wno-init-self -Wno-nonnull-compare -Wno-unused-parameter -Woverloaded-virt= ual -Wnon-virtual-dtor -Wvla -Wwrite-strings -DHAVE_OPENSSL -DOPENSSL_API_COMPAT=3D0x10100000L -fvisibility=3Dhidden -std=3Dgnu++11 -c=