On Wed, 7 Jan 2009 18:29:54 -0800
"Philip Guenther" <[email protected]> wrote:
> > I contacted the author (G. Ritter) who suggested to compile the program
> > with the debug flag (-g), and to subsequently run it in gdb.
> > I did that, but not being a developer, the output did not tell me
> > anything useful.
> ...
> > This GDB was configured as "i386-unknown-openbsd4.4"...(no debugging
> > symbols found)
>
> You may have built it with -g to include debugging symbols, but the
> binary was apparently stripped along the way. If the -s option is
> passed when doing the final linking, then remove it. If the 'strip'
> command is being run, comment it out or disable it. Then try running
> it under gdb again.
I disabled the strip command. Now, I get the output below from gdb.
I think, I'll best report it to the author of the software, as it does
not make an awful lot of sense to me.
Thanks for your support.
$ gdb troff
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-unknown-openbsd4.4"...
(gdb) run
Starting program: /opt/ucb/troff
Program received signal SIGSEGV, Segmentation fault.
0x1c006b06 in addlig (f=1, from=0xcfbf6620, to=0) at t6.c:1340
1340 if (codetab[f][fitab[f][LIG_FF-32]] < 32)
(gdb) bt full
#0 0x1c006b06 in addlig (f=1, from=0xcfbf6620, to=0) at t6.c:1340
i = 1
j = 2
lp = (struct lgtab *) 0x0
#1 0x1c006dbd in setlig (f=1, j=6) at t6.c:1413
from = {102, 105, 0, 0}
to = -8377880580443839399
#2 0x1c008774 in loadafm (nf=1, rq=82, file=0x7cd053ed "R", supply=0x0,
required=1, spec=SPEC_PUNCT) at t6.c:2084
st = {st_dev = 16, st_ino = 8548, st_mode = 33188, st_nlink = 1, st_uid
= 1000, st_gid = 0, st_rdev = 36424, st_lspare0 = -685213332, st_atimespec =
{tv_sec = 1231455322,
tv_nsec = 586991087}, st_mtimespec = {tv_sec = 1231455322, tv_nsec =
586991087}, st_ctimespec = {tv_sec = 1231455322, tv_nsec = 606989709}, st_size
= 31354, st_blocks = 64,
st_blksize = 16384, st_flags = 0, st_gen = 0, st_lspare1 = -685641728,
__st_birthtimespec = {tv_sec = -685641696, tv_nsec = 5}, st_qspare =
{233159961, 42353225560}}
fd = 1
path = 0x8849f400 "/opt/ucblib/doctools/font/devps/R.afm"
contents = 0x861f5ba4 ""
a = (struct afmtab *) 0x84aa9a00
i = 1
have = 0
np = (struct namecache *) 0x6459
#3 0x1c001b2b in ptinit () at t10.c:237
i = 1
nw = 0
filebase = 0x7cd0540d ""
p = 0x7cd0540d ""
descp = 0x0
#4 0x1c00aed4 in init2 () at ../n1.c:447
i = 25689
j = 0
#5 0x1c00aa27 in main (argc=0, argv=0xcfbf6830) at ../n1.c:309
p = 0xcfbf6988 "/opt/ucb/troff"
j = 25689
oargv = (char **) 0xcfbf6830