Your message dated Sat, 18 Dec 2004 20:21:42 +0100 with message-id <[EMAIL PROTECTED]> and subject line Bug#286239: gcc-3.3: I think sizeof(struct xxx) return wrong size has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------------------------------- Received: (at submit) by bugs.debian.org; 18 Dec 2004 18:01:14 +0000 >From [EMAIL PROTECTED] Sat Dec 18 10:01:14 2004 Return-path: <[EMAIL PROTECTED]> Received: from emta2.rdslink.ro (mta2.rdslink.ro) [193.231.236.63] by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1CfitF-0003fX-00; Sat, 18 Dec 2004 10:01:13 -0800 Received: (qmail 25830 invoked from network); 18 Dec 2004 17:58:29 -0000 Received: from unknown (HELO mail.rdslink.ro) (193.231.236.20) by emta2.rdslink.ro with SMTP; 18 Dec 2004 17:58:29 -0000 Received: (qmail 15008 invoked from network); 18 Dec 2004 18:00:41 -0000 Received: from unknown (HELO ?192.168.0.31?) (81.196.73.96) by mail.rdslink.ro with SMTP; 18 Dec 2004 18:00:41 -0000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: BogDan <[EMAIL PROTECTED]> To: Debian Bug Tracking System <[EMAIL PROTECTED]> Subject: gcc-3.3: I think sizeof(struct xxx) return wrong size Bcc: BogDan <[EMAIL PROTECTED]> X-Mailer: reportbug 3.4 Date: Sat, 18 Dec 2004 20:00:40 +0200 Message-Id: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2004_03_25 X-Spam-Level: Package: gcc-3.3 Version: 1:3.3.5-3 Severity: critical Justification: causes serious data loss try to compile and run this //------------------------------- #include <stdio.h> int main() { struct mesaj_primire { unsigned char xf; unsigned char cf; unsigned char nw; unsigned char nl; unsigned int posx; unsigned int posy; unsigned int state; unsigned char nwc; unsigned char nlc; unsigned char crc; unsigned short crc16; }; printf("%i\n",sizeof(mesaj_primire)); return 0; } //--------------------------------- #gcc test.cpp -lstdc++ -o test #./test 24 24!!!! and I think is 21 I try this on my ppc laptop and my x86 desktop and the result is the same (24) taipan:/# uname -a;gcc -v Linux taipan 2.6.8.1 #3 Wed Oct 27 18:29:21 EEST 2004 ppc GNU/Linux Reading specs from /usr/lib/gcc-lib/powerpc-linux/3.3.5/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc --disable-multilib powerpc-linux Thread model: posix gcc version 3.3.5 (Debian 1:3.3.5-3) taipan:/# [EMAIL PROTECTED]:/# uname -a;gcc -v Linux taipan 2.6.4 #1 SMP Sun Sep 19 19:28:30 EEST 2004 i686 GNU/Linux Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux Thread model: posix gcc version 3.3.5 (Debian 1:3.3.5-4) [EMAIL PROTECTED]:/# -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable') Architecture: powerpc (ppc) Kernel: Linux 2.6.8.1 Locale: LANG=ro_RO, LC_CTYPE=ro_RO (charmap=ISO-8859-2) Versions of packages gcc-3.3 depends on: ii binutils 2.15-5 The GNU assembler, linker and bina ii cpp-3.3 1:3.3.5-3 The GNU C preprocessor ii gcc-3.3-base 1:3.3.5-3 The GNU Compiler Collection (base ii libc6 2.3.2.ds1-19 GNU C Library: Shared libraries an ii libgcc1 1:3.4.3-4 GCC support library -- no debconf information --------------------------------------- Received: (at 286239-done) by bugs.debian.org; 18 Dec 2004 19:22:15 +0000 >From [EMAIL PROTECTED] Sat Dec 18 11:22:15 2004 Return-path: <[EMAIL PROTECTED]> Received: from fmmailgate05.web.de [217.72.192.243] by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1Cfk9e-0000qH-00; Sat, 18 Dec 2004 11:22:14 -0800 Received: by fmmailgate05.web.de (8.12.10/8.12.10/webde Linux 0.7) with SMTP id iBIJKujn018479 for [EMAIL PROTECTED]; Sat, 18 Dec 2004 20:21:43 +0100 Received: from [80.144.166.131] by freemailng5703.web.de with HTTP; Sat, 18 Dec 2004 20:21:42 +0100 Date: Sat, 18 Dec 2004 20:21:42 +0100 Message-Id: <[EMAIL PROTECTED]> MIME-Version: 1.0 From: "Falk Hueffner" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: Bug#286239: gcc-3.3: I think sizeof(struct xxx) return wrong size Precedence: fm-user X-WEBDE-Sender: <[EMAIL PROTECTED]> Organization: http://freemail.web.de/ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Delivered-To: [EMAIL PROTECTED] X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER autolearn=no version=2.60-bugs.debian.org_2004_03_25 X-Spam-Level: BogDan <[EMAIL PROTECTED]>, [EMAIL PROTECTED] schrieb am 18.12.04 19:22:37: > > Package: gcc-3.3 > Version: 1:3.3.5-3 > Severity: critical > Justification: causes serious data loss > > try to compile and run this > > //------------------------------- > #include <stdio.h> > > int main() > { > struct mesaj_primire > { > unsigned char xf; > unsigned char cf; > unsigned char nw; > unsigned char nl; > unsigned int posx; > unsigned int posy; > unsigned int state; > unsigned char nwc; > unsigned char nlc; > unsigned char crc; > unsigned short crc16; > }; > printf("%i\n",sizeof(mesaj_primire)); > return 0; > } > > //--------------------------------- > #gcc test.cpp -lstdc++ -o test > #./test > 24 > > 24!!!! and I think is 21 24 is correct; there needs to be padding to ensure alignment. Falk