GNU bug report logs -
#46227
Test failure on SPARC (stack-overflow)
Previous Next
Reported by: Sam James <sam <at> gentoo.org>
Date: Mon, 1 Feb 2021 08:46:01 UTC
Severity: normal
Fixed in version 3.7
Done: Sam James <sam <at> gentoo.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 46227 in the body.
You can then email your comments to 46227 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-grep <at> gnu.org
:
bug#46227
; Package
grep
.
(Mon, 01 Feb 2021 08:46:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Sam James <sam <at> gentoo.org>
:
New bug report received and forwarded. Copy sent to
bug-grep <at> gnu.org
.
(Mon, 01 Feb 2021 08:46:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
The stack-overflow fails for me on SPARC on Gentoo GNU/Linux with grep 3.5 and grep 3.6.
I’ve 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=0x10000aa9f30, input=0x10000aa9f30, syntax=1099522809648) at regcomp.c:1784
1784 {
(gdb) bt
#0 0x0000010000026908 in peek_token (token=0x10000aa9f30, input=0x10000aa9f30, syntax=1099522809648) at regcomp.c:1784
#1 0x0000010000aa9f38 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)
Thanks,
Sam
++ initial_cwd_=/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests gt-stack-overflow.XXXX
+++ case $# in
+++ destdir_=/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests
+++ template_=gt-stack-overflow.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ destdir_slash_=/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/
+++ case $template_ in
++++ unset TMPDIR
+++ d=/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/gt-stack-overflow.bWE3
+++ case $d in
+++ :
+++ test -d /var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/gt-stack-overflow.bWE3
++++ ls -dgo /var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/gt-stack-overflow.bWE3
+++ perms='drwx------ 2 4096 Jan 31 19:39 /var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/gt-stack-overflow.bWE3'
+++ case $perms in
+++ :
+++ echo /var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/gt-stack-overflow.bWE3
+++ return
++ test_dir_=/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/gt-stack-overflow.bWE3
++ cd /var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/gt-stack-overflow.bWE3
++ case $srcdir in
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_='
'
++ IFS='
'
++ 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 '!=' 0
+ path_dir_=../src
+ case $path_dir_ in
+ abs_path_dir_=/var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/../src
+ case $abs_path_dir_ in
+ PATH=/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/python3.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 '!=' 0
+ export PATH
+ case $host_triplet in
+ ASAN_OPTIONS=help=true
+ grep --version
+ grep -q AddressSanitizer
+ echo grep: stack overflow
+ ulimit -s 8192
+ fail=0
+ for i in 1 3 5 10 20 30 40 50 100 200 400 1000
+ printf %010000d 0
+ tr 0 '('
+ LC_ALL=C
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31: 5295 Segmentation fault (core dumped) grep -E -f in > out 2> err
+ st=139
+ 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=C
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31: 6967 Segmentation fault (core dumped) grep -E -f in > out 2> err
+ st=139
+ 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=C
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31: 7744 Segmentation fault (core dumped) grep -E -f in > out 2> err
+ st=139
+ 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=C
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31: 9058 Segmentation fault (core dumped) grep -E -f in > out 2> err
+ st=139
+ 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=C
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31: 9501 Segmentation fault (core dumped) grep -E -f in > out 2> err
+ st=139
+ 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=C
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31: 10004 Segmentation fault (core dumped) grep -E -f in > out 2> err
+ st=139
+ 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=C
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31: 10481 Segmentation fault (core dumped) grep -E -f in > out 2> err
+ st=139
+ 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=C
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31: 10862 Segmentation fault (core dumped) grep -E -f in > out 2> err
+ st=139
+ 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=C
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31: 11255 Segmentation fault (core dumped) grep -E -f in > out 2> err
+ st=139
+ 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=C
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31: 11576 Segmentation fault (core dumped) grep -E -f in > out 2> err
+ st=139
+ 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=C
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31: 11989 Segmentation fault (core dumped) grep -E -f in > out 2> err
+ st=139
+ 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=C
+ env -- tr 0 '('
+ grep -E -f in
./stack-overflow: line 31: 12600 Segmentation fault (core dumped) grep -E -f in > out 2> err
+ st=139
+ grep -q 'stack overflow' err
+ test 139 = 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 = 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=1
+ cleanup_
+ :
+ test '' = 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.bWE3
+ rm -rf /var/tmp/portage/sys-apps/grep-3.6/work/grep-3.6/tests/gt-stack-overflow.bWE3
+ exit 1
FAIL stack-overflow (exit status: 1)
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-grep <at> gnu.org
:
bug#46227
; Package
grep
.
(Mon, 01 Feb 2021 08:52:03 GMT)
Full text and
rfc822 format available.
Message #8 received at 46227 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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?
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-grep <at> gnu.org
:
bug#46227
; Package
grep
.
(Tue, 02 Feb 2021 00:03:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 46227 <at> debbugs.gnu.org (full text, mbox):
Thanks for reporting the bug. This is most likely a problem with the
Gnulib c-stack module. Perhaps you can move things forward by running it
separately and seeing whether it works. Something like this perhaps:
git clone https://git.savannah.gnu.org/git/gnulib.git
cd gnulib
./gnulib-tool --create-testdir --dir foo c-stack
cd foo
./configure
make
make check
If this reports a problem please send email to bug-gnulib <at> gnu.org.
Information forwarded
to
bug-grep <at> gnu.org
:
bug#46227
; Package
grep
.
(Wed, 03 Feb 2021 03:51:02 GMT)
Full text and
rfc822 format available.
Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
> On 2 Feb 2021, at 00:02, Paul Eggert <eggert <at> cs.ucla.edu> wrote:
>
Hi Paul,
> Thanks for reporting the bug. This is most likely a problem with the Gnulib c-stack module. Perhaps you can move things forward by running it separately and seeing whether it works. Something like this perhaps:
>
No problem, thanks for the software and maintenance!
> git clone https://git.savannah.gnu.org/git/gnulib.git
> cd gnulib
> ./gnulib-tool --create-testdir --dir foo c-stack
> cd foo
> ./configure
> make
> make check
>
> If this reports a problem please send email to bug-gnulib <at> gnu.org.
This fails on the c-stack test, so I’ve gone ahead and reported it there as requested:
https://lists.gnu.org/archive/html/bug-gnulib/2021-02/msg00002.html.
Thanks!
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-grep <at> gnu.org
:
bug#46227
; Package
grep
.
(Mon, 09 Aug 2021 22:52:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 46227 <at> debbugs.gnu.org (full text, mbox):
The stack-overflow bug you reported <https://bugs.gnu.org/46227> appears
to be fixed on SPARC Solaris 10. Could you please try again on SPARC
Gentoo? You can use the new grep snapshot, announced here:
https://lists.gnu.org/r/grep-devel/2021-08/msg00003.html
Thankss.
Information forwarded
to
bug-grep <at> gnu.org
:
bug#46227
; Package
grep
.
(Sat, 14 Aug 2021 10:51:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 46227 <at> debbugs.gnu.org (full text, mbox):
On Tue, Aug 10, 2021 at 6:53 AM Paul Eggert <eggert <at> cs.ucla.edu> wrote:
> The stack-overflow bug you reported <https://bugs.gnu.org/46227> appears
> to be fixed on SPARC Solaris 10. Could you please try again on SPARC
> Gentoo? You can use the new grep snapshot, announced here:
>
> https://lists.gnu.org/r/grep-devel/2021-08/msg00003.html
>
> Thankss.
Thanks for the report.
It sounds like this is resolved, so I will not delay the release for it.
Please let us know if it is really resolved.
bug closed, send any further explanations to
46227 <at> debbugs.gnu.org and Sam James <sam <at> gentoo.org>
Request was from
Paul Eggert <eggert <at> cs.ucla.edu>
to
control <at> debbugs.gnu.org
.
(Thu, 02 Sep 2021 07:57:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 30 Sep 2021 11:24:05 GMT)
Full text and
rfc822 format available.
bug unarchived.
Request was from
Sam James <sam <at> gentoo.org>
to
control <at> debbugs.gnu.org
.
(Thu, 14 Oct 2021 07:01:01 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 3.7, send any further explanations to
46227 <at> debbugs.gnu.org and Sam James <sam <at> gentoo.org>
Request was from
Sam James <sam <at> gentoo.org>
to
control <at> debbugs.gnu.org
.
(Thu, 14 Oct 2021 07:01:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-grep <at> gnu.org
:
bug#46227
; Package
grep
.
(Thu, 14 Oct 2021 07:03:01 GMT)
Full text and
rfc822 format available.
Message #31 received at 46227 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
I'm sorry for missing your earlier question -- yes, it's working great in 3.7,
and I really appreciate the help from you both.
Cheers,
sam
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-grep <at> gnu.org
:
bug#46227
; Package
grep
.
(Thu, 14 Oct 2021 22:28:02 GMT)
Full text and
rfc822 format available.
Message #34 received at 46227-done <at> debbugs.gnu.org (full text, mbox):
On Thu, Oct 14, 2021 at 12:03 AM Sam James <sam <at> gentoo.org> wrote:
> I'm sorry for missing your earlier question -- yes, it's working great in 3.7,
> and I really appreciate the help from you both.
Thanks for confirming it's resolved.
Closing this ticket.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 12 Nov 2021 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 1 day ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.