From: ecarp@netcom.com (Ed Carp)
Subject: curses dumps core on Ultrix 4.2
Date: Fri, 10 Jun 1994 18:24:40 GMT [thread overview]
Message-ID: <ecarpCr71t5.L4s@netcom.com> (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"
next reply other threads:[~1994-06-10 18:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-06-10 18:24 Ed Carp [this message]
1994-06-14 17:57 ` curses dumps core on Ultrix 4.2 Ed Carp
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox