From unknown Tue Jun 17 01:44:08 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#59119 <59119@debbugs.gnu.org> To: bug#59119 <59119@debbugs.gnu.org> Subject: Status: test-free segfaults with PGO Reply-To: bug#59119 <59119@debbugs.gnu.org> Date: Tue, 17 Jun 2025 08:44:08 +0000 retitle 59119 test-free segfaults with PGO reassign 59119 sed submitter 59119 Andreas Stieger severity 59119 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 08 03:21:08 2022 Received: (at submit) by debbugs.gnu.org; 8 Nov 2022 08:21:08 +0000 Received: from localhost ([127.0.0.1]:36192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osJr2-0000TP-1m for submit@debbugs.gnu.org; Tue, 08 Nov 2022 03:21:08 -0500 Received: from lists.gnu.org ([209.51.188.17]:47272) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1os92n-0007fd-FP for submit@debbugs.gnu.org; Mon, 07 Nov 2022 15:48:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1os92n-0002Bm-AP for bug-sed@gnu.org; Mon, 07 Nov 2022 15:48:33 -0500 Received: from mout.gmx.net ([212.227.17.20]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1os92l-0006vA-3X for bug-sed@gnu.org; Mon, 07 Nov 2022 15:48:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1667854105; bh=rA5IrSy7qvJRINdtkuSxMHPscXpMho2pPUYZ9Onw3Ns=; h=X-UI-Sender-Class:Date:From:Cc:To:Subject; b=dV15bUewhfBcvCB4Che9TOLLsWPUV+5+lWSQEhORnx+52t3bvtLnp+EPfL4yXZEfw aA+/JMWs8W9ChNZzehtLuWuQDs1RIt8FhL9MBwA8WlppVqj/ibKh7Pz0AzpLB77ND/ qdzIlt/onsANdRUR1mMvonHWl5FKXqXug34KjEipSYhC3En167I4lIHc6G5jTrmTFS jnKjLm6OMF4EPLfgarzoJcRFFEZZyqldytfdTURgp4JdIizwRJDHDvhawrtRVJd5ZU vp3Vi79hY1I7pV2q9mBpFn3ntuMY8Pbz92BhVefYad5p5eny9xdzwsJt8MvILrSln+ zWGNezzRBczLg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.179.81] ([46.142.5.73]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MqJmF-1pNKri0TcB-00nQG3; Mon, 07 Nov 2022 21:48:25 +0100 Message-ID: <1b97ba71-f119-6967-7154-3ff442d07aee@gmx.de> Date: Mon, 7 Nov 2022 21:48:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Content-Language: en-US From: Andreas Stieger To: bug-sed@gnu.org Subject: test-free segfaults with PGO Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:lLGMtDNC56ldPyx/dsAoyF2pWJF3MqK+OKjy+gAn191DyZIL3qJ h1XUbVIp4cQN+Kd8dUXzR33+sGwHipItwsFNX9atPIs39shF5v8Qes00rMKGHx+NaBfRyaU EVsaFyDG+Hhvrflw1XSmtmebST3Xf77au6sj1wB52jZbo+6X8l232x3/FdHbfe+1nW2gAlI 0epTt3BX8Mu+AjP9mjNZA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:WJ4tXtiUyJk=;FkZR+fjkhwTkb+3XCNOgQWemgSD tw8RXgOabEZpPOkWLbIpAzwwl5k0hAzLB0F8j81gnaGKJvjF7DnPwuuquZO8yyzWS6bfM7N4t 5lvr9U6bXilkHM5sPs+S73LO035hMFw7/umpjNwXmyhQMsKnGDwzh05cN1kGC45lfOh6VsucG wyMFhnk7rEDa/X59hiyK6HJBPxdytJ2CKC6WgwW6dDQ8Zkm9IgmhgfM8WJl2y1BZ7PS/ZBXDZ GttUyt61hRLpFuwJxELhBfKhu5pa3dffAJECEHr+xhsf3TIfWGmXTzlxsWnjdp+7eND28q4a6 E0LSt13qwFAp6iCnBMZzlhgpmXSi+JZuaJ2GAAvSIukk3KWsDOs7Coksgyw9thpEFrZKisZo2 ++1l/Vd7SW/W8s9GpgYp/nwNiwLKwcmyvBX1U8yYgRQe1ZhVUGFBLr3i/v2psmE9s3FW0gx26 FHv7YSlm+An8mepQN4XEMwK6KU/UpP8bKiexOd22KlkhOoSLnW++dhkOyH6pYZuebAaVZkGMq xmo8AnZNPziyB9UoxYBpXhAtdqB3fYUvWlAF7FLzuwIrBtNzbVrrfnbIstwau/9zwodY3ISMj 17Zr/VIOEVRxxGDcLY3ZKq++cwb8/U/jOsQXpBAgrpDfkqyU8UuzhU7FL4Woe+SPM2AOAY/l9 /hfTWp1sq+v/BAGjuKtCOQ9B2rKgynLwUYRZaN0YFwGg1K0nHIjbf71VZsWrem0BY8ikM8yUD iQMEPPG51fDifopnyvpellLYmyRQFRt8NV+i/GgyLBaFJgdL1mRPG8Rz7Mn8z6Fw2b4Te5XLH 2EIp49C7HAO80btj69lW/bcVWJWRqRzDmEbhdlUgW4nwxubDob3rxN70dLi9O/+cro8P+Wzbd H+unr/JDmVr9u/+QHw9hAf1MEqjQWyKqoeFWENouAH1KNwSQQX3tWmbt7n6MtLjHnWSny6uUg 2Pi7ag== Received-SPF: pass client-ip=212.227.17.20; envelope-from=Andreas.Stieger@gmx.de; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 08 Nov 2022 03:21:06 -0500 Cc: dmueller@suse.com, sbrabec@suse.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Hello, well this is interesting. gnulib-tests/test-free.c is new in sed 4.9 and it seems to break with PGO only. Specifically -fprofile-update=3Datomic -fprofile-generate. gcc12-12.2.1, glibc-2.36 [=C2=A0=C2=A0 32s] + ./configure --host=3Dx86_64-suse-linux-gnu =2D-build=3Dx86_64-suse-linux-gnu --program-prefix=3D =2D-disable-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr =2D-bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc =2D-datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib64 =2D-libexecdir=3D/usr/libexec --localstatedir=3D/var --sharedstatedir=3D/v= ar/lib =2D-mandir=3D/usr/share/man --infodir=3D/usr/share/info --without-included= -regex [=C2=A0 244s] + /usr/bin/make -O -j2 V=3D1 VERBOSE=3D1 'CFLAGS=3D-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 -g -Wall -Wstrict-prototypes -Wpointer-arith -Wformat-security -fPIE -fprofile-update=3Datomic -fprofile-generate' [=C2=A0 309s] + /usr/bin/make -O -j2 V=3D1 VERBOSE=3D1 'CFLAGS=3D-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 -g -Wall -Wstrict-prototypes -Wpointer-arith -Wformat-security -fPIE -fprofile-update=3Datomic -fprofile-generate' check [=C2=A0 611s] ../build-aux/test-driver: line 112:=C2=A0 8668 Segmentation fault=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (core dumped) "$@" >> "$log_file" 2>&1 [=C2=A0 611s] FAIL: test-free [=C2=A0 726s] FAIL: test-free [=C2=A0 726s] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [=C2=A0 726s] [=C2=A0 726s] FAIL test-free (exit status: 139) ./test-free Segmentation fault (core dumped) openat(AT_FDCWD, "/proc/sys/vm/max_map_count", O_RDONLY) =3D 3 mmap(NULL, 16777216, PROT_READ, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =3D 0x7ff05a262000 openat(AT_FDCWD, "test-free", O_RDONLY) =3D 4 mmap(NULL, 16777216, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =3D 0x7ff059262000 mmap(0x7ff059261000, 16785408, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0x7ff059261000 mmap(NULL, 4096, PROT_READ, MAP_PRIVATE, 4, 0) =3D 0x7ff05b482000 [...] mmap(NULL, 4096, PROT_READ, MAP_PRIVATE, 4, 0) =3D 0x7ff049281000 mmap(NULL, 4096, PROT_READ, MAP_PRIVATE, 4, 0) =3D -1 ENOMEM (Cannot allocate memory) munmap(0x7ff059262000, 16777216)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =3D -1 ENOMEM (Cannot allocate memory) getpid()=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D 12260 openat(AT_FDCWD, "/home/abuild/rpmbuild/BUILD/sed-4.9/gnulib-tests/test-free.gcda", O_RDWR|O_CREAT, 0666) =3D 5 fcntl(5, F_SETLKW, {l_type=3DF_WRLCK, l_whence=3DSEEK_SET, l_start=3D0, l_len=3D0}) =3D 0 fcntl(5, F_GETFL)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 =3D 0x8002 (flags O_RDWR|O_LARGEFILE) newfstatat(5, "", {st_mode=3DS_IFREG|0644, st_size=3D0, ...}, AT_EMPTY_PAT= H) =3D 0 read(5, "", 4096)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 =3D 0 lseek(5, 0, SEEK_SET)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D 0 mmap(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =3D -1 ENOMEM (Cannot allocate memory) =2D-- SIGSEGV {si_signo=3DSIGSEGV, si_code=3DSEGV_MAPERR, si_addr=3D0xffffffffffffffff} --- +++ killed by SIGSEGV (core dumped) +++