discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: "Anthony J. Bentley" <anthony@cathet.us>
To: discuss@mdocml.bsd.lv
Subject: Crash when run against groff tbl(1) output
Date: Tue, 14 Oct 2014 00:07:19 -0600	[thread overview]
Message-ID: <15458.1413266839@cathet.us> (raw)

I ran "tbl /usr/share/man/man6/phantasia.6 | mandoc". I don't know what I
expected, but I didn't expect this:

Program received signal SIGSEGV, Segmentation fault.
0x00001c3b46c3d9f6 in term_tbl (tp=0x1c3e10d58a00, sp=0x1c3de3073f40)
    at tbl_term.c:104
104             if ((TBL_OPT_BOX | TBL_OPT_DBOX) & sp->opts->opts ||

Here is a reduced (possibly nonsensical) form of that input that triggers
what I hope is the same crash; backtrace follows.

.TS
.if !'\n(.z'' \!.foo
.de bar
..
\!.baz
.baz x

Program received signal SIGSEGV, Segmentation fault.
0x0000017c40b3d9f6 in term_tbl (tp=0x17f04bbce00, sp=0x17f393ff3c0)
    at tbl_term.c:104
104             if ((TBL_OPT_BOX | TBL_OPT_DBOX) & sp->opts->opts ||
(gdb) bt
#0  0x0000017c40b3d9f6 in term_tbl (tp=0x17f04bbce00, sp=0x17f393ff3c0)
    at tbl_term.c:104
#1  0x0000017c40b2fcb9 in print_man_nodelist (p=0x17f04bbce00, 
    mt=0x7f7fffff5720, n=0x17e8a771c00, meta=0x17e8a771d28) at man_term.c:1052
#2  0x0000017c40b2fe9a in terminal_man (arg=0x17f04bbce00, man=Variable "man" is not available.
)
    at man_term.c:183
#3  0x0000017c40b284e6 in parse (curp=0x7f7fffff5a40, fd=Variable "fd" is not available.
) at main.c:544
#4  0x0000017c40b2912c in main (argc=1, argv=0x7f7fffff6438) at main.c:377

--
 To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv

             reply	other threads:[~2014-10-14  6:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-14  6:07 Anthony J. Bentley [this message]
2014-10-14 18:24 ` Ingo Schwarze

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15458.1413266839@cathet.us \
    --to=anthony@cathet.us \
    --cc=discuss@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).