On 27 Jun 2003 15:36:03 +0200
Vincent Knecht <vince@...> wrote:
> hi
>
> i'm trying to debug a program wich usually runs well (apart the
> segfault i'm investigating). sadly, when i run this prog through
> gdb it segfault at window creation, far before the moment i expected.
>
> i'm looking for a way to disable this sse test without having
> to build mesa or dri with --disable-sse (this param is from mesa),
> like an env var.
You can just ignore the exception (should be a FPE not a segfault BTW)
and type continue in gdb. There are also some environment variables. You
can skip the SSE test by defining MESA_FORCE_SSE. If you don't have a
SSE capable CPU you should define MESA_NO_SSE at the same time.
Regards,
Felix
>
> i'm using radeon 7500 with XF4.3 on mdk9.1
>
> glxinfo output for driver:
> OpenGL renderer string: Mesa DRI Radeon 20030328 AGP 4x
> x86/MMX+/3DNow!+/SSE TCL
> OpenGL version string: 1.2 Mesa 5.0.1
>
> it's also unclear to me wether i should use the dri snapshots driver
> since the merge occured with XF4.3 or not.
> are those released after the merge OK ?
>
> the prog being debugged is walktest, from crystal space 3d engine.
> before running it i used 'set environment CRYSTAL=/path/to/CS'
>
> thank you for any help
>
> (gdb) bt
> #0 0x40992738 in _mesa_test_os_sse_exception_support ()
> from /usr/X11R6/lib/modules/dri/radeon_dri.so
> #1 0x409924b2 in check_os_sse_support () at common_x86.c:191
> #2 0x409925d4 in _mesa_init_all_x86_transform_asm () at
> common_x86.c:275
> #3 0x40917e9b in _math_init () at m_xform.c:219
> #4 0x408adee2 in one_time_init (ctx=0xa1d5530) at context.c:564
> #5 0x408b01a0 in _mesa_initialize_context (ctx=0xa1d5530,
> visual=0xbfffef10,
> share_list=0x0, driver_ctx=0xa293e18, direct=1 '\001') at
> context.c:1664
> #6 0x408b0ae5 in _mesa_create_context (visual=0xbfffef10,
> share_list=0x0,
> driver_ctx=0xa293e18, direct=1 '\001') at context.c:1901
> #7 0x40997af4 in radeonCreateContext (glVisual=0xbfffef10,
> driContextPriv=0xa2a66d8,
> sharedContextPrivate=0x0) at radeon_context.c:253
> #8 0x4089e019 in driCreateContext (dpy=0xa26f940, vis=0xa2839c0,
> sharedPrivate=0x0,
> pctx=0xa293e04, fbconfig=0xffffffff) at dri_util.c:945
> #9 0x4042f9ea in _glthread_SetTSD () from /usr/X11R6/lib/libGL.so.1
> #10 0x4042fb1e in glXCreateContext () from /usr/X11R6/lib/libGL.so.1
> #11 0x406b49ab in csGraphics2DGLX::CreateVisuals() (this=0xa26aff8)
> at plugins/video/canvas/openglx/glx2d.cpp:276
> #12 0x406b444a in csGraphics2DGLX::Open() (this=0xa26aff8)
> at plugins/video/canvas/openglx/glx2d.cpp:142
> #13 0x40357db0 in csGraphics3DOGLCommon::NewOpen() (this=0xa260950)
> at plugins/video/renderer/opengl/ogl_g3dcom.cpp:793
> #14 0x40351cb5 in csGraphics3DOpenGL::Open() (this=0xa260950)
> at plugins/video/renderer/opengl/ogl_g3d.cpp:65
> #15 0x403564f8 in csGraphics3DOGLCommon::HandleEvent(iEvent&)
> (this=0xa260950,
> Event=@0xbffff360) at
> plugins/video/renderer/opengl/ogl_g3dcom.cpp:434
> #16 0x403727af in
> csGraphics3DOGLCommon::EventHandler::HandleEvent(iEvent&) (
> this=0xa26a4d0, ev=@0xbffff360) at
> plugins/video/renderer/opengl/ogl_g3dcom.h:897
> #17 0x080de12c in csEventQueue::Dispatch(iEvent&) (this=0x81a6808,
> e=@0xbffff360)
> at libs/csutil/cseventq.cpp:236
> #18 0x080b76f8 in csInitializer::OpenApplication(iObjectRegistry*)
> (r=0x9f39228)
> at libs/cstool/initapp.cpp:349
> #19 0x08076725 in WalkTest::Initialize(int, char const* const*, char
> const*) (
> this=0x81a64f8, argc=1, argv=0xbffff704, iConfigName=0x8138810
> "/config/walktest.cfg")
> at apps/walktest/walktest.cpp:1240
> #20 0x0807892b in main (argc=1, argv=0xbffff704) at
> apps/walktest/walktest.cpp:1662
> #21 0x4018b7f7 in __libc_start_main () from /lib/i686/libc.so.6
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> Dri-users mailing list
> Dri-users@...
> https://lists.sourceforge.net/lists/listinfo/dri-users
>
------------ __\|/__ ___ ___ -------------------------
Felix ___\_e -_/___/ __\___/ __\_____ You can do anything,
Kühling (_____\Ä/____/ /_____/ /________) just not everything
fxkuehl@... \___/ \___/ U at the same time.
|