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

Bug#1054891: marked as done (gcc-12: sizeof() error in called function)



Your message dated Sat, 28 Oct 2023 13:28:37 +0200
with message-id <[🔎] b86a0244-3cca-4a2c-916a-c0481dec3329@debian.org>
and subject line Re: Bug#1054891: gcc-12: sizeof() error in called function
has caused the Debian Bug report #1054891,
regarding gcc-12: sizeof() error in called function
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1054891: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1054891
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: gcc-12
Version: 12.2.0-14+rpi1
Severity: normal
X-Debbugs-Cc: rmorgan@web.de

Dear Maintainer,

Following code:

#include <stdio.h>

char myBuf[] = { '\x01', '\x04', '\x31', '\x00', '\x00', '\x1D', '\x7E', '\xF7' };

void process_buffer (char *);

int main (int argc, char **argv) {
    printf ("sizeof (myBuf) = %d\n", sizeof (myBuf));

    process_buffer (myBuf);
}

void process_buffer (char *bufPtr) {
    printf ("sizeof (bufPtr) = %d\n", sizeof (bufPtr));
}

produces following output:

sizeof (myBuf) = 8
sizeof (bufPtr) = 4

expected output (confirmed on Oracle Linux 8.4):

sizeof (myBuf) = 8
sizeof (bufPtr) = 8



-- System Information:
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm
Architecture: armv6l

Kernel: Linux 6.1.0-rpi4-rpi-v6 (UP)
Kernel taint flags: TAINT_CRAP
Locale: LANG=en_NZ, LC_CTYPE=en_NZ (charmap=ISO-8859-1) (ignored: LC_ALL set to en_NZ), LANGUAGE=en_NZ
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gcc-12 depends on:
ii  binutils       2.40-2+rpi2
ii  cpp-12         12.2.0-14+rpi1
ii  gcc-12-base    12.2.0-14+rpi1
ii  libc6          2.36-9+rpt2+deb12u3
ii  libcc1-0       12.2.0-14+rpi1
ii  libgcc-12-dev  12.2.0-14+rpi1
ii  libgcc-s1      12.2.0-14+rpi1
ii  libgmp10       2:6.2.1+dfsg1-1.1
ii  libisl23       0.25-1
ii  libmpc3        1.3.1-1
ii  libmpfr6       4.2.0-1
ii  libstdc++6     12.2.0-14+rpi1
ii  libzstd1       1.5.4+dfsg2-5
ii  zlib1g         1:1.2.13.dfsg-1

Versions of packages gcc-12 recommends:
ii  libc6-dev  2.36-9+rpt2+deb12u3

Versions of packages gcc-12 suggests:
pn  gcc-12-doc      <none>
pn  gcc-12-locales  <none>

-- no debconf information

--- End Message ---
--- Begin Message --- Please report this, where you downloaded that package versions, closing here in Debian.


On 28.10.23 08:57, rhys wrote:
Package: gcc-12
Version: 12.2.0-14+rpi1
Severity: normal
X-Debbugs-Cc: rmorgan@web.de

Dear Maintainer,

Following code:

#include <stdio.h>

char myBuf[] = { '\x01', '\x04', '\x31', '\x00', '\x00', '\x1D', '\x7E', '\xF7' };

void process_buffer (char *);

int main (int argc, char **argv) {
     printf ("sizeof (myBuf) = %d\n", sizeof (myBuf));

     process_buffer (myBuf);
}

void process_buffer (char *bufPtr) {
     printf ("sizeof (bufPtr) = %d\n", sizeof (bufPtr));
}

produces following output:

sizeof (myBuf) = 8
sizeof (bufPtr) = 4

expected output (confirmed on Oracle Linux 8.4):

sizeof (myBuf) = 8
sizeof (bufPtr) = 8



-- System Information:
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm
Architecture: armv6l

--- End Message ---

Reply to: