2
« on: February 09, 2011, 01:23:29 pm »
Edit: I found the problem - I'd been trying to run it in a 64-bit version of Ubuntu, which doesn't seem to work. As soon as I switched over to a 32-bit version, everything worked fine.
I checked out a copy of the code from SVN, and noticed that there are two files on how to build/install LCS (INSTALL and LINUX_README.txt) - as far as I can tell, INSTALL is a auto-generated file, whereas LINUX_README.txt contains the correct instructions. I followed the instructions in LINUX_README.txt
bootstrap
./configure
makebut when I tried to run crimesquad, it shows the following errors:
*** buffer overflow detected ***: src/crimesquad terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7f535cdd7537]
/lib/libc.so.6(+0xfe3f0)[0x7f535cdd63f0]
/lib/libc.so.6(__fread_chk+0x15b)[0x7f535cdd6bcb]
src/crimesquad[0x42f30b]
src/crimesquad[0x405ab3]
/lib/libc.so.6(__libc_start_main+0xfe)[0x7f535ccf6d8e]
src/crimesquad[0x4039a9]
======= Memory map: ========
00400000-00573000 r-xp 00000000 08:01 29493 /home/ben/lcsgame/trunk/src/crimesquad
00772000-00773000 r--p 00172000 08:01 29493 /home/ben/lcsgame/trunk/src/crimesquad
00773000-00775000 rw-p 00173000 08:01 29493 /home/ben/lcsgame/trunk/src/crimesquad
00775000-00f6c000 rw-p 00000000 00:00 0
0268f000-026d0000 rw-p 00000000 00:00 0 [heap]
7f535cad4000-7f535cad6000 r-xp 00000000 08:01 152244 /lib/libdl-2.12.1.so
7f535cad6000-7f535ccd6000 ---p 00002000 08:01 152244 /lib/libdl-2.12.1.so
7f535ccd6000-7f535ccd7000 r--p 00002000 08:01 152244 /lib/libdl-2.12.1.so
7f535ccd7000-7f535ccd8000 rw-p 00003000 08:01 152244 /lib/libdl-2.12.1.so
7f535ccd8000-7f535ce52000 r-xp 00000000 08:01 152237 /lib/libc-2.12.1.so
7f535ce52000-7f535d051000 ---p 0017a000 08:01 152237 /lib/libc-2.12.1.so
7f535d051000-7f535d055000 r--p 00179000 08:01 152237 /lib/libc-2.12.1.so
7f535d055000-7f535d056000 rw-p 0017d000 08:01 152237 /lib/libc-2.12.1.so
7f535d056000-7f535d05b000 rw-p 00000000 00:00 0
7f535d05b000-7f535d070000 r-xp 00000000 08:01 129877 /lib/libgcc_s.so.1
7f535d070000-7f535d26f000 ---p 00015000 08:01 129877 /lib/libgcc_s.so.1
7f535d26f000-7f535d270000 r--p 00014000 08:01 129877 /lib/libgcc_s.so.1
7f535d270000-7f535d271000 rw-p 00015000 08:01 129877 /lib/libgcc_s.so.1
7f535d271000-7f535d2f3000 r-xp 00000000 08:01 152245 /lib/libm-2.12.1.so
7f535d2f3000-7f535d4f2000 ---p 00082000 08:01 152245 /lib/libm-2.12.1.so
7f535d4f2000-7f535d4f3000 r--p 00081000 08:01 152245 /lib/libm-2.12.1.so
7f535d4f3000-7f535d4f4000 rw-p 00082000 08:01 152245 /lib/libm-2.12.1.so
7f535d4f4000-7f535d5dc000 r-xp 00000000 08:01 395994 /usr/lib/libstdc++.so.6.0.14
7f535d5dc000-7f535d7db000 ---p 000e8000 08:01 395994 /usr/lib/libstdc++.so.6.0.14
7f535d7db000-7f535d7e3000 r--p 000e7000 08:01 395994 /usr/lib/libstdc++.so.6.0.14
7f535d7e3000-7f535d7e5000 rw-p 000ef000 08:01 395994 /usr/lib/libstdc++.so.6.0.14
7f535d7e5000-7f535d7fa000 rw-p 00000000 00:00 0
7f535d7fa000-7f535d83a000 r-xp 00000000 08:01 129896 /lib/libncurses.so.5.7
7f535d83a000-7f535da39000 ---p 00040000 08:01 129896 /lib/libncurses.so.5.7
7f535da39000-7f535da3d000 r--p 0003f000 08:01 129896 /lib/libncurses.so.5.7
7f535da3d000-7f535da3e000 rw-p 00043000 08:01 129896 /lib/libncurses.so.5.7
7f535da3e000-7f535da5e000 r-xp 00000000 08:01 145652 /lib/ld-2.12.1.so
7f535dc3d000-7f535dc43000 rw-p 00000000 00:00 0
7f535dc5b000-7f535dc5e000 rw-p 00000000 00:00 0
7f535dc5e000-7f535dc5f000 r--p 00020000 08:01 145652 /lib/ld-2.12.1.so
7f535dc5f000-7f535dc60000 rw-p 00021000 08:01 145652 /lib/ld-2.12.1.so
7f535dc60000-7f535dc61000 rw-p 00000000 00:00 0
7fff2c2bc000-7fff2c2dd000 rw-p 00000000 00:00 0 [stack]
7fff2c3ff000-7fff2c400000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted
Has anyone come across this problem before? Are there any prerequisites that I could be missing? I'm trying to build on Ubuntu 10.10 running in a VM. Thanks