Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!ut-emx!walt.cc.utexas.edu!erlkonig From: erlkonig@walt.cc.utexas.edu (Christopher North-Keys) Newsgroups: comp.windows.x Subject: xterm dumping core Keywords: xterm, bug, xmkmf Message-ID: <24563@ut-emx.UUCP> Date: 14 Feb 90 06:23:46 GMT Sender: news@ut-emx.UUCP Reply-To: erlkonig@walt.cc.utexas.edu (Christopher North-Keys) Organization: Packaging/Interconnect, M.C.C. Lines: 115 X Window System Bug Report xbugs@expo.lcs.mit.edu VERSION: R4 CLIENT MACHINE and OPERATING SYSTEM: sun 3/150-M sunos 4.0.3 (previously reported for sun 3 sunos 3.5) DISPLAY TYPE: monochrome (previously reported for sparcstation cgsix) WINDOW MANAGER: twm (as last report) AREA: xterm SYNOPSIS: The following dumps core until recompiled as documented below. xterm -t DESCRIPTION: /-------previous report | On a sun 3 running SunOS 3.5 (also on a sparcstation running SunOS | 4.0.3c but I'm not positive) an xterm made via "make World" in the | x11r4/mit directory dumps core when you start it with "xterm -t" or | try to switch to tek mode. Here's the adb output: | | adb xterm | core file = core -- program ``xterm'' | SIGSEGV 11: segmentation violation | $C | _XmuCopyISOLatin1Lowered() + 40 | _TekRealize(0x8f7d4,0xeffebd4,0xeffebd8) + 47a | _RealizeWidget(0x8f7d4) + aa | _RealizeWidget() + 146 | _XtRealizeWidget(0x8c874) + 34 | _spawn() + 2d6 | _main(0x0,0xefffa0c,0xefffa18) + 5b4 | | But if I go into the xterm directory and do a xmkmf and then make, | that xterm works fine. | | gcc -DNOSTDHDRS -fstrength-reduce -fcombine-regs -fdelayed-branch -fpcc-struct-return -fwritable-strings -traditional -O -I/tuna_a/x11r4/include -c menu.c \--------end ---------New report The older version here was compiled with GCC 1.35, the newer with GCC 1.36. This distinction may not be relevant. The fact of the -DUseInstalled flag may be. Session follows: ============================================================================== }-1.172-> ./xterm -t Segmentation fault (core dumped) }-1.173-> dbx xterm core Reading symbolic information... Read 2779 symbols (dbx) where XmuCopyISOLatin1Lowered() at 0x17c92 TekRealize(0x973d4, 0xeffea20, 0xeffe9e4) at 0x10431 RealizeWidget(0x973d4) at 0x23667 RealizeWidget(0x9527c) at 0x2370f XtRealizeWidget(0x9527c) at 0x237ab spawn() at 0x40df main(0x0, 0xefff818, 0xefff824) at 0x399f (dbx) quit }-1.174-> make clean rm -f xterm rm -f resize rm -f *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut \#* }-1.175-> xmkmf mv Makefile Makefile.bak imake -DUseInstalled -I/usr/lib/X11/config }-1.176-> make rm -f main.o gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings -traditional -c -O -I/usr/include -DUTMP -DUSE_TTY_GROUP main.c gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings -traditional -O -I/usr/include -sun3 -c input.c gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings -traditional -O -I/usr/include -sun3 -c charproc.c gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings -traditional -O -I/usr/include -sun3 -c cursor.c gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings -traditional -O -I/usr/include -sun3 -c util.c gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings -traditional -O -I/usr/include -sun3 -c tabs.c gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings -traditional -O -I/usr/include -sun3 -c screen.c gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings -traditional -O -I/usr/include -sun3 -c scrollbar.c gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings -traditional -O -I/usr/include -sun3 -c button.c gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings -traditional -O -I/usr/include -sun3 -c Tekproc.c gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings -traditional -O -I/usr/include -sun3 -c misc.c gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings -traditional -O -I/usr/include -sun3 -c VTPrsTbl.c gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings -traditional -O -I/usr/include -sun3 -c TekPrsTbl.c gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings -traditional -O -I/usr/include -sun3 -c data.c gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings -traditional -O -I/usr/include -sun3 -c menu.c rm -f xterm gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings -traditional -o xterm main.o input.o charproc.o cursor.o util.o tabs.o screen.o scrollbar.o button.o Tekproc.o misc.o VTPrsTbl.o TekPrsTbl.o data.o menu.o -O -lXaw-lXmu -lXt -lXext -lX11 -ltermcap gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings -traditional -O -I/usr/include -sun3 -c resize.c rm -f resize gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings -traditional -o resize resize.o -O -ltermcap }-1.177-> ./xterm -t /* runs successfully */ ------------------------------------/\---------------------------------------- Seo: Harp[@Mcc.Com] / \/\ ^*^ Christopher North-Keys Tha mi gu trang a'cluich. / \ \ Assoc. Systems Analyst, MCC --------------------------------(disclaimer)----------------------------------