FTBFS: nss for groovy ftbfs due to erroneous nonnull check arising from glibc getcwd() annotation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nss (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
As per the archive test rebuild done recently by doko, nss FTBFS due to a compiler warning raised by gcc-10 (and this fails the build due to the use of -Werror in CFLAGS):
https:/
nsinstall.c: In function ‘main’:
nsinstall.c:70:16: error: argument 1 is null but the corresponding size argument 2 value is 4096 [-Werror=nonnull]
70 | #define GETCWD getcwd
| ^
nsinstall.c:239:8: note: in expansion of macro ‘GETCWD’
239 | cwd = GETCWD(0, PATH_MAX);
| ^~~~~~
In file included from nsinstall.c:20:
/usr/include/
520 | extern char *getcwd (char *__buf, size_t __size) __THROW __wur
| ^~~~~~
nsinstall.c:70:16: error: argument 1 is null but the corresponding size argument 2 value is 4096 [-Werror=nonnull]
70 | #define GETCWD getcwd
| ^
nsinstall.c:246:13: note: in expansion of macro ‘GETCWD’
246 | todir = GETCWD(0, PATH_MAX);
| ^~~~~~
In file included from nsinstall.c:20:
/usr/include/
520 | extern char *getcwd (char *__buf, size_t __size) __THROW __wur
| ^~~~~~
cc1: all warnings being treated as errors
According to the upstream bug report at https:/
Changed in nss (Ubuntu): | |
status: | New → Fix Committed |
Changed in nss (Ubuntu): | |
importance: | Undecided → High |
See attached for a debdiff (note this uses ubuntu3 instead of ubuntu2 since I already burned that version in the security-proposed PPA whilst preparing this)