0 Replies Latest reply on Sep 25, 2014 9:55 AM by policat

    Segmentation fault in GPA_OpenContext

    policat

      Hello,

       

      I have a Linux system with HD 6290 and I get segmentation fault when calling GPA_OpenContext.

      Driver version is 14.10.2 (catalyst-14.4).

       

      If I run the program in gdb I can see that the crash is caused by driver calling XQueryExtension with invalid display pointer. The stack trace looks like this:

       

      #0  XQueryExtension (dpy=0x0, name=0xb6fd2b04 "ATIFGLEXTENSION", major_opcode=0xbfff9564, first_event=0xbfff9568, first_error=0xbfff956c) at QuExt.c:43

      #1  0xb6ccb792 in ?? () from /usr/lib/dri/fglrx_dri.so

       

      The code I'm using is attached.

       

      Can anybody tell me what I am doing wrong here?