Hello,

I am trying to get the excellent Heirloom troff[1] running on OpenBSD.
It compiles and installs fine. However, running the compiled troff
results in random segmentation faults; sometimes it works, most of the
time it does not.

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.

Anyway, here is the output I got:
------------------ cut here --------------------
$ gdb /opt/ucb/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"...(no debugging symbols 
found)

(gdb) run
Starting program: /opt/ucb/troff 

Program received signal SIGSEGV, Segmentation fault.
0x1c006af0 in ?? ()
(gdb) bt full
#0  0x1c006af0 in ?? ()
No symbol table info available.
#1  0x2309c324 in _toupper_tab_ () from /usr/lib/libc.so.48.0
No symbol table info available.
#2  0x00000800 in ?? ()
No symbol table info available.
#3  0xcfbe2878 in ?? ()
No symbol table info available.
#4  0x00000001 in ?? ()
No symbol table info available.
#5  0x00000006 in ?? ()
No symbol table info available.
#6  0x8530b720 in ?? ()
No symbol table info available.
#7  0xcfbe28a8 in ?? ()
No symbol table info available.
#8  0x1c006dbd in ?? ()
No symbol table info available.
#9  0x00000001 in ?? ()
No symbol table info available.
#10 0xcfbe2880 in ?? ()
No symbol table info available.
#11 0x00000000 in ?? ()
No symbol table info available.
------------------ cut here --------------------

To my untrained eye, this looks like there might be something
wrong in libc, but honestly, it does not make sense to me.


Something else that might be related (from the README):

------------------ cut here --------------------
The locale-dependent character input in troff assumes that the C library
represents wchar_t values as Unicode characters. This is the case on any
modern Unix system.
------------------ cut here --------------------

Has anybody been able to successfully run Heirloom troff on OpenBSD?
And, if yes, how to enable support for UTF-8 input files?

Thanks for any hint.
Dirk

Reply via email to