View Issue Details

IDProjectCategoryView StatusLast Update
0002127FSSCPPlatform-Engine interactionpublic2010-02-14 22:26
ReporterZak Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.6.10 
Summary0002127: Buffer overflow on startup on Linux AMD64
DescriptionThis was compiled on Linux 2.6.31 AMD64 with GCC 4.4.1 on a Core2 Duo T9600 with the following commands:

./autogen.sh
make

then the resulting fs2_open_r binary was copied to a Freespace2 directory on an NTFS partition that had previously been installed and updated to FS2-open on 32-bit Windows 7. I've included a backtrace.

I'm marking this as Platform-Engine interaction, but I'm not sure that's the right category.
Additional Information*** buffer overflow detected ***: ./fs2_open_r terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7f5b0add0647]
/lib/libc.so.6[0x7f5b0adcf5f0]
/lib/libc.so.6[0x7f5b0adce4a7]
./fs2_open_r[0x5a4160]
./fs2_open_r[0x5a6786]
./fs2_open_r[0x5a6936]
./fs2_open_r[0x5a6b28]
./fs2_open_r[0x40ff9e]
./fs2_open_r[0x410135]
./fs2_open_r[0x4102e8]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f5b0acf7abd]
./fs2_open_r[0x4092c9]
======= Memory map: ========
00400000-006f9000 r-xp 00000000 08:07 3116 /media/CAE8ABA3E8AB8BEF/Games/FreeSpace2/fs2_open_r
008f9000-008fa000 r--p 002f9000 08:07 3116 /media/CAE8ABA3E8AB8BEF/Games/FreeSpace2/fs2_open_r
008fa000-0091c000 rw-p 002fa000 08:07 3116 /media/CAE8ABA3E8AB8BEF/Games/FreeSpace2/fs2_open_r
0091c000-017f6000 rw-p 00000000 00:00 0
032ea000-03b9d000 rw-p 00000000 00:00 0 [heap]
7f5b02aac000-7f5b02c2d000 rw-p 00000000 00:00 0
7f5b02c2d000-7f5b02d2d000 rw-s 00725000 00:0f 5132 /dev/ati/card0
7f5b02d2d000-7f5b02f2d000 rw-s 00724000 00:0f 5132 /dev/ati/card0
7f5b02f2d000-7f5b02fe8000 rw-p 00000000 00:00 0
7f5b02fe8000-7f5b02fea000 r-xp 00000000 08:05 5409 /usr/lib/libXinerama.so.1.0.0
7f5b02fea000-7f5b031e9000 ---p 00002000 08:05 5409 /usr/lib/libXinerama.so.1.0.0
7f5b031e9000-7f5b031ea000 rw-p 00001000 08:05 5409 /usr/lib/libXinerama.so.1.0.0
7f5b031ea000-7f5b03214000 r-xp 00000000 08:05 51808 /usr/lib/libatiadlxx.so
7f5b03214000-7f5b03314000 ---p 0002a000 08:05 51808 /usr/lib/libatiadlxx.so
7f5b03314000-7f5b0331a000 rw-p 0002a000 08:05 51808 /usr/lib/libatiadlxx.so
7f5b0333b000-7f5b0333d000 rw-s 00710000 00:0f 5132 /dev/ati/card0
7f5b0333d000-7f5b03a3d000 rw-s 00006000 00:0f 5132 /dev/ati/card0
7f5b03a3d000-7f5b03a3e000 rw-s 00005000 00:0f 5132 /dev/ati/card0
7f5b03a3e000-7f5b03a4e000 rw-s cfff0000 00:0f 5132 /dev/ati/card0
7f5b03a4e000-7f5b03a50000 rw-s 00002000 00:0f 5132 /dev/ati/card0
7f5b03a50000-7f5b03ab9000 rwxp 00000000 00:00 0
7f5b03ab9000-7f5b0500c000 r-xp 00000000 08:05 160619 /usr/lib/dri/fglrx_dri.so
7f5b0500c000-7f5b0510c000 ---p 01553000 08:05 160619 /usr/lib/dri/fglrx_dri.so
7f5b0510c000-7f5b051f4000 rwxp 01553000 08:05 160619 /usr/lib/dri/fglrx_dri.so
7f5b051f4000-7f5b052cd000 rwxp 00000000 00:00 0
7f5b052cd000-7f5b052d2000 r-xp 00000000 08:05 5401 /usr/lib/libXfixes.so.3.1.0
7f5b052d2000-7f5b054d1000 ---p 00005000 08:05 5401 /usr/lib/libXfixes.so.3.1.0
7f5b054d1000-7f5b054d2000 r--p 00004000 08:05 5401 /usr/lib/libXfixes.so.3.1.0
7f5b054d2000-7f5b054d3000 rw-p 00005000 08:05 5401 /usr/lib/libXfixes.so.3.1.0
7f5b054d3000-7f5b054dc000 r-xp 00000000 08:05 5421 /usr/lib/libXrender.so.1.3.0
7f5b054dc000-7f5b056db000 ---p 00009000 08:05 5421 /usr/lib/libXrender.so.1.3.0
7f5b056db000-7f5b056dc000 r--p 00008000 08:05 5421 /usr/lib/libXrender.so.1.3.0
7f5b056dc000-7f5b056dd000 rw-p 00009000 08:05 5421 /usr/lib/libXrender.so.1.3.0
7f5b056dd000-7f5b056e6000 r-xp 00000000 08:05 5393 /usr/lib/libXcursor.so.1.0.2
7f5b056e6000-7f5b058e5000 ---p 00009000 08:05 5393 /usr/lib/libXcursor.so.1.0.2
7f5b058e5000-7f5b058e6000 r--p 00008000 08:05 5393 /usr/lib/libXcursor.so.1.0.2
7f5b058e6000-7f5b058e7000 rw-p 00009000 08:05 5393 /usr/lib/libXcursor.so.1.0.2
7f5b058e7000-7f5b058e8000 ---p 00000000 00:00 0
7f5b058e8000-7f5b060e8000 rw-p 00000000 00:00 0
7f5b060e8000-7f5b060e9000 ---p 00000000 00:00 0
7f5b060e9000-7f5b068e9000 rw-p 00000000 00:00 0
7f5b068e9000-7f5b068ed000 r-xp 00000000 08:05 65262 /usr/lib/alsa-lib/libasound_module_rate_speexrate.so
7f5b068ed000-7f5b06aec000 ---p 00004000 08:05 65262 /usr/lib/alsa-lib/libasound_module_rate_speexrate.so
7f5b06aec000-7f5b06aed000 r--p 00003000 08:05 65262 /usr/lib/alsa-lib/libasound_module_rate_speexrate.so
7f5b06aed000-7f5b06aee000 rw-p 00004000 08:05 65262 /usr/lib/alsa-lib/libasound_module_rate_speexrate.so
7f5b06aee000-7f5b06afa000 r-xp 00000000 08:05 4166 /lib/libnss_files-2.10.1.so
7f5b06afa000-7f5b06cf9000 ---p 0000c000 08:05 4166 /lib/libnss_files-2.10.1.so
7f5b06cf9000-7f5b06cfa000 r--p 0000b000 08:05 4166 /lib/libnss_files-2.10.1.so
7f5b06cfa000-7f5b06cfb000 rw-p 0000c000 08:05 4166 /lib/libnss_files-2.10.1.so
7f5b06cfb000-7f5b06d05000 r-xp 00000000 08:05 4185 /lib/libnss_nis-2.10.1.so
7f5b06d05000-7f5b06f04000 ---p 0000a000 08:05 4185 /lib/libnss_nis-2.10.1.so
7f5b06f04000-7f5b06f05000 r--p 00009000 08:05 4185 /lib/libnss_nis-2.10.1.so
7f5b06f05000-7f5b06f06000 rw-p 0000a000 08:05 4185 /lib/libnss_nis-2.10.1.so
7f5b06f06000-7f5b06f0d000 r-xp 00000000 08:05 4137 /lib/libnss_compat-2.10.1.so
7f5b06f0d000-7f5b0710d000 ---p 00007000 08:05 4137 /lib/libnss_compat-2.10.1.so
7f5b0710d000-7f5b0710e000 r--p 00007000 08:05 4137 /lib/libnss_compat-2.10.1.so
7f5b0710e000-7f5b0710f000 rw-p 00008000 08:05 4137 /lib/libnss_compat-2.10.1.so
7f5b0710f000-7f5b07133000 r-xp 00000000 08:05 6203 /usr/lib/libportaudio.so.2.0.0
7f5b07133000-7f5b07333000 ---p 00024000 08:05 6203 /usr/lib/libportaudio.so.2.0.0
7f5b07333000-7f5b07334000 r--p 00024000 08:05 6203 /usr/lib/libportaudio.so.2.0.0
7f5b07334000-7f5b07335000 rw-p 00025000 08:05 6203 /usr/lib/libportaudio.so.2.0.0
7f5b07335000-7f5b07336000 rw-p 00000000 00:00 0
7f5b07336000-7f5b07350000 r-xp 00000000 08:05 6375 /usr/lib/libvorbisenc.so.2.0.3
7f5b07350000-7f5b0754f000 ---p 0001a000 08:05 6375 /usr/lib/libvorbisenc.so.2.0.3
7f5b0754f000-7f5b07550000 r--p 00019000 08:05 6375 /usr/lib/libvorbisenc.so.2.0.3Aborted
TagsNo tags attached.

Activities

The_E

2010-02-14 22:24

administrator   ~0011673

Please post this on HLP, either in cross-platform development (http://www.hard-light.net/forums/index.php?board=113.0) or the support board (http://www.hard-light.net/forums/index.php?board=151.0).

Issue History

Date Modified Username Field Change
2010-02-14 21:56 Zak New Issue
2010-02-14 22:24 The_E Note Added: 0011673
2010-02-14 22:26 Zacam Status new => closed
2010-02-14 22:26 Zacam Resolution open => fixed