From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,bfcffb799ef9216d,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-06-10 12:11:06 PST Newsgroups: comp.sys.dec Path: nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!europa.eng.gtefsd.com!library.ucla.edu!csulb.edu!csus.edu!netcom.com!ecarp From: ecarp@netcom.com (Ed Carp) Subject: curses dumps core on Ultrix 4.2 Message-ID: Organization: NETCOM On-line Communication Services (408 261-4700 guest) X-Newsreader: TIN [version 1.2 PL1] Date: Fri, 10 Jun 1994 18:24:40 GMT 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