SDL_UpdateTexture crash on i965

"rona.dinihari" <[email protected]>
Newsgroups gmane.comp.lib.sdl
Message-ID <[email protected]>
Hello all,

I am building application (not game) using SDL 2.0. The code used to work on other system. But on Debian Jessie, SDL_UpdateTexture crashed on i965.

This is the debugging result:


Code:

[New LWP 3393]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./sdlvnc 127.0.0.1'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f9adae8431d in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
(gdb) up
#1  0x00007f9adae84408 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
(gdb) up
#2  0x00007f9adb13f7bf in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
(gdb) up
#3  0x00007f9adb0e2275 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
(gdb) up
#4  0x00007f9adcc2e545 in glXMakeCurrentReadSGI ()
   from /usr/lib/x86_64-linux-gnu/libGL.so.1
(gdb) up
#5  0x00007f9ae49ef100 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
(gdb) up
#6  0x00007f9ae49e42df in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
(gdb) up
#7  0x00007f9ae49e4546 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
(gdb) up
#8  0x00007f9ae49e46f5 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
(gdb) up
#9  0x00007f9ae494f715 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
(gdb) up
#10 0x00007f9ae494f848 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
(gdb) up
#11 <signal handler called>
(gdb) up
#12 0x00007f9adc7c83cb in ?? () from /usr/lib/x86_64-linux-gnu/libglapi.so.0
(gdb) up
#13 0x00007f9ae4990258 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
(gdb) up
#14 0x00007f9ae4989c06 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
(gdb) up
#15 0x00007f9ae52ea088 in update (client=0x7f9ae567f010, x=0, y=0, 
    w=<optimized out>, h=51) at SDLVNCViewer.c:705
705	    if (SDL_UpdateTexture(data->texture, NULL, client->frameBuffer, pitch)) {
(gdb) q




How can I fix this?

Thanks

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.