Path: utzoo!attcan!uunet!samsung!emory!mephisto!mcnc!duke!khera From: khera@thneed.cs.duke.edu (Vick Khera) Newsgroups: comp.windows.x Subject: Re: Xterm dies in tek mode Message-ID: Date: 18 Sep 90 13:30:18 GMT References: <167855@teemc.UUCP> <90Sep17.174858edt.382@smoke.cs.toronto.edu> Sender: news@duke.cs.duke.edu Organization: Duke University CS Dept., Durham, NC Lines: 66 Nntp-Posting-Host: thneed.cs.duke.edu In-reply-to: moraes@cs.toronto.edu's message of 17 Sep 90 21:49:58 GMT In article <90Sep17.174858edt.382@smoke.cs.toronto.edu> moraes@cs.toronto.edu (Mark Moraes) writes: wayne@teemc.UUCP (Michael R. Wayne) writes: > Every time I try to use xterm in tek mode, it dies. gdb on xterm -t >tells me the problem is in the library routine XmuCopyISOLatinLowered called >from TekRealize at line 1292 of xterm/Tekproc.c. Is there a patch to deal >with this one? Here's a copy of a bug report we filed with xbugs in January -- strictly unblessed and unsupported, of course! [report deleted] here's my version, much simpler... v. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vick Khera Gradual Student Department of Computer Science ARPA: khera@cs.duke.edu Duke University UUCP: ...!mcnc!duke!khera Durham, NC 27706 (919) 660-6528 *** /tmp/,RCSt1018705 Mon Sep 17 10:51:16 1990 --- Tekproc.c Fri Jul 13 10:19:17 1990 *************** *** 218,223 static Dimension defOne = 1; static XtResource resources[] = { {XtNwidth, XtCWidth, XtRDimension, sizeof(Dimension), XtOffset(Widget, core.width), XtRDimension, (caddr_t)&defOne}, --- 218,227 ----- static Dimension defOne = 1; + /* prevent gcc from making initial font name read-only, causing core dump */ + /* when XmuCopyISOLatin1Lowered() is called to copy it onto itself */ + static char initialFontStr[] = "large"; + static XtResource resources[] = { {XtNwidth, XtCWidth, XtRDimension, sizeof(Dimension), XtOffset(Widget, core.width), XtRDimension, (caddr_t)&defOne}, *************** *** 237,243 XtRString, "6x10"}, {"initialFont", "InitialFont", XtRString, sizeof(char *), XtOffset(TekWidget, tek.initial_font), ! XtRString, "large"}, }; static void TekInitialize(), TekRealize(), TekConfigure(); --- 241,247 ----- XtRString, "6x10"}, {"initialFont", "InitialFont", XtRString, sizeof(char *), XtOffset(TekWidget, tek.initial_font), ! XtRString, initialFontStr}, }; static void TekInitialize(), TekRealize(), TekConfigure(); -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vick Khera Gradual Student Department of Computer Science ARPA: khera@cs.duke.edu Duke University UUCP: ...!mcnc!duke!khera Durham, NC 27706 (919) 660-6528