GNU bug report logs - #46227
Test failure on SPARC (stack-overflow)

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: grep; Reported by: Sam James <sam@HIDDEN>; dated Mon, 1 Feb 2021 08:46:01 UTC; Maintainer for grep is bug-grep@HIDDEN.

Message received at 46227 <at> debbugs.gnu.org:


Received: (at 46227) by debbugs.gnu.org; 1 Feb 2021 08:51:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 01 03:51:30 2021
Received: from localhost ([127.0.0.1]:58718 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1l6Uvi-0000Rw-DE
	for submit <at> debbugs.gnu.org; Mon, 01 Feb 2021 03:51:30 -0500
Received: from smtp.gentoo.org ([140.211.166.183]:48522)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sam@HIDDEN>) id 1l6Uvg-0000RX-LZ
 for 46227 <at> debbugs.gnu.org; Mon, 01 Feb 2021 03:51:29 -0500
From: Sam James <sam@HIDDEN>
Content-Type: multipart/signed;
 boundary="Apple-Mail=_38452E1A-950F-493E-9B85-3C90F62A1586";
 protocol="application/pgp-signature"; micalg=pgp-sha512
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\))
Subject: gnulib failure
Message-Id: <48A3DC63-BEFB-4175-9C46-3821BC5A3D4F@HIDDEN>
Date: Mon, 1 Feb 2021 08:51:11 +0000
To: 46227 <at> debbugs.gnu.org
X-Mailer: Apple Mail (2.3654.40.0.2.32)
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 46227
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)


--Apple-Mail=_38452E1A-950F-493E-9B85-3C90F62A1586
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii

Note that regcomp.c is part of gnulib.

gnulib's corresponding test fails too:

# ./test-c-stack
test-c-stack: program error
Segmentation fault (core dumped)

Should I report the bug to them instead?

--Apple-Mail=_38452E1A-950F-493E-9B85-3C90F62A1586
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----

iQGTBAEBCgB9FiEEDAKkjYa742Jdh78b7wpjZrR0UPoFAmAXwP9fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDBD
MDJBNDhEODZCQkUzNjI1RDg3QkYxQkVGMEE2MzY2QjQ3NDUwRkEACgkQ7wpjZrR0
UPoBMwf/UnQoxxryEnfuqWQwwziNdhOg8lN9rU/kJ4CKcGJxw2zU6XYG0xph65e1
nSkxO+6H7h8Inkq7CWW3V4Agrur6sfXjwo1Y/9gVmutZi5PQ34g1Gtnx4rTgKLqO
cusJG230uvUOsbluTp0G0Fg6ajN1FBp2ayh5O27a95fm6xtLLEgNNHE+QW+96nL6
2kZ7r+3d3x0nOCZit9lt6LCq6iDmYvVEeUbt44IxSDdrQ8Sfb0yyeRytCYXybGXe
iX7XUAZksUFm7uvLl3wqKxahLIvLBhaQjDdK9kW5IhreMRSFDLacVP3YgtPXvhLV
kUAatcY6ihgN74DYk+ubYjEM6bUsQA==
=Derk
-----END PGP SIGNATURE-----

--Apple-Mail=_38452E1A-950F-493E-9B85-3C90F62A1586--




Information forwarded to bug-grep@HIDDEN:
bug#46227; Package grep. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Feb 2021 08:45:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 01 03:45:25 2021
Received: from localhost ([127.0.0.1]:58694 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1l6Upo-0000G7-6j
	for submit <at> debbugs.gnu.org; Mon, 01 Feb 2021 03:45:25 -0500
Received: from lists.gnu.org ([209.51.188.17]:39332)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sam@HIDDEN>) id 1l6QPr-0001NC-7o
 for submit <at> debbugs.gnu.org; Sun, 31 Jan 2021 23:02:21 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:60916)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <sam@HIDDEN>) id 1l6QPr-0001uY-0a
 for bug-grep@HIDDEN; Sun, 31 Jan 2021 23:02:19 -0500
Received: from mail.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4]:38841
 helo=smtp.gentoo.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <sam@HIDDEN>) id 1l6QPn-0001iD-PW
 for bug-grep@HIDDEN; Sun, 31 Jan 2021 23:02:18 -0500
From: Sam James <sam@HIDDEN>
Content-Type: multipart/signed;
 boundary="Apple-Mail=_A239E6A7-A44D-4C2A-AD58-939CCE4F16C4";
 protocol="application/pgp-signature"; micalg=pgp-sha512
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\))
Subject: Test failure on SPARC (stack-overflow)
Message-Id: <5A206FBC-77EA-4625-B45A-B7536A35D00D@HIDDEN>
Date: Mon, 1 Feb 2021 04:02:09 +0000
To: bug-grep@HIDDEN
X-Mailer: Apple Mail (2.3654.40.0.2.32)
Received-SPF: pass client-ip=2001:470:ea4a:1:5054:ff:fec7:86e4;
 envelope-from=sam@HIDDEN; helo=smtp.gentoo.org
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.7 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 01 Feb 2021 03:45:23 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.7 (--)


