Thread View: muc.lists.freebsd.bugs
5 messages
5 total messages
Started by bugzilla-noreply
Mon, 30 Nov 2026 11:41
[Bug 301285] groff segfaults on some files
Author: bugzilla-noreply
Date: Mon, 30 Nov 2026 11:41
Date: Mon, 30 Nov 2026 11:41
43 lines
3214 bytes
3214 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301285
Bug ID: 301285
Summary: groff segfaults on some files
Product: Documentation
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Manual Pages
Assignee: bugs@FreeBSD.org
Reporter: wosch@FreeBSD.org
CC: doc@FreeBSD.org
By mistake I run groff onĀ Ā /usr/share/man/mandoc.db . It crashed with a
segfault forĀ version 1.24.2 and with a sigabortĀ forĀ 1.25.0
# GNU grops (groff) version 1.24.2
groff /usr/share/man/mandoc.db >/dev/null; echo $?
troff: error: unterminated transparent embedding escape sequence
troff: warning [page 185, 5.2i]: cannot adjust line; underset by 1.11222i
groff: error: troff: Segmentation fault (core dumped)
8
# GNU groff version 1.25.0
groff /usr/share/man/mandoc.db >/dev/null; echo $?
Assertion failed: (!was_line_interrupted), function add_char, file
src/roff/troff/env.cpp, line 363.
groff: error: troff: Abort trap (core dumped)
grops:<standard input>: warning: no final 'x stop' command
8
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301285] groff segfaults on some files
Author: bugzilla-noreply
Date: Mon, 30 Nov 2026 11:42
Date: Mon, 30 Nov 2026 11:42
23 lines
2716 bytes
2716 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301285
Wolfram Schneider <wosch@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |g.branden.robinson@gmail.co
| |m
Blocks| |297247
Referenced Bugs:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297247
[Bug 297247] groff 1.24.1 metabug
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301285] groff segfaults on some files
Author: bugzilla-noreply
Date: Mon, 30 Nov 2026 11:44
Date: Mon, 30 Nov 2026 11:44
71 lines
4460 bytes
4460 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301285
Wolfram Schneider <wosch@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|New |Open
--- Comment #1 from Wolfram Schneider <wosch@FreeBSD.org> ---
I can reproduce the segfaults on the latest code from the git repo:
git clone https://https.git.savannah.gnu.org/git/groff.git
cd groff
./bootstrap && \
./configure --enable-maintainer-mode --with-uchardet=no Ā --without-gs
--without-x --prefix=$HOME/opt/groff && Ā \
make -j$(nproc) && make install
PATH=$HOME/opt/groff/bin:$PATH
ulimit -t 5
for i in /bin/* /sbin/* /usr/sbin/* /usr/bin/*;do groff $i >/dev/null 2>
/tmp/e.$(basename $i);a=$?; if [ $a -ne 0 ]; then echo "$i $a";fi; done
/usr/sbin/cxgbetool 8
/usr/sbin/freebsd-update 8
/usr/bin/bsddialog 8
/usr/bin/ld 8
/usr/bin/ld.lld 8
~/opt/groff/bin/troff /usr/bin/bsddialog >/dev/null
Segmentation fault Ā Ā Ā Ā (core dumped) ~/opt/groff/bin/troff
/usr/bin/bsddialog > /dev/null
gdb -core troff.core ~/opt/groff/bin/troff
Core was generated by `/home/wosch/opt/groff/bin/troff /usr/bin/bsddialog'.
Program terminated with signal SIGSEGV, Segmentation fault.
Address not mapped to object.
#0 Ā read_crement_and_escape_sequence_parameter (incp=incp@entry=0x820593ae0) at
src/roff/troff/input.cpp:1187
1187 Ā Ā Ā if (r->get_increment() == 0)
(gdb) bt
#0 Ā read_crement_and_escape_sequence_parameter (incp=incp@entry=0x820593ae0) at
src/roff/troff/input.cpp:1187
#1 Ā 0x000000000025199d in token::next (this=0x2b11b8 <tok>) at
src/roff/troff/input.cpp:2747
#2 Ā 0x000000000025a4fa in process_input_stack () at
src/roff/troff/input.cpp:3779
#3 Ā 0x000000000026430b in process_input_file (name=<optimized out>) at
src/roff/troff/input.cpp:10171
#4 Ā 0x00000000002612e9 in main (argc=2, argv=0x820593f98) at
src/roff/troff/input.cpp:10547
PS: I could reproduce this on debian13 as well: groff /bin/thumbpdf >/dev/null
troff /bin/thumbpdf >/dev/null
troff:/bin/thumbpdf:660: error: division by zero
Segmentation fault
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301285] groff segfaults on some files
Author: bugzilla-noreply
Date: Tue, 01 Dec 2026 08:24
Date: Tue, 01 Dec 2026 08:24
36 lines
3451 bytes
3451 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301285 --- Comment #2 from G. Branden Robinson <g.branden.robinson@gmail.com> --- Thanks for looping me in on this report. For now, I'm tracking 1 issue as https://savannah.gnu.org/bugs/index.php?68982. Since the problems were exposed by fuzzing GNU troff with the entire contents of system /bin directories, none constitute minimal reproducers, and ELF objects are only sometimes byte-identical between any two given systems. I may open additional upstream tickets prompted by this one. It's also worth noting that I fixed many SEGVs known to affect _groff_ 1.24.x in 1.25.0. Here's a mouthful of a URL filtering issues fixed in 1.25.0 for SEGVs, assertion failures, memory mismanagement, and regressions. https://savannah.gnu.org/bugs/index.php?go_report=Apply&group=groff&func=browse&set=custom&msort=0&report_id=225&advsrch=0&bug_id=&submitted_by=0&status_id=3&severity=7&category_id=0&assigned_to=0&summary=&bug_group_id=0&resolution_id=1&plan_release_id=109&history_search=0&history_field=0&history_event=modified&history_date_dayfd=1&history_date_monthfd=12&history_date_yearfd=2026&max_rows=50&spamscore=5&boxoptionwanted=1 -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301285] groff segfaults on some files
Author: bugzilla-noreply
Date: Tue, 01 Dec 2026 10:37
Date: Tue, 01 Dec 2026 10:37
28 lines
2984 bytes
2984 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301285
Wolfram Schneider <wosch@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Open |In Progress
--- Comment #3 from Wolfram Schneider <wosch@FreeBSD.org> ---
Here is an example file (a gzip'd manpage salt.7) which always segfaults on
groff version 1.24.2, 1.25.0, 1.25.0.241-76534 on any OS (FreeBSD, macOS,
Debian):
curl -sSf https://people.freebsd.org/~wosch/tmp/groff/salt.7.gz | troff
>/dev/null
troff:<standard input>:6799: error: cannot format glyph: no current font
curl: (23) Failure writing output to destination, passed 16384 returned 4617
Segmentation fault (core dumped)
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads