I am trying to cross-compile DiVinE-MC
(http://divine.fi.muni.cz/page.php?page=divine-mc) into Win32 enviroment at
this moment. I am using Cmake to put the tool together and Mingw to compile it.
The preprocessed source is slightly bigger (1.9MB) but I can't see any way to
attach it anyway. I might try to make it smaller but since it is "buffer
overflow", I am afraid that size actually matters in this case. If it turns out
to be necessary to send it, I will try to find out how. So here it is:

Using built-in specs.
Target: i686-pc-mingw32
Configured with: ../configure --prefix=/usr --bindir=/usr/bin
--includedir=/usr/include --libdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --build=i686-pc-linux-gnu
--host=i686-pc-linux-gnu --target=i686-pc-mingw32 --with-gnu-as --with-gnu-ld
--verbose --without-newlib --disable-multilib --with-system-zlib --disable-nls
--without-included-gettext --disable-win32-registry
--enable-version-specific-runtime-libs
--with-sysroot=/usr/i686-pc-mingw32/sys-root --enable-languages=c,c++
Thread model: win32
gcc version 4.3.2 (GCC)

the compiler output:

[ 97%] Building CXX object tools/CMakeFiles/divine-mc.dir/divine-mc.obj
*** buffer overflow detected ***:
/usr/lib/gcc/i686-pc-mingw32/4.3.2/../../../../i686-pc-mingw32/bin/as
terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x48)[0x435ce8]
/lib/libc.so.6[0x433de0]
/lib/libc.so.6[0x4334d8]
/lib/libc.so.6(_IO_default_xsputn+0xc8)[0x3aae48]
/lib/libc.so.6(_IO_vfprintf+0x14dc)[0x37ec2c]
/lib/libc.so.6(__vsprintf_chk+0xa7)[0x433587]
/lib/libc.so.6(__sprintf_chk+0x2d)[0x4334cd]
/usr/lib/gcc/i686-pc-mingw32/4.3.2/../../../../i686-pc-mingw32/bin/as[0x808deab]
/usr/lib/gcc/i686-pc-mingw32/4.3.2/../../../../i686-pc-mingw32/bin/as[0x807e678]
/usr/lib/gcc/i686-pc-mingw32/4.3.2/../../../../i686-pc-mingw32/bin/as[0x805ac27]
/usr/lib/gcc/i686-pc-mingw32/4.3.2/../../../../i686-pc-mingw32/bin/as[0x804bee3]
/usr/lib/gcc/i686-pc-mingw32/4.3.2/../../../../i686-pc-mingw32/bin/as[0x80ddb55]
/usr/lib/gcc/i686-pc-mingw32/4.3.2/../../../../i686-pc-mingw32/bin/as[0x80ddbf1]
/usr/lib/gcc/i686-pc-mingw32/4.3.2/../../../../i686-pc-mingw32/bin/as[0x804bd40]
/lib/libc.so.6(__libc_start_main+0xe6)[0x3555d6]
/usr/lib/gcc/i686-pc-mingw32/4.3.2/../../../../i686-pc-mingw32/bin/as[0x8049521]
======= Memory map: ========
00110000-00111000 r-xp 00110000 00:00 0          [vdso]
002bc000-002c9000 r-xp 00000000 08:06 3597572   
/lib/libgcc_s-4.3.0-20080428.so.1
002c9000-002ca000 rw-p 0000c000 08:06 3597572   
/lib/libgcc_s-4.3.0-20080428.so.1
0031f000-0033b000 r-xp 00000000 08:06 3597547    /lib/ld-2.8.so
0033b000-0033c000 r--p 0001c000 08:06 3597547    /lib/ld-2.8.so
0033c000-0033d000 rw-p 0001d000 08:06 3597547    /lib/ld-2.8.so
0033f000-004a2000 r-xp 00000000 08:06 3597548    /lib/libc-2.8.so
004a2000-004a4000 r--p 00163000 08:06 3597548    /lib/libc-2.8.so
004a4000-004a5000 rw-p 00165000 08:06 3597548    /lib/libc-2.8.so
004a5000-004a8000 rw-p 004a5000 00:00 0 
08048000-0811e000 r-xp 00000000 08:06 475462     /usr/i686-pc-mingw32/bin/as
0811e000-08120000 rw-p 000d5000 08:06 475462     /usr/i686-pc-mingw32/bin/as
08120000-0812d000 rw-p 08120000 00:00 0 
09eb1000-0d7f5000 rw-p 09eb1000 00:00 0          [heap]
b7f0c000-b80d5000 rw-p b7f0c000 00:00 0 
b80e9000-b80ea000 rw-p b80e9000 00:00 0 
bf9d4000-bf9e9000 rw-p bffeb000 00:00 0          [stack]
i686-pc-mingw32-g++: Internal error: Aborted (program as)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

the command line:

/usr/bin/i686-pc-mingw32-g++      -I/home/hydergine/divine-mc-1.3
-I/home/hydergine/divine-mc-1.3/_build
-I/home/hydergine/divine-mc-1.3/divine/legacy   -O2 -DNDEBUG
-fomit-frame-pointer -save-temps CMakeFiles/divine-mc.dir/divine-mc.obj  -o
divine-mc.exe -Wl,--out-implib,libdivine-mc.dll.a
-Wl,--major-image-version,0,--minor-image-version,0  ../divine/libdivine.a
../wibble/libwibble.a -lregex -lwsock32


-- 
           Summary: buffer overflow detected while building a to be cross-
                    compiled application
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hydergine at seznam dot cz
 GCC build triplet: --build=i686-pc-linux-gnu
  GCC host triplet: --host=i686-pc-linux-gnu
GCC target triplet: --target=i686-pc-mingw32


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38317

Reply via email to