[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Groff] tbl bug with nospaces option
From: |
Louis Guillaume |
Subject: |
[Groff] tbl bug with nospaces option |
Date: |
Wed, 10 Nov 2010 12:25:05 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 |
Hi,
I just noticed that tbl was crashing under certain conditions with the
"nospaces" option. Here's what I discovered:
Take a simple table like this:
.TS H
expand nospaces tab(@);
l c r.
\fBone @ two @ three\fP
.TH
1 @ 2 @ 3
.TE
Everything works here. But, if, say we didn't have a value in the second
column, but still had spaces, we get a segmentation fault in tbl:
.TS H
expand nospaces tab(@);
l c r.
\fBone @ two @ three\fP
.TH
1 @ @ 3
.TE
$ tbl se_test.ms
.if !\n(.g .ab GNU tbl requires GNU troff.
.if !dTS .ds TS
.if !dTE .ds TE
.lf 1 se_test.ms
.TS H
Segmentation fault
Removing the spaces, leaving "1 @@ 3", solves the problem. But seems
like a bug in tbl to me...
I've reproduced this on OS X and NetBSD.
Louis
- [Groff] tbl bug with nospaces option,
Louis Guillaume <=