Segmentation fault on startup (0.0.8 pre release)
Posted: 26 Sep 2004, 17:18
It compile without problens but I get "Segmentation fault" on game startup
Code: Select all
dknight@thiago:/usr/src/tmw$ make
g++ -Wall -march=i686 -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funroll-loops -fexceptions -c -o src/graphic/graphic.o src/graphic/graphic.cpp
src/graphic/graphic.cpp: In function `void do_graphic()':
src/graphic/graphic.cpp:140: warning: comparison is always true due to limited
range of data type
src/graphic/graphic.cpp:167: warning: statement with no effect
g++ -Wall -march=i686 -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funroll-loops -fexceptions -c -o src/gui/chat.o src/gui/chat.cpp
g++ -Wall -march=i686 -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funroll-loops -fexceptions -c -o src/gui/skill.o src/gui/skill.cpp
g++ -Wall -march=i686 -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funroll-loops -fexceptions -c -o src/gui/gui.o src/gui/gui.cpp
g++ -Wall -march=i686 -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funroll-loops -fexceptions -c -o src/gui/login.o src/gui/login.cpp
g++ -Wall -march=i686 -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funroll-loops -fexceptions -c -o src/gui/char_server.o src/gui/char_server.cpp
g++ -Wall -march=i686 -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funroll-loops -fexceptions -c -o src/gui/char_select.o src/gui/char_select.cpp
g++ -Wall -march=i686 -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funroll-loops -fexceptions -c -o src/gui/inventory.o src/gui/inventory.cpp
src/gui/inventory.cpp:249:2: warning: no newline at end of file
src/gui/inventory.cpp: In member function `int TmwInventory::addItem(int, int)
':
src/gui/inventory.cpp:182: warning: `int tempii' might be used uninitialized in
this function
g++ -Wall -march=i686 -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funroll-loops -fexceptions -c -o src/net/network.o src/net/network.cpp
g++ -Wall -march=i686 -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funroll-loops -fexceptions -c -o src/net/protocol.o src/net/protocol.cpp
g++ -Wall -march=i686 -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funroll-loops -fexceptions -c -o src/being.o src/being.cpp
g++ -Wall -march=i686 -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funroll-loops -fexceptions -c -o src/game.o src/game.cpp
g++ -Wall -march=i686 -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funroll-loops -fexceptions -c -o src/main.o src/main.cpp
g++ -Wall -march=i686 -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funroll-loops -fexceptions -c -o src/map.o src/map.cpp
src/map.cpp: In function `short unsigned int get_tile(short int, short int,
char)':
src/map.cpp:108: warning: `short unsigned int id' might be used uninitialized
in this function
g++ -Wall -march=i686 -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funroll-loops -fexceptions -c -o src/log.o src/log.cpp
g++ -Wall -march=i686 -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funroll-loops -fexceptions -c -o src/astar.o src/astar.cpp
g++ -o tmw src/sound/sound.o src/graphic/super_eagle.o src/graphic/graphic.o src/gui/chat.o src/gui/skill.o src/gui/gui.o src/gui/login.o src/gui/char_server.o src/gui/char_select.o src/gui/inventory.o src/net/network.o src/net/protocol.o src/being.o src/game.o src/main.o src/map.o src/log.o src/astar.o -ljgmod `allegro-config --libs release` -lalfont
-
-
TYPE ./tmw TO LAUCH THE GAME
dknight@thiago:/usr/src/tmw$ ./tmw
allegro: trying video driver X-Windows
Shutting down Allegro due to signal #11
Segmentation fault
dknight@thiago:/usr/src/tmw$