--- Begin Message ---
Package: xext
Version: 3.3.6-11potato32
Severity: normal
Hello,
I tried to run PEX.
I wrote the following program, which compile O.K. but when run with
PEX module loaded, the X server crash. Note that I ignore if the program is
correct.
The bug is easily reproducible on my machine.
The XFree driver for my video card is
"SVGA: PCI: NeoMagic NM2200 rev 32, Memory @ 0xfd000000, 0xfe800000"
I can send additionnal informations if neccesary.
Bill. <allomber@math.u-bordeaux.fr>
/*-*- compile-command: "gcc pextext.c -o pex -Wall -O2 -L/usr/X11R6/lib -lX11 -lPEX5 -lm -I/usr/include/X11/ "; -*-*/
#include <X11/Xlib.h>
#include <X11/PEX5/PEXlib.h>
#include <stdio.h>
#include <math.h>
int main(void)
{
Window win;
PEXExtensionInfo *info_return;
char error_string[PEXErrorStringLength];
Display *dsp;
PEXCoord points[4];
XSetWindowAttributes attr;
PEXRenderer render;
PEXRendererAttributes renderattr;
long i;
attr.backing_store=Always;
attr.bit_gravity=StaticGravity;
dsp=XOpenDisplay(NULL);
if (PEXInitialize(dsp,&info_return,PEXErrorStringLength,error_string))
fprintf(stderr,"pextext:%s\n",error_string),exit(1);
win=XCreateWindow(dsp,RootWindow(dsp,DefaultScreen(dsp)),1,1,200,300,1,CopyFromParent,InputOutput,CopyFromParent,CWBackingStore|CWBitGravity,&attr);
render=PEXCreateRenderer(dsp,win,0,&renderattr);
for(i=1;i<100;i++)
{
points[0].x=cos((double)i)*cos((double)i);
points[0].y=sin((double)i)*cos((double)i);;
points[0].z=sin((double)i);
points[1].x=cos((double)i*2)*cos((double)i*2);
points[1].y=sin((double)i*2)*cos((double)i*2);;
points[1].z=sin((double)i*2);
PEXPolyline(dsp,render,PEXOCRender,2,points);
XFlush(dsp);
}
for(;;);
}
-- System Information
Debian Release: 2.2
Architecture: i386
Kernel: Linux yellowpig 2.2.18 #1 Mon Jan 15 23:31:20 CET 2001 i686
Versions of packages xext depends on:
ii libc6 2.1.3-17 GNU C Library: Shared libraries an
ii xserver-svga [xserver] 3.3.6-11potato32 X server for SVGA graphics cards
ii xserver-vga16 [xserver] 3.3.6-11potato32 X server for VGA graphics cards
--- End Message ---