[Gambas-user] SDL Crash

Sebastian Claus sc at ...3282...
Tue Jan 7 21:03:29 CET 2014


Dear all,

I've a strange problem and I'm not sure whether it's a bug or an unlucky
configuration of my system.

Unfortunately, the built-in project sender didn't work as well, so I
manualy packed it.

The crash occurs during the implicit call of Draw.End() in the
Window-Event handler for the draw event. But the crash will also occur,
if you are calling the Draw.Begin() and then Draw.End() function manualy.

Crash reason is a double free of heap memory:

*** Error in `sdl-test': double free or corruption (fasttop):
0x0000000000ac10e0 ***


I included everything that seems to be useful to me.

Thanks in advance.


Regards,

	Sebastian


--- INFO ---

[System]
Gambas=3.5.2
OperatingSystem=Linux
Kernel=3.12.6-1-ARCH
Architecture=x86_64
Distribution=Arch Linux
Desktop=?
Theme=QWindows
Language=de_DE.UTF-8
Memory=7988M

[Libraries]
Cairo=libcairo.so.2.11200.16
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.201.0
GTK+=libgtk-x11-2.0.so.0.2400.22
Poppler=libpoppler.so.44.0.0
Qt4=libQtCore.so.4.8.5
SDL=libSDL-1.2.so.0.11.4

--- /INFO ---



--- gdb output ---

Starting program: /usr/bin/gbx3
warning: no loadable sections found in added symbol-file system-supplied
DSO at 0x7ffff7ffa000
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffee408700 (LWP 32590)]
[New Thread 0x7fffeb830700 (LWP 32591)]
MMain.screen_Draw.17: Drawing...
*** Error in `sdl-test': double free or corruption (fasttop):
0x0000000000ac10e0 ***

--- /gdb output ---



--- back trace ---

(gdb) bt
#0  0x00007ffff713c319 in raise () from /usr/lib/libc.so.6
#1  0x00007ffff713d718 in abort () from /usr/lib/libc.so.6
#2  0x00007ffff7179da4 in __libc_message () from /usr/lib/libc.so.6
#3  0x00007ffff717f56e in malloc_printerr () from /usr/lib/libc.so.6
#4  0x00007ffff7180247 in _int_free () from /usr/lib/libc.so.6
#5  0x00007ffff478999c in TTF_CloseFont () from /usr/lib/libSDL_ttf-2.0.so.0
#6  0x00007ffff4995d73 in SDLfont::~SDLfont (this=0xa88aa0,
__in_chrg=<optimized out>) at SDLfont.cpp:165
#7  0x00007ffff499861e in CFONT_free (_object=<optimized out>,
_param=<optimized out>) at Cfont.cpp:109
#8  0x000000000040b14c in EXEC_native () at gbx_exec.c:1334
#9  0x000000000040b833 in EXEC_special (special=32586, special at ...2861...=1,
class=0x0, object=0x6, object at ...2861...=0x6659b8, nparam=0, drop=0 '\000')
at gbx_exec.c:1642
#10 0x000000000040bb2b in EXEC_special_inheritance
(special=special at ...2861...=1, class=class at ...2861...=0x685438,
object=object at ...2861...=0x6659b8, nparam=nparam at ...2861...=0, drop=drop at ...2861...=1
'\001') at gbx_exec.c:1698
#11 0x000000000040f20e in CLASS_free (object=0x6659b8) at gbx_class.c:739
#12 0x00007ffff4998472 in DRAW_end () at Cdraw.cpp:113
#13 0x00007ffff499a32f in myWin::Update (this=0x823d60) at Cwindow.cpp:340
#14 0x00007ffff499579a in SDLapplication::ManageEvents (this=<optimized
out>, no_input=no_input at ...2861...=false) at SDLapp.cpp:189
#15 0x00007ffff499a5b0 in my_loop () at main.cpp:146
#16 0x000000000040469b in main (argc=1, argv=0x7fffffffe838) at gbx.c:409

--- /back trace ---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sdl-test.tar.bz2
Type: application/x-bzip
Size: 5656 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20140107/eaaa8abb/attachment.bin>


More information about the User mailing list