--Apple-Mail=_A239E6A7-A44D-4C2A-AD58-939CCE4F16C4
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi,

The stack-overflow fails for me on SPARC on Gentoo GNU/Linux with grep =
3.5 and grep 3.6.

I=E2=80=99ve included stack-overflow.log from grep 3.6, let me know what =
other information is required.

It looks it fails with the second test case. The following backtrace is =
with -Os -ggdb3.
(gdb) r
Starting program: =
/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/src/grep -E -f in
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x0000010000026908 in peek_token (token=3D0x10000aa9f30, =
input=3D0x10000aa9f30, syntax=3D1099522809648) at regcomp.c:1784
1784    {
(gdb) bt
#0  0x0000010000026908 in peek_token (token=3D0x10000aa9f30, =
input=3D0x10000aa9f30, syntax=3D1099522809648) at regcomp.c:1784
#1  0x0000010000aa9f38 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)

Thanks,
Sam

++ initial_cwd_=3D/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=3Dgt
+++ mktempd_ /var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests =
gt-stack-overflow.XXXX
+++ case $# in
+++ destdir_=3D/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests
+++ template_=3Dgt-stack-overflow.XXXX
+++ MAX_TRIES_=3D4
+++ case $destdir_ in
+++ =
destdir_slash_=3D/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/
+++ case $template_ in
++++ unset TMPDIR
+++ =
d=3D/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/gt-stack-overfl=
ow.bWE3
+++ case $d in
+++ :
+++ test -d =
/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/gt-stack-overflow.b=
WE3
++++ ls -dgo =
/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/gt-stack-overflow.b=
WE3
+++ perms=3D'drwx------ 2 4096 Jan 31 19:39 =
/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/gt-stack-overflow.b=
WE3'
+++ case $perms in
+++ :
+++ echo =
/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/gt-stack-overflow.b=
WE3
+++ return
++ =
test_dir_=3D/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/gt-stac=
k-overflow.bWE3
++ cd =
/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/gt-stack-overflow.b=
WE3
++ case $srcdir in
++ srcdir=3D../.
++ builddir=3D..
++ export srcdir builddir
++ gl_init_sh_nl_=3D'
'
++ IFS=3D'
'
++ for sig_ in 1 2 3 13 15
+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
++ for sig_ in 1 2 3 13 15
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
++ for sig_ in 1 2 3 13 15
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
++ for sig_ in 1 2 3 13 15
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
++ for sig_ in 1 2 3 13 15
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ trap remove_tmp_ 0
+ path_prepend_ ../src
+ test 1 '!=3D' 0
+ path_dir_=3D../src
+ case $path_dir_ in
+ =
abs_path_dir_=3D/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/../=
src
+ case $abs_path_dir_ in
+ =
PATH=3D/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/../src:/var/=
tmp/portage/sys-apps/grep-3.6/work/grep-3.6/src:./src:/usr/lib/portage/pyt=
hon3.7/ebuild-helpers/xattr:/usr/lib/portage/python3.7/ebuild-helpers:/usr=
/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin
+ create_exe_shims_ =
/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/../src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=3D' 0
+ export PATH
+ case $host_triplet in
+ ASAN_OPTIONS=3Dhelp=3Dtrue
+ grep --version
+ grep -q AddressSanitizer
+ echo grep: stack overflow
+ ulimit -s 8192
+ fail=3D0
+ for i in 1 3 5 10 20 30 40 50 100 200 400 1000
+ printf %010000d 0
+ tr 0 '('
+ LC_ALL=3DC
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31:  5295 Segmentation fault      (core dumped) =
grep -E -f in > out 2> err
+ st=3D139
+ grep -q 'stack overflow' err
+ for i in 1 3 5 10 20 30 40 50 100 200 400 1000
+ printf %030000d 0
+ tr 0 '('
+ LC_ALL=3DC
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31:  6967 Segmentation fault      (core dumped) =
grep -E -f in > out 2> err
+ st=3D139
+ grep -q 'stack overflow' err
+ for i in 1 3 5 10 20 30 40 50 100 200 400 1000
+ printf %050000d 0
+ tr 0 '('
+ LC_ALL=3DC
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31:  7744 Segmentation fault      (core dumped) =
grep -E -f in > out 2> err
+ st=3D139
+ grep -q 'stack overflow' err
+ for i in 1 3 5 10 20 30 40 50 100 200 400 1000
+ printf %0100000d 0
+ tr 0 '('
+ LC_ALL=3DC
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31:  9058 Segmentation fault      (core dumped) =
grep -E -f in > out 2> err
+ st=3D139
+ grep -q 'stack overflow' err
+ for i in 1 3 5 10 20 30 40 50 100 200 400 1000
+ printf %0200000d 0
+ tr 0 '('
+ LC_ALL=3DC
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31:  9501 Segmentation fault      (core dumped) =
grep -E -f in > out 2> err
+ st=3D139
+ grep -q 'stack overflow' err
+ for i in 1 3 5 10 20 30 40 50 100 200 400 1000
+ printf %0300000d 0
+ tr 0 '('
+ LC_ALL=3DC
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31: 10004 Segmentation fault      (core dumped) =
grep -E -f in > out 2> err
+ st=3D139
+ grep -q 'stack overflow' err
+ for i in 1 3 5 10 20 30 40 50 100 200 400 1000
+ printf %0400000d 0
+ tr 0 '('
+ LC_ALL=3DC
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31: 10481 Segmentation fault      (core dumped) =
grep -E -f in > out 2> err
+ st=3D139
+ grep -q 'stack overflow' err
+ for i in 1 3 5 10 20 30 40 50 100 200 400 1000
+ printf %0500000d 0
+ tr 0 '('
+ LC_ALL=3DC
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31: 10862 Segmentation fault      (core dumped) =
grep -E -f in > out 2> err
+ st=3D139
+ grep -q 'stack overflow' err
+ for i in 1 3 5 10 20 30 40 50 100 200 400 1000
+ printf %01000000d 0
+ tr 0 '('
+ LC_ALL=3DC
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31: 11255 Segmentation fault      (core dumped) =
grep -E -f in > out 2> err
+ st=3D139
+ grep -q 'stack overflow' err
+ for i in 1 3 5 10 20 30 40 50 100 200 400 1000
+ printf %02000000d 0
+ tr 0 '('
+ LC_ALL=3DC
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31: 11576 Segmentation fault      (core dumped) =
grep -E -f in > out 2> err
+ st=3D139
+ grep -q 'stack overflow' err
+ for i in 1 3 5 10 20 30 40 50 100 200 400 1000
+ printf %04000000d 0
+ tr 0 '('
+ LC_ALL=3DC
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31: 11989 Segmentation fault      (core dumped) =
grep -E -f in > out 2> err
+ st=3D139
+ grep -q 'stack overflow' err
+ for i in 1 3 5 10 20 30 40 50 100 200 400 1000
+ printf %010000000d 0
+ tr 0 '('
+ LC_ALL=3DC
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31: 12600 Segmentation fault      (core dumped) =
grep -E -f in > out 2> err
+ st=3D139
+ grep -q 'stack overflow' err
+ test 139 =3D 1
+ fail_ 'grep never printed "stack overflow"'
+ warn_ 'stack-overflow: failed test: grep never printed "stack =
overflow"'
+ case $IFS in
+ printf '%s\n' 'stack-overflow: failed test: grep never printed "stack =
overflow"'
stack-overflow: failed test: grep never printed "stack overflow"
+ test 9 =3D 2
+ printf '%s\n' 'stack-overflow: failed test: grep never printed "stack =
overflow"'
+ sed 1q
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=3D1
+ cleanup_
+ :
+ test '' =3D yes
+ cd /var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests
+ chmod -R u+rwx =
/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/gt-stack-overflow.b=
WE3
+ rm -rf =
/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/gt-stack-overflow.b=
WE3
+ exit 1
FAIL stack-overflow (exit status: 1)

