bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #64701] [doc] clang-16 dumps core when creating "doc/groff-man-page


From: G. Branden Robinson
Subject: [bug #64701] [doc] clang-16 dumps core when creating "doc/groff-man-pages.pdf"
Date: Fri, 22 Sep 2023 04:18:23 -0400 (EDT)

Update of bug #64701 (project groff):

                  Status:                    None => Need Info              

    _______________________________________________________

Follow-up Comment #1:

Hi Bjarni,

Please provide:

1.  The configuration report from this build.  That would be this part.


GNU roff version 1.23.0.447-30733
----------------------------------------------------------------------
 installation directory prefix    : /usr/local
 C++ compiler and options         : g++ -Wall -Wextra -Wformat=2  -Walloc-zero
-Wstringop-overflow=4 -Wshadow=global -Wredundant-decls -Wunused
-Wunused-parameter -fsanitize=signed-integer-overflow
-fsanitize-undefined-trap-on-error -fstack-protector-strong -fno-common
-fstack-clash-protection -ftrapv -funsigned-char -fvar-tracking-assignments 
-flto=auto -O0 -Og -ggdb -fcheck-new -Wredundant-decls -std=c++98 -pedantic
-pedantic-errors -Wformat=2 -D_FORTIFY_SOURCE=2 
 use libgroff's memory allocator  : no
 C compiler and options           : gcc -Wall -Wextra -Wformat=2  -Walloc-zero
-Wstringop-overflow=4 -Wshadow=global -Wredundant-decls -Wunused
-Wunused-parameter -fsanitize=signed-integer-overflow
-fsanitize-undefined-trap-on-error -fstack-protector-strong -fno-common
-fstack-clash-protection -ftrapv -funsigned-char -fvar-tracking-assignments 
-flto=auto -O0 -Og -ggdb -Wmissing-prototypes -Wold-style-definition
-Wstrict-prototypes  -Wold-style-declaration  -Wformat=2 -D_FORTIFY_SOURCE=2 
 Perl interpreter version         : 5.32.1
 X11 support                      : enabled
 X11 app defaults directory       : /usr/local/lib/X11/app-defaults
 default paper format             : letter
 'groff -l' uses print spooler    : lpr
 use URW fonts for PDF output     : yes
 URW fonts directory              : /usr/share/fonts/type1/gsfonts/
 preconv can use uchardet library : yes
 can build groff.dvi, groff.pdf   : yes
----------------------------------------------------------------------


2.  Please attach the core file from the troff command that crashed.  It will
probably be in your build directory.

3.  Also, since the core file might be too large to attach to Savannah, please
collect a backtrace.

Here is a procedure.


$ gdb ./build/troff ./core
GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git
[...]
Reading symbols from ./build/troff...
[New LWP 9770]
Core was generated by `troff -Tps'.
Program terminated with signal SIGILL, Illegal instruction.
#0  0x00007fab162f03ce in __GI___libc_read (fd=0, buf=0x5566be08f920,
nbytes=1024)
    at ../sysdeps/unix/sysv/linux/read.c:26
26      ../sysdeps/unix/sysv/linux/read.c: No such file or directory.
##(gdb) bt
[...]
#2  0x00007fab16283742 in __GI__IO_default_uflow (fp=0x7fab163d3980
<_IO_2_1_stdin_>) at libioP.h:948
#3  0x00005566bc775372 in file_iterator::fill (this=0x5566be084d60) at
../src/roff/troff/input.cpp:450
#4  0x00005566bc7784a7 in input_stack::finish_get (np=np@entry=0x7ffeb11602f0)
at ../src/roff/troff/input.cpp:605
#5  0x00005566bc77a275 in input_stack::get (np=0x7ffeb11602f0) at
../src/roff/troff/input.cpp:594
#6  token::next (this=0x5566bc7e2e40 <tok>) at
../src/roff/troff/input.cpp:1865
#7  0x00005566bc786749 in process_input_file (name=<optimized out>) at
../src/roff/troff/input.cpp:8063
#8  0x00005566bc78ff7e in main (argc=2, argv=0x7ffeb1160538) at
../src/roff/troff/input.cpp:8400
##(gdb) quit


I simulated your issue by manually killing troff with SIGILL; I expect your
backtrace to look quite different.






    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64701>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]