CS2D General linux cd2d Segmentation fault linux cd2d Segmentation fault
6 replies oleg@localhost ~/Counter-Strike 2D $ ./CounterStrike2D
Graphics Mode Error:
640x480 at 32 bit does not work!
oleg@localhost ~/Counter-Strike 2D $ ./CounterStrike2D -win
Segmentation fault
OS info:
Linux localhost 2.6.30-gentoo-r6 #2 SMP PREEMPT Tue Sep 8 01:33:40 EEST 2009 i686 AMD Athlon(tm) XP 2200+ AuthenticAMD GNU/Linux
libstdc++v3 installed
/usr/lib/libstdc++.so.5 -> libstdc++.so.5.0.7
/usr/lib/libstdc++.so.5.0.7 That's odd. So your not running Ubuntu?
and truly i have no idea what a segmentation fault is.
I'm terribly sorry. i am not to skilled in the Linux OS although i had some time with it, i do know a little. DC Admin Offline
did you give CounterStrike2D the rights to actually run? chmod 777 DC Admin Offline
it's also possible that you didn't extract everything properly and/or that CS2D tries to access some resources which are not available.
these resources are either files or libraries. This is on Gentoo Linux and permission is good
-rwxr-xr-x 1 oleg oleg 2.1M Jun 14 07:45 CounterStrike2D
I think problem with reading of gfx/fonts/arial.ttf
strace show last open() call before segfault on
open("gfx/fonts/arial.ttf", O_RDONLY)
...
read(7, "\0\2\246\324\0\2\247\270\0\2\2518\0\2\252\272\0\2\253\272\0\2\254\316\0\2\256\22\0\2\256\"\0"..., 4096) = 4096
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++ Oh. That could be the problem. I guess that OS wont let any program run ttf files?