https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119377

--- Comment #25 from Sam James <sjames at gcc dot gnu.org> ---
I'm afraid I still see various flapping failures, including on
declarative_1.cob.

Picking on declarative_1.cob, which always fails for me:
```
$ gcobol cobol.dg/group1/declarative_1.cob -O0
cobol1: internal compiler error: Segmentation fault
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
```

```
$ gcobol cobol.dg/group1/declarative_1.cob  -wrapper gdb,--args
Reading symbols from /usr/libexec/gcc/x86_64-pc-linux-gnu/16/cobol1...
Reading symbols from
/usr/lib/debug/usr/libexec/gcc/x86_64-pc-linux-gnu/16/cobol1.debug...
(gdb) r
Starting program: /usr/libexec/gcc/x86_64-pc-linux-gnu/16/cobol1
cobol.dg/group1/declarative_1.cob -quiet -dumpdir a- -dumpbase
declarative_1.cob -dumpbase-ext .cob -main=cobol.dg/group1/declarative_1.cob
-mtune=generic -march=x86-64 -foffload-options=-l_GCC_stdc++
-foffload-options=-fno-stack-protector -o /tmp/cclY7jmL.s
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
yyparse () at
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cobol/parse.y:7291
7291                        if( *$1 == '-' ) {
(gdb) bt
#0  yyparse () at
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cobol/parse.y:7291
#1  0x00005555580b7a8b in parse_file (filename=0x7fffffffda0b
"cobol.dg/group1/declarative_1.cob") at
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cobol/util.cc:2412
#2  cobol_parse_files (nfile=<optimized out>, files=<optimized out>) at
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cobol/util.cc:2466
#3  0x0000555557cd67b5 in compile_file () at
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/toplev.cc:453
#4  0x0000555557cb1352 in do_compile () at
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/toplev.cc:2226
#5  toplev::main (this=this@entry=0x7fffffffd406, argc=<optimized out>,
argv=<optimized out>) at
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/toplev.cc:2389
#6  0x0000555557cb00ed in main (argc=<optimized out>, argv=<optimized out>) at
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/main.cc:39
```

Reply via email to