bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

POSSIBLE BUG in GCC/G++ 3.2 and cygwin 1.3.12???


From: Marcus Elderic Koenig
Subject: POSSIBLE BUG in GCC/G++ 3.2 and cygwin 1.3.12???
Date: Thu, 29 Aug 2002 17:00:25 +0200
User-agent: Xnews/5.04.25

I think I found a bug in gcc 3.2 and/or cygwin.

the following short program outputs a wrong set of bytes from the 
PNG image included into the zip file.

the output should read:

[ 137 80 78 71 13 10 26 10 ] dec
[ 89 50 4E 47 0D 0A 1A 0A ] hex

which is dec for the first 8 bytes of the PNG image.

on MY computer (where I have cygwin installed), the output is correct.
but if I copy the exe file, the PNG image and cygwin1.dll into a folder
and copy this onto another computer (one without cygwin installed),
I get:

[ 137 80 78 71 10 26 10 0 ] dec
[ 89 59 4E 47 0A 1A 0A 0 ] hex

which clearly differs in the last 4 bytes.

If I start the same exe on my comp, everything works fine.
I double checked the PNG image on the other computer to be correct,
so it's no copy corruption.

is this a known bug, or am I just dumb? :)

sourcecode available at: http://www.kompiler.de/gccbug.zip

sincerly,

   elderic

------------------------------------------------------------------------

cygwin dll: 1.3.12-cygwin-1-3-12-1

GCC details:

Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with: /netrel/src/gcc-3.2-1/configure --enable-
languages=c,c++,f77,ja
va --enable-libgcj --enable-threads=posix --with-system-zlib --enable-
nls --with
out-included-gettext --enable-interpreter --disable-sjlj-exceptions --
disable-ve
rsion-specific-runtime-libs --enable-shared --build=i686-pc-linux --
host=i686-pc
-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-
prefix=/usr
--sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --
libexecd
ir=/usr/sbin
Thread model: posix
gcc version 3.2 20020818 (prerelease)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]