🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.doc
Article #96

[Bug 301285] groff segfaults on some files

#96
From: bugzilla-noreply
Date: Mon, 30 Nov 2026 11:44
71 lines
4470 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 on the CC list 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-9-UFdMYkKYQ6@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!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-9@https.bugs.freebsd.org/bugzilla/>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!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.doc
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-9-UFdMYkKYQ6@https.bugs.freebsd.org/bugzilla/>
References: <bug-301285-9@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="97347"; mail-complaints-to="news-admin@muc.de"
X-Original-To: doc@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1796039075;
	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=h4I+lQwhz5X7IBX/ETyW2PwF784oMQxJpBmSTd3m2Bk=;
	b=RHzD714gQBoq9BiRo09Jx806pAZFZa1AkKT/FG50hdozWPIKiE0/ljThDz6b+CDDfxYqqy
	O0t61hnkKnMYY3k5bj2/QuHqlWBEzEr58lrhQTzGJmw9JbEvbs95W8426B0A1j31yMiYsB
	/+F0a27mSjN+DI9l5fJPQ7LfMBdLBpfRLoZ5IrhCeV+DhRgmDwmA9ykTDT1PDXAMDJTkeI
	YR+viiDq4bGRvME3uWkgY1sDDHSh7xVgQBGcXBaDhJZ3oR6rTCThSeIVxGyG5RbMKEvx4I
	9XTEAI4pbitkmSimRhKI0m0Z6qGBZBh8WW1Ta85r58jM1UrCk1KQZ/4mPMsQ4g==
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
In-Reply-To: <bug-301285-9@https.bugs.freebsd.org/bugzilla/>
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes