X problem in Slink
Hi,
I've have a problem with the X libraries since I rebuilt my system
as a Slink system. The hardware is K6-3 400 mz, 256 Mb, with a Matrox
Millenium 2(?) card. I have a code I'm developing using X which was working
fine. Since the reinstall it segfaults, see below. I stripped the code down to
where it just opens a window and it exhibits the same problem. It will compile
and run fine on a Dec Alpha with DecUnix. Before the reinstall it ran fine on
my Hamm system.
The details are below.
Any ideas?
bash-2.01$ make test1
egcc -o test1 -I/usr/include -I/usr/X11R6/include -I/usr/X11R6/include/X11
-L/usr/X11R6/lib -lMesaGL -lXaw -lXt -lXm -lXext -l
X11 -lm test1.c
bash-2.01$ test1
before toplevel2 0
after toplevel2 134567448
Segmentation fault
bash-2.01$ ldd test1
libMesaGL.so.3 => /usr/lib/libMesaGL.so.3 (0x4000f000)
libXaw.so.6 => /usr/X11R6/lib/Xaw3d/libXaw.so.6 (0x400f4000)
libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40149000)
libXm.so.1 => /usr/X11R6/lib/libXm.so.1 (0x40191000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4029f000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x402ab000)
libm.so.6 => /lib/libm.so.6 (0x4034e000)
libc.so.6 => /lib/libc.so.6 (0x40367000)
libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x4040c000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x4041e000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40427000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
bash-2.01$ which egcc
/usr/bin/egcc
bash-2.01$ egcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.91.60/specs
gcc version egcs-2.91.60 Debian 2.1 (egcs-1.1.1 release)
bash-2.01$ exit
cat test1.c
/*****************************************
*
*
*
******************************************************/
#include <stdio.h>
#include <X11/Intrinsic.h>
#include <Xm/Xm.h>
#include <Xm/ArrowB.h>
#include <Xm/Label.h>
#include <Xm/BulletinB.h>
#include <Xm/Form.h>
#include <X11/Shell.h>
int main(int argc, char *argv[])
{
XtAppContext app;
Widget toplevel,
toplevel2,
form,
label,
vtk;
Arg args[4];
int c,n;
toplevel = XtVaAppInitialize(&app, "vis Window", NULL,0,&argc, argv,
NULL,NULL, 0);
//display = XtDisplay(toplevel);
toplevel2 = 0;
printf("before toplevel2 %d \n",toplevel2);
toplevel2 = XtCreateManagedWidget("Display",topLevelShellWidgetClass,
toplevel, NULL, 0);
printf("after toplevel2 %d \n",toplevel2);
form = XtVaCreateManagedWidget("form",xmFormWidgetClass, toplevel2,
NULL);
printf("after form\n");
vtk = XtVaCreateManagedWidget( "vtk", xmBulletinBoardWidgetClass,
form,
XmNwidth, 500,
XmNheight, 500,
NULL);
label = XtVaCreateManagedWidget("label_text", xmLabelWidgetClass,
vtk,
XmNleftAttachment, XmATTACH_FORM,
XmNtopAttachment, XmATTACH_FORM,
NULL);
XtRealizeWidget(toplevel);
XtAppMainLoop(app);
exit(0);
}
---------------------------------------------
Jim Harsh E-Mail: harsh@lanl.gov
Los Alamos National Laboratory, MS P940
Los Alamos, NM 87545
505-665-0485, FAX - 505-665-3359
Date: 04-Jun-99,Time: 07:27:29
---------------------------------------------
Reply to: