Bug#990199: Please delete

2021-06-27 Thread Rick Stanley
Please delete this report completely.

Thank you!



Bug#990199: Missing information

2021-06-22 Thread Rick Stanley
-std=c99, c11, c18 compiles but reports:
"warning: implicit declaration of function ‘popen’; did you mean
‘fopen’? [-Wimplicit-function-declaration]"

-- 
RSI (Rick Stanley, Inc.)
(917) 822-7771
www.rsiny.com
Computer Systems Consulting
Linux & Open Source Specialists



Bug#990199: Missing information

2021-06-22 Thread Rick Stanley
Warning incorrectly reported:
"warning: implicit declaration of function ‘popen’; did you mean
‘fopen’? [-Wimplicit-function-declaration]"



Bug#990199: gcc: Icorrect warning report "implicit declaration of function ‘popen’"

2021-06-22 Thread Rick Stanley
Package: gcc
Version: 4:10.2.1-1
Severity: normal
X-Debbugs-Cc: r...@scotsgeek.com

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
#include 

int main(void)
{
   popen("ls -la", "r");

   return 0;
}

-std=c89, c90, compiles cleanly
-std=c99, c11, c18 compiles but reports:
   * What exactly did you do (or not do) that was effective (or
 ineffective)?
change of -std option causes or prevents this warning
   * What was the outcome of this action?
   * What outcome did you expect instead?
No warning should be reported with any -std option.  declaration found in 
stdio.h, and function linked


*** End of the template - remove these template lines ***


-- System Information:
Debian Release: 11.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-7-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gcc depends on:
ii  cpp 4:10.2.1-1
ii  gcc-10  10.2.1-6

Versions of packages gcc recommends:
ii  libc6-dev [libc-dev]  2.31-12

Versions of packages gcc suggests:
pn  autoconf   
pn  automake   
pn  bison  
pn  flex   
pn  gcc-doc
pn  gcc-multilib   
ii  gdb-minimal [gdb]  10.1-1.7
pn  libtool
ii  make   4.3-4.1
ii  manpages-dev   5.10-1

-- no debconf information



Bug#966194: Cancel report!

2020-07-25 Thread Rick Stanley
Please cancel and delete this entire report.  This was a valgrind
issue.

Sorry for bothering you.

Thank you!

Rick Stanley

-- 
RSI (Rick Stanley, Inc.)
(917) 822-7771
www.rsiny.com
Computer Systems Consulting
Linux & Open Source Specialists



Bug#966194: Wrong code in the report

2020-07-24 Thread Rick Stanley
Correct code that created the error message in valgrind:

#include 
#include 
#include 

#define DIM 32

int main(void)
{
   char *p = NULL;

   p = malloc(DIM);

   if(p == NULL)
   {
  printf("Allocation error.\n");
  exit(1);
   }

   strcpy(p, "This is a test.");

   for(int x = 0 ; x < DIM; ++x)
   {
  printf("%02x ",  p[x]);
   }
   putchar('\n');

   free(p);

   return 0;
}



Bug#966194: gcc-9: valgrind error: Conditional jump or move depends on uninitialised value(s)

2020-07-24 Thread Rick Stanley
Package: gcc-9
Version: 9.3.0-15
Severity: important
X-Debbugs-Cc: r...@scotsgeek.com

Dear Maintainer,

Source:
#include 
#include 

#define DIM 32

char p[DIM] = "NULL";

int main(void)
{
   strcpy(p, "This is a test.");

   for(int x = 0 ; x < DIM; ++x)
   {
  printf("%02x ",  p[x]);
   }
   putchar('\n');

   return 0;
}

valgrind output:
==16291== Use of uninitialised value of size 8
==16291==at 0x48B4E5A: _itoa_word (_itoa.c:180)
==16291==by 0x48CE753: __vfprintf_internal (vfprintf-internal.c:1687)
==16291==by 0x48BAD6A: printf (printf.c:33)
==16291==by 0x10920D: main (ptest.c:33)
==16291==
==16291== Conditional jump or move depends on uninitialised value(s)
==16291==at 0x48B4E6C: _itoa_word (_itoa.c:180)
==16291==by 0x48CE753: __vfprintf_internal (vfprintf-internal.c:1687)
==16291==by 0x48BAD6A: printf (printf.c:33)
==16291==by 0x10920D: main (ptest.c:33)
==16291==
...
==16291== ERROR SUMMARY: 64 errors from 4 contexts (suppressed: 0 from 0)

Error only occurs with heap allocation, not with global or local arrays.

Error did not occur with previous versions of gcc.  Compilation command has not 
changed.
"gcc -std=c18 -Wall -Wextra -Wpedantic -g -I . -o ptest ptest.c"

Error should not occur with the code posted here.

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.7.0-1-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gcc-9 depends on:
ii  binutils  2.34.90.20200706-1
ii  cpp-9 9.3.0-15
ii  gcc-9-base9.3.0-15
ii  libc6 2.31-1
ii  libcc1-0  10.1.0-6
ii  libgcc-9-dev  9.3.0-15
ii  libgcc-s1 10.1.0-6
ii  libgmp10  2:6.2.0+dfsg-6
ii  libisl22  0.22.1-1
ii  libmpc3   1.1.0-1
ii  libmpfr6  4.0.2-1
ii  libstdc++610.1.0-6
ii  zlib1g1:1.2.11.dfsg-2

Versions of packages gcc-9 recommends:
ii  libc6-dev  2.31-1

Versions of packages gcc-9 suggests:
pn  gcc-9-doc   
pn  gcc-9-locales   
pn  gcc-9-multilib  

-- no debconf information