Starting program: /usr/local/src/simgear/simgear/screen/TestRenderTexture [Thread debugging using libthread_db enabled] [New Thread -1212790048 (LWP 2188)] Program received signal SIGFPE, Arithmetic exception. [Switching to Thread -1212790048 (LWP 2188)] 0xb7aa0044 in _mesa_test_os_sse_exception_support () from /usr/X11R6/lib/modules/dri//r200_dri.so (gdb) where #0 0xb7aa0044 in _mesa_test_os_sse_exception_support () from /usr/X11R6/lib/modules/dri//r200_dri.so #1 0xb7a9face in check_os_sse_support () at common_x86.c:233 #2 0xb7a9ff57 in _mesa_init_all_x86_transform_asm () at common_x86.c:435 #3 0xb79c9696 in _math_init_transformation () at m_xform.c:214 #4 0xb79c96b4 in _math_init () at m_xform.c:227 #5 0xb78fc585 in one_time_init (ctx=0x8069460) at context.c:637 #6 0xb78fd59b in _mesa_initialize_context (ctx=0x8069460, visual=0x805e420, share_list=0x0, driverFunctions=0xbffff2d8, driverContext=0x80602b0) at context.c:1171 #7 0xb78fd7f4 in _mesa_create_context (visual=0x805e420, share_list=0x0, driverFunctions=0xbffff2d8, driverContext=0x80602b0) at context.c:1262 #8 0xb7aaf293 in r200CreateContext (glVisual=0x805e420, driContextPriv=0x80691d0, sharedContextPrivate=0x0) at r200_context.c:313 #9 0xb7aad8c4 in driCreateNewContext (dpy=0x8055048, modes=0x805e420, render_type=0, sharedPrivate=0x0, pctx=0x8060270) at dri_util.c:782 #10 0xb7f15fdf in CreateContext (dpy=0x8055048, vis=0x805fdb0, fbconfig=0x0, shareList=0x0, allowDirect=1, contextID=0, use_glx_1_3=0, renderType=0) at glxcmds.c:353 #11 0xb7f163b3 in glXCreateContext (dpy=0x8055048, vis=0x805fdb0, shareList=0x0, allowDirect=1) at glxcmds.c:430 #12 0xb7eddc14 in fgOpenWindow () from /usr/lib/libglut.so.3 #13 0xb7edc7de in fgCreateWindow () from /usr/lib/libglut.so.3 #14 0xb7eddf54 in glutCreateWindow () from /usr/lib/libglut.so.3 #15 0x0804b1ca in main (argc=1, argv=0xbffff864) at TestRenderTexture.cpp:315 (gdb) cont Continuing. Disabling HW TCL support Breakpoint 1, main (argc=1, argv=0xbffff864) at TestRenderTexture.cpp:332 332 rt = CreateRenderTexture(g_modeTestStrings[g_currentString]); (gdb) step CreateRenderTexture (initstr=0x8051ce8 "rgb tex2D") at TestRenderTexture.cpp:74 74 printf("\nCreating with init string: \"%s\"\n", initstr); (gdb) next Creating with init string: "rgb tex2D" 76 int texWidth = 256, texHeight = 256; (gdb) 82 RenderTexture *rt2 = new RenderTexture(); (gdb) 83 rt2->Reset(initstr); (gdb) 84 if (!rt2->Initialize(texWidth, texHeight)) (gdb) step RenderTexture::Initialize (this=0x8477f88, width=256, height=256, shareObjects=true, copyContext=false) at RenderTexture.cpp:299 299 assert(width > 0 && height > 0); (gdb) 301 _iWidth = width; _iHeight = height; (gdb) next 302 _bPowerOf2 = IsPowerOfTwo(width) && IsPowerOfTwo(height); (gdb) 304 _bShareObjects = shareObjects; (gdb) 305 _bCopyContext = copyContext; (gdb) 308 if (!_VerifyExtensions()) (gdb) 311 if (_bInitialized) (gdb) 460 _pDisplay = glXGetCurrentDisplay(); (gdb) 461 GLXContext context = glXGetCurrentContext(); (gdb) 462 int screen = DefaultScreen(_pDisplay); (gdb) 469 &_pixelFormatAttribs[0], &nConfigs); (gdb) 471 if (nConfigs == 0 || !fbConfigs) (gdb) 479 if (glXVersion1_3Present) (gdb) 486 }; (gdb) 487 for (int i=0;iscreen : fbconfig->screen; (gdb) 331 __GLXscreenConfigs * const psc = GetGLXScreenConfigs(dpy, screen); (gdb) 337 if ( fbconfig == NULL ) { (gdb) 341 mode = _gl_context_modes_find_visual( psc->configs, (gdb) 343 assert( mode != NULL ); (gdb) 344 assert( mode->screen == screen ); (gdb) 350 if (psc && psc->driScreen.private) { (gdb) 352 ? shareList->driContext.private : NULL; (gdb) 353 gc->driContext.private = (gdb) step driCreateNewContext (dpy=0x8055048, modes=0x805e120, render_type=0, sharedPrivate=0x80691d0, pctx=0x84783c0) at dri_util.c:738 738 __DRIcontextPrivate *pshare = (__DRIcontextPrivate *) sharedPrivate; (gdb) next 740 void * const shareCtx = (pshare != NULL) ? pshare->driverPrivate : NULL; (gdb) 742 pDRIScreen = (*dri_interface->getScreen)(dpy, modes->screen); (gdb) 743 if ( (pDRIScreen == NULL) || (pDRIScreen->private == NULL) ) { (gdb) 748 psp = (__DRIscreenPrivate *)pDRIScreen->private; (gdb) 750 pcp = (__DRIcontextPrivate *)_mesa_malloc(sizeof(__DRIcontextPrivate)); (gdb) 751 if (!pcp) { (gdb) 755 if (! (*dri_interface->createContext)(dpy, modes->screen, modes->fbconfigID, (gdb) step XF86DRICreateContextWithConfig (dpy=0x8055048, screen=0, configID=35, context=0x8478030, hHWContext=0x8478034) at XF86dri.c:337 337 XExtDisplayInfo *info = find_display (dpy); (gdb) next 342 XF86DRICheckExtension (dpy, info, False); (gdb) 345 GetReq(XF86DRICreateContext, req); (gdb) 346 req->reqType = info->codes->major_opcode; (gdb) 347 req->driReqType = X_XF86DRICreateContext; (gdb) 348 req->visual = configID; (gdb) 349 req->screen = screen; (gdb) 350 *context = XAllocID(dpy); (gdb) 351 req->context = *context; (gdb) 352 if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) { (gdb) step _XReply (dpy=0x8055048, rep=0xbffff570, extra=0, discard=0) at XlibInt.c:1670 1670 unsigned long cur_request = dpy->request; (gdb) next 1675 if (dpy->flags & XlibDisplayIOError) (gdb) 1680 cvl = QueueReplyReaderLock(dpy); (gdb) 1681 if (cvl) { (gdb) 1692 _XFlushInt(dpy, cvl ? cvl->cv : NULL); (gdb) 1698 if(dpy->lock && (gdb) 1702 dpy->flags |= XlibDisplayReply; (gdb) 1710 if (!dpy->lock || !dpy->lock->reply_was_read) (gdb) 1712 (void) _XRead(dpy, (char *)rep, (long)SIZEOF(xReply)); (gdb) 1714 if (dpy->lock) (gdb) 1718 switch ((int)rep->generic.type) { (gdb) 1776 register Bool ret = False; (gdb) 1778 xError *err = (xError *) rep; (gdb) 1781 dpy->flags &= ~XlibDisplayReply; (gdb) 1782 serial = _XSetLastRequestRead(dpy, (xGenericReply *)rep); (gdb) 1783 if (serial == cur_request) (gdb) 1810 for (ext = dpy->ext_procs; !ret && ext; ext = ext->next) { (gdb) 1811 if (ext->error) (gdb) 1810 for (ext = dpy->ext_procs; !ret && ext; ext = ext->next) { (gdb) 1811 if (ext->error) (gdb) 1810 for (ext = dpy->ext_procs; !ret && ext; ext = ext->next) { (gdb) 1811 if (ext->error) (gdb) 1810 for (ext = dpy->ext_procs; !ret && ext; ext = ext->next) { (gdb) 1814 if (!ret) { (gdb) 1815 _XError(dpy, err); (gdb) step _XError (dpy=0x8055048, rep=0xbffff570) at XlibInt.c:2861 2861 event.xerror.serial = _XSetLastRequestRead(dpy, (xGenericReply *)rep); (gdb) next 2863 for (async = dpy->async_handlers; async; async = next) { (gdb) 2870 event.xerror.display = dpy; (gdb) 2871 event.xerror.type = X_Error; (gdb) 2872 event.xerror.resourceid = rep->resourceID; (gdb) 2873 event.xerror.error_code = rep->errorCode; (gdb) 2874 event.xerror.request_code = rep->majorCode; (gdb) 2875 event.xerror.minor_code = rep->minorCode; (gdb) 2876 if (dpy->error_vec && (gdb) 2879 if (_XErrorFunction != NULL) { (gdb) 2882 if (dpy->lock) (gdb) 2884 UnlockDisplay(dpy); (gdb) 2886 rtn_val = (*_XErrorFunction)(dpy, (XErrorEvent *)&event); /* upcall */ (gdb) step _XDefaultError (dpy=0x8055048, event=0xbffff47c) at XlibInt.c:2833 2833 if (_XPrintDefaultError (dpy, event, stderr) == 0) return 0; (gdb) _XPrintDefaultError (dpy=0x8055048, event=0xbffff47c, fp=0xb7db5460) at XlibInt.c:2726 2726 char *mtype = "XlibMessage"; (gdb) next 2727 register _XExtension *ext = (_XExtension *)NULL; (gdb) 2728 _XExtension *bext = (_XExtension *)NULL; (gdb) 2729 XGetErrorText(dpy, event->error_code, buffer, BUFSIZ); (gdb) 2730 XGetErrorDatabaseText(dpy, mtype, "XError", "X Error", mesg, BUFSIZ); (gdb) 2731 (void) fprintf(fp, "%s: %s\n ", mesg, buffer); (gdb) X Error of failed request: GLXUnsupportedPrivateRequest 2732 XGetErrorDatabaseText(dpy, mtype, "MajorCode", "Request Major code %d", (gdb) 2734 (void) fprintf(fp, mesg, event->request_code); (gdb) Major opcode of failed request: 1292735 if (event->request_code < 128) { (gdb) 2739 for (ext = dpy->ext_procs; (gdb) 2740 ext && (ext->codes.major_opcode != event->request_code); (gdb) 2741 ext = ext->next) (gdb) 2740 ext && (ext->codes.major_opcode != event->request_code); (gdb) 2743 if (ext) (gdb) 2744 strcpy(buffer, ext->name); (gdb) 2748 (void) fprintf(fp, " (%s)\n", buffer); (gdb) (GLX) 2749 if (event->request_code >= 128) { (gdb) 2750 XGetErrorDatabaseText(dpy, mtype, "MinorCode", "Request Minor code %d", (gdb) 2752 fputs(" ", fp); (gdb) 2753 (void) fprintf(fp, mesg, event->minor_code); (gdb) Minor opcode of failed request: 162754 if (ext) { (gdb) 2755 sprintf(mesg, "%s.%d", ext->name, event->minor_code); (gdb) 2756 XGetErrorDatabaseText(dpy, "XRequest", mesg, "", buffer, BUFSIZ); (gdb) 2757 (void) fprintf(fp, " (%s)", buffer); (gdb) (X_GLXVendorPrivate)2759 fputs("\n", fp); (gdb) 2761 if (event->error_code >= 128) { (gdb) 2763 buffer[0] = '\0'; (gdb) 2764 for (ext = dpy->ext_procs; ext; ext = ext->next) { (gdb) 2765 if (ext->error_string) (gdb) 2768 if (buffer[0]) { (gdb) 2772 if (ext->codes.first_error && (gdb) 2764 for (ext = dpy->ext_procs; ext; ext = ext->next) { (gdb) 2765 if (ext->error_string) (gdb) 2766 (*ext->error_string)(dpy, event->error_code, &ext->codes, (gdb) 2768 if (buffer[0]) { (gdb) 2769 bext = ext; (gdb) 2770 break; (gdb) 2777 if (bext) (gdb) 2778 sprintf(buffer, "%s.%d", bext->name, (gdb) 2782 XGetErrorDatabaseText(dpy, mtype, buffer, "", mesg, BUFSIZ); (gdb) 2783 if (mesg[0]) { (gdb) 2789 for (ext = dpy->ext_procs; ext; ext = ext->next) { (gdb) 2790 if (ext->error_values) (gdb) 2789 for (ext = dpy->ext_procs; ext; ext = ext->next) { (gdb) 2790 if (ext->error_values) (gdb) 2789 for (ext = dpy->ext_procs; ext; ext = ext->next) { (gdb) 2790 if (ext->error_values) (gdb) 2789 for (ext = dpy->ext_procs; ext; ext = ext->next) { (gdb) 2816 XGetErrorDatabaseText(dpy, mtype, "ErrorSerial", "Error Serial #%d", (gdb) 2818 fputs(" ", fp); (gdb) 2819 (void) fprintf(fp, mesg, event->serial); (gdb) Serial number of failed request: 392820 XGetErrorDatabaseText(dpy, mtype, "CurrentSerial", "Current Serial #%d", (gdb) 2822 fputs("\n ", fp); (gdb) 2823 (void) fprintf(fp, mesg, dpy->request); (gdb) Current serial number in output stream: 402824 fputs("\n", fp); (gdb) 2825 if (event->error_code == BadImplementation) return 0; (gdb) 2826 return 1; (gdb) 2827 } (gdb) _XDefaultError (dpy=0x8055048, event=0xbffff47c) at XlibInt.c:2834 2834 exit(1); (gdb) Program exited with code 01. (gdb) quit