[Bug 1889138] Re: procenv is FTBFS in Groovy
Lukas Märdian
1889138 at bugs.launchpad.net
Tue Aug 11 08:48:29 UTC 2020
** Changed in: procenv (Ubuntu Groovy)
Assignee: Lukas Märdian (slyon) => (unassigned)
** Changed in: procenv (Ubuntu Groovy)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1889138
Title:
procenv is FTBFS in Groovy
Status in procenv package in Ubuntu:
Confirmed
Status in procenv source package in Groovy:
Confirmed
Status in procenv package in Debian:
Unknown
Bug description:
[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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/procenv/+bug/1889138/+subscriptions
More information about the Ubuntu-sponsors
mailing list