Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* curses dumps core on Ultrix 4.2
@ 1994-06-10 18:24 Ed Carp
  1994-06-14 17:57 ` Ed Carp
  0 siblings, 1 reply; 2+ messages in thread
From: Ed Carp @ 1994-06-10 18:24 UTC (permalink / raw)


Any advice or suggestions?  I've got this vanilla curses program, runs on
damned near everyone else's unix, but if it doesn't find my terminal type,
it dumps core! :(  It dumps in initscr():

 erc@akbar-27: dbx ./lsb_params
dbx version 2.10.1
Type 'help' for help.
reading symbolic information ...
main:    Source not available
(dbx) run
Sorry, I don't know how to deal with your 'xterm' terminal.

Segmentation fault [_doprnt:326 ,0x4175c4]
         Source not available
(dbx) where
>  0 _doprnt(0x7fffbaf8, 0x206c6165, 0x68746977, 0x756f7920, 0x408fe8) ["../dop]
   1 fprintf.fprintf(0x7fffbb0c, 0x7fffbc9e, 0x0, 0x0, 0x40782c) ["../fprintf.c]
   2 _ec_quit._ec_quit(0x7fffbc9e, 0x10003f30, 0x0, 0x1000, 0x401624) ["../_ec_]
   3 initscr.initscr(0x7fffbbf4, 0x10006374, 0x0, 0x0, 0x0) ["../initscr.c":46,]
   4 main(argc = 1, argv = 0x7fffbbf4, envp = 0x7fffbbfc) ["lsb_params.c":182, ]
(dbx)

Looks like an Ultrix termcap lib bug to me:

 erc@akbar-29: grep xterm /etc/termcap
vs|xterm|vs100|xterm terminal emulator (X window system):\
v2|xterms|vs100s|xterm terminal emulator (small)(X window system):\
        :co#80:li#24:tc=xterm:
 erc@akbar-30:

The termcap libraries and the terminfo libraries are the same!

 erc@akbar-31: sum /usr/lib/libterm*.a
59639     9 /usr/lib/libtermcap.a
59639     9 /usr/lib/libtermlib.a

 erc@akbar-33: ls -l /usr/lib/libterm*.a
-rwxr-xr-x  2 root         9146 Mar 19  1991 /usr/lib/libtermcap.a*
-rwxr-xr-x  2 root         9146 Mar 19  1991 /usr/lib/libtermlib.a*


Like I said, looks like an Ultrix bug to me.  Suggestions welcome!

I use "cc -g -o xxx xxx.c -lcursesX -ltermcap" and "#include <cursesX.h"
in my application, if that makes any difference...
-- 
Ed Carp, N7EKG/VE3			Ed.Carp@linux.org, ecarp@netcom.com
Finger ecarp@netcom.com for PGP 2.5 public key		an88744@anon.penet.fi
If you want magic, let go of your armor.  Magic is so much stronger than
steel!        -- Richard Bach, "The Bridge Across Forever"


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-06-14 17:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-06-10 18:24 curses dumps core on Ultrix 4.2 Ed Carp
1994-06-14 17:57 ` Ed Carp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox