🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.bugs
Article #859

[Bug 301285] groff segfaults on some files

#859
From: bugzilla-noreply
Date: Mon, 30 Nov 2026 11:44
71 lines
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
Technical Details
Message-ID: <bug-301285-227-llmi0qY60w@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <bug-301285-227@https.bugs.freebsd.org/bugzilla/>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.bugs
Subject: [Bug 301285] groff segfaults on some files
Date: Mon, 30 Nov 2026 11:44:35 +0000
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-301285-227-llmi0qY60w@https.bugs.freebsd.org/bugzilla/>
References: <bug-301285-227@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="97267"; mail-complaints-to="news-admin@muc.de"
X-Original-To: bugs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1796039074;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=59sHeaT9119dix090qkFeCfToXcLSi4Z0i7DrQrOt70=;
	b=s/qsnELNkzaQmZoGVEMfh4TCmLOWWpcajQ2+GwXaE1ozG43uC9J3Gz+hC7EAusrRhQKHws
	U5+nE2direxR/LRKpBEEZvemAK5ecp+rE5eUipVxaghn877B1r2BBPMcggry6V0etugfoU
	aPN2jT3WfYgl/puJZdJcxeGp1ul0txJe/uBoGeC1Z5N9xWMw9MS993WfJ/099Mf9g5c2Bg
	R34YFGi0Gvv6ztzi3wgdne0kSRIXYaJ4xzEQDGtH7YAWoDeb/pUL8WL+WiEbnAG8uiP7ik
	Rm8BRc0vde3Ye41YDv8a6ZFVgbN/aJ+FjvYj0c7WpewcsXg1UNZ1zwyX0NpDEQ==
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
In-Reply-To: <bug-301285-227@https.bugs.freebsd.org/bugzilla/>
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes