Erf, merci mais hélas ca ne m'avance pas plus... : Starting program: /home/patate/eclipse/workspace/AllegroTest/Debug/AllegroTest
[Thread debugging using libthread_db enabled]
[New Thread -1211494272 (LWP 4429)]
[Switching to Thread -1211494272 (LWP 4429)]
Program received signal SIGSEGV, Segmentation fault.
0xb7f3bb7f in create_bitmap_ex () from /usr/lib/liballeg.so.4.1
(gdb) where
#0 0xb7f3bb7f in create_bitmap_ex () from /usr/lib/liballeg.so.4.1
#1 0x08048ec0 in _IO_stdin_used ()
#2 0x0804a118 in ?? ()
#3 0x00000018 in ?? ()
#4 0xb7f152e9 in load_bmp () from /usr/lib/liballeg.so.4.1
#5 0xb7ef99f8 in ?? () from /usr/lib/liballeg.so.4.1
#6 0xbffff780 in ?? ()
#7 0x00000008 in ?? ()
#8 0x00000000 in ?? ()
#9 0xb7dd6000 in ?? ()
#10 0x0000000a in ?? ()
#11 0xb7dd63c4 in ?? ()
#12 0xb7dd6a80 in ?? ()
#13 0xb8000c00 in ?? () from /lib/ld-linux.so.2
#14 0xb7fe919c in ?? ()
#15 0xb7fea9cb in ?? () from /lib/ld-linux.so.2
#16 0xbffff434 in ?? ()
#17 0xb7ff23cf in _dl_lookup_versioned_symbol () from /lib/ld-linux.so.2
Previous frame inner to this frame (corrupt stack?)
[^] # Re: Hum
Posté par cho7 (site web personnel) . En réponse au message Allegro et load_bitmap. Évalué à 2.
Starting program: /home/patate/eclipse/workspace/AllegroTest/Debug/AllegroTest
[Thread debugging using libthread_db enabled]
[New Thread -1211494272 (LWP 4429)]
[Switching to Thread -1211494272 (LWP 4429)]
Breakpoint 1, _mangled_main (argc=1, argv=0xbffff924) at ../main.c:11
11 sprite1=load_bitmap("/home/patate/Desktop/liberty.bmp",NULL);
(gdb) step
Program received signal SIGSEGV, Segmentation fault.
0xb7f3bb7f in create_bitmap_ex () from /usr/lib/liballeg.so.4.1
(gdb) where
#0 0xb7f3bb7f in create_bitmap_ex () from /usr/lib/liballeg.so.4.1
#1 0x08048ec0 in _IO_stdin_used ()
#2 0x0804a118 in ?? ()
#3 0x00000018 in ?? ()
#4 0xb7f152e9 in load_bmp () from /usr/lib/liballeg.so.4.1
#5 0xb7ef99f8 in ?? () from /usr/lib/liballeg.so.4.1
#6 0xbffff780 in ?? ()
#7 0x00000008 in ?? ()
#8 0x00000000 in ?? ()
#9 0xb7dd6000 in ?? ()
#10 0x0000000a in ?? ()
#11 0xb7dd63c4 in ?? ()
#12 0xb7dd6a80 in ?? ()
#13 0xb8000c00 in ?? () from /lib/ld-linux.so.2
#14 0xb7fe919c in ?? ()
#15 0xb7fea9cb in ?? () from /lib/ld-linux.so.2
#16 0xbffff434 in ?? ()
#17 0xb7ff23cf in _dl_lookup_versioned_symbol () from /lib/ld-linux.so.2
Previous frame inner to this frame (corrupt stack?)
et dans strace :
open("/home/patate/Desktop/liberty.bmp", O_RDONLY) = 3
lseek(3, 0, SEEK_END) = 90054
lseek(3, 0, SEEK_SET) = 0
lseek(3, 0, SEEK_CUR) = 0
read(3, "BM306円_1円0円0円0円0円0006円0円0円0円(0円0円0円310円0円0円0円226円0円0円0円"..., 4096) = 4096
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Je ne comprends pas :'(
Any help is welcome
Merci