--Apple-Mail=_A239E6A7-A44D-4C2A-AD58-939CCE4F16C4
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----

iQGTBAEBCgB9FiEEDAKkjYa742Jdh78b7wpjZrR0UPoFAmAXfUFfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDBD
MDJBNDhEODZCQkUzNjI1RDg3QkYxQkVGMEE2MzY2QjQ3NDUwRkEACgkQ7wpjZrR0
UPrspgf7BwMNKuwsiSbyYHOx02vHUOdmoPCScLeTeU3gGVoveNuI3F/coiEh364X
EsdEYAad8Rbv5vhU8vcfUeZ2hcErLZw52iMp60M23Oi67xsLeBYUBbrVK4jVkcdx
Q4QptumeZrNt/PhQDccpkvFdX5SyjU2BfzeKJF7ddo9rkpsrmplPhKys90tR/BsP
4OfYqQkkwK0razrLFk4N9/MTohvLiGNhV8N1Yh85vSi3Zc7vlKak31i7/tuyrae+
dgm096t/nPPgHQrwOIxQV/fMAOpnDaBJf+4YVjsxpqCtVTbtX/3LgQnZOxnCCTC9
/HF0NsyqdOTQQ3BNiFS8OcUsGSa0Tg==
=ylZY
-----END PGP SIGNATURE-----

--Apple-Mail=_A239E6A7-A44D-4C2A-AD58-939CCE4F16C4--




Acknowledgement sent to Sam James <sam@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-grep@HIDDEN. Full text available.
Report forwarded to bug-grep@HIDDEN:
bug#46227; Package grep. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 1 Feb 2021 09:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.