[Bug 1889138] [NEW] procenv is FTBFS in Groovy

Launchpad Bug Tracker 1889138 at bugs.launchpad.net
Mon Aug 10 13:13:37 UTC 2020


You have been subscribed to a public bug by Lukas Märdian (slyon):

[Impact]

procenv is currently FTBFS on Ubuntu 20.10 Groovy Gorilla with GCC 10
version (Ubuntu 10.2.0-3ubuntu1) 10.2.0.

Details:

```
gcc -DHAVE_CONFIG_H -I. -I..  -I . -I ./platform  -I ./platform/linux -D PROCENV_PLATFORM_LINUX          -pedantic -std=gnu99 -Wall -Wunused -fstack-protector -Wformat  -fdata-sections -ffunction-sections -Werror -g -O2 -MT platform/linux/procenv-platform.o -MD -MP -MF platform/linux/.deps/procenv-platform.Tpo -c -o platform/linux/procenv-platform.o `test -f 'platform/linux/platform.c' || echo './'`platform/linux/platform.c
platform/linux/platform.c: In function ‘handle_proc_branch_linux’:
platform/linux/platform.c:1266:21: error: ‘%s’ directive writing up to 1017 bytes into a region of size 16 [-Werror=format-overflow=]
 1265 |     p += 1+strlen ("Name:"); /* jump over tab char */
      |     ~~~~~~~~~~~~~~~~~~~~~~~
 1266 |     sprintf (name, "%s", p);
      |                     ^~
In file included from /usr/include/stdio.h:867,
                 from ./platform.h:22,
                 from platform/linux/platform-linux.h:25,
                 from platform/linux/platform.c:19:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 1 and 1018 bytes into a destination of size 16
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
platform/linux/platform.c:1271:21: error: ‘%s’ directive writing up to 1017 bytes into a region of size 16 [-Werror=format-overflow=]
 1270 |     p += 1+strlen ("PPid:"); /* jump over tab char */
      |     ~~~~~~~~~~~~~~~~~~~~~~~
 1271 |     sprintf (ppid, "%s", p);
      |                     ^~
In file included from /usr/include/stdio.h:867,
                 from ./platform.h:22,
                 from platform/linux/platform-linux.h:25,
                 from platform/linux/platform.c:19:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 1 and 1018 bytes into a destination of size 16
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

```

Builds fine with GCC 9 in Ubuntu 20.04, seems GCC 10 changed the behaviour of
-Werror=format-overflow.

Upstream Issue:

https://github.com/jamesodhunt/procenv/issues/15

** Affects: procenv (Ubuntu)
     Importance: Undecided
     Assignee: Lukas Märdian (slyon)
         Status: New

** Affects: procenv (Ubuntu Groovy)
     Importance: Undecided
     Assignee: Lukas Märdian (slyon)
         Status: New

** Affects: procenv (Debian)
     Importance: Unknown
         Status: Unknown


** Tags: ftbfs groovy
-- 
procenv is FTBFS in Groovy
https://bugs.launchpad.net/bugs/1889138
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list