Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.rc > #283694 > unrolled thread

Bug#966893: kvmtool: FTBFS: string_fortified.h:34:10: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]

Started byLucas Nussbaum <lucas@debian.org>
First post2020-08-03 10:30 +0200
Last post2020-08-03 10:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.debian.bugs.rc


Contents

  Bug#966893: kvmtool: FTBFS: string_fortified.h:34:10: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] Lucas Nussbaum <lucas@debian.org> - 2020-08-03 10:30 +0200

#283694 — Bug#966893: kvmtool: FTBFS: string_fortified.h:34:10: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]

FromLucas Nussbaum <lucas@debian.org>
Date2020-08-03 10:30 +0200
SubjectBug#966893: kvmtool: FTBFS: string_fortified.h:34:10: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
Message-ID<AzE15-Du-29@gated-at.bofh.it>
Source: kvmtool
Version: 0.20170904-1.1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200802 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> gcc -c -Wp,-MD,./.kvm-cmd.o.d -DCONFIG_GUEST_INIT -DCONFIG_GUEST_PRE_INIT -Wdate-time -D_FORTIFY_SOURCE=2 -DCONFIG_X86_64 -DCONFIG_X86 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DKVMTOOLS_VERSION='""' -DBUILD_ARCH='"x86"' -Iinclude -Ix86/include -O2 -fno-strict-aliasing -g -Wall -Wformat=2 -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-system-headers -Wold-style-definition -Wredundant-decls -Wsign-compare -Wstrict-prototypes -Wundef -Wvolatile-register-var -Wwrite-strings -Wno-format-nonliteral -Werror -DCONFIG_HAS_VNCSERVER -DCONFIG_HAS_SDL -DCONFIG_HAS_ZLIB -DCONFIG_HAS_AIO kvm-cmd.c -o kvm-cmd.o
> In file included from /usr/include/string.h:495,
>                  from include/kvm/util.h:17,
>                  from include/kvm/mutex.h:6,
>                  from include/kvm/uip.h:5,
>                  from net/uip/csum.c:1:
> In function ‘memcpy’,
>     inlined from ‘uip_csum_udp’ at net/uip/csum.c:58:3:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34:10: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
>    34 |   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from net/uip/csum.c:1:
> net/uip/csum.c: In function ‘uip_csum_udp’:
> include/kvm/uip.h:132:6: note: at offset 0 to object ‘sport’ with size 2 declared here
>   132 |  u16 sport;
>       |      ^~~~~
> In file included from /usr/include/string.h:495,
>                  from include/kvm/util.h:17,
>                  from include/kvm/mutex.h:6,
>                  from include/kvm/uip.h:5,
>                  from net/uip/csum.c:1:
> In function ‘memcpy’,
>     inlined from ‘uip_csum_udp’ at net/uip/csum.c:55:3:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34:10: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
>    34 |   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from net/uip/csum.c:1:
> net/uip/csum.c: In function ‘uip_csum_udp’:
> include/kvm/uip.h:132:6: note: at offset 0 to object ‘sport’ with size 2 declared here
>   132 |  u16 sport;
>       |      ^~~~~
> In file included from /usr/include/string.h:495,
>                  from include/kvm/util.h:17,
>                  from include/kvm/mutex.h:6,
>                  from include/kvm/uip.h:5,
>                  from net/uip/csum.c:1:
> In function ‘memcpy’,
>     inlined from ‘uip_csum_tcp’ at net/uip/csum.c:89:3:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34:10: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
>    34 |   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from net/uip/csum.c:1:
> net/uip/csum.c: In function ‘uip_csum_tcp’:
> include/kvm/uip.h:147:6: note: at offset 0 to object ‘sport’ with size 2 declared here
>   147 |  u16 sport;
>       |      ^~~~~
> In file included from /usr/include/string.h:495,
>                  from include/kvm/util.h:17,
>                  from include/kvm/mutex.h:6,
>                  from include/kvm/uip.h:5,
>                  from net/uip/csum.c:1:
> In function ‘memcpy’,
>     inlined from ‘uip_csum_tcp’ at net/uip/csum.c:86:3:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34:10: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
>    34 |   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from net/uip/csum.c:1:
> net/uip/csum.c: In function ‘uip_csum_tcp’:
> include/kvm/uip.h:147:6: note: at offset 0 to object ‘sport’ with size 2 declared here
>   147 |  u16 sport;
>       |      ^~~~~
> gcc -c -Wp,-MD,util/.init.o.d -DCONFIG_GUEST_INIT -DCONFIG_GUEST_PRE_INIT -Wdate-time -D_FORTIFY_SOURCE=2 -DCONFIG_X86_64 -DCONFIG_X86 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DKVMTOOLS_VERSION='""' -DBUILD_ARCH='"x86"' -Iinclude -Ix86/include -O2 -fno-strict-aliasing -g -Wall -Wformat=2 -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-system-headers -Wold-style-definition -Wredundant-decls -Wsign-compare -Wstrict-prototypes -Wundef -Wvolatile-register-var -Wwrite-strings -Wno-format-nonliteral -Werror -DCONFIG_HAS_VNCSERVER -DCONFIG_HAS_SDL -DCONFIG_HAS_ZLIB -DCONFIG_HAS_AIO util/init.c -o util/init.o
> gcc -c -Wp,-MD,util/.iovec.o.d -DCONFIG_GUEST_INIT -DCONFIG_GUEST_PRE_INIT -Wdate-time -D_FORTIFY_SOURCE=2 -DCONFIG_X86_64 -DCONFIG_X86 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DKVMTOOLS_VERSION='""' -DBUILD_ARCH='"x86"' -Iinclude -Ix86/include -O2 -fno-strict-aliasing -g -Wall -Wformat=2 -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-system-headers -Wold-style-definition -Wredundant-decls -Wsign-compare -Wstrict-prototypes -Wundef -Wvolatile-register-var -Wwrite-strings -Wno-format-nonliteral -Werror -DCONFIG_HAS_VNCSERVER -DCONFIG_HAS_SDL -DCONFIG_HAS_ZLIB -DCONFIG_HAS_AIO util/iovec.c -o util/iovec.o
> gcc -c -Wp,-MD,util/.rbtree.o.d -DCONFIG_GUEST_INIT -DCONFIG_GUEST_PRE_INIT -Wdate-time -D_FORTIFY_SOURCE=2 -DCONFIG_X86_64 -DCONFIG_X86 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DKVMTOOLS_VERSION='""' -DBUILD_ARCH='"x86"' -Iinclude -Ix86/include -O2 -fno-strict-aliasing -g -Wall -Wformat=2 -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-system-headers -Wold-style-definition -Wredundant-decls -Wsign-compare -Wstrict-prototypes -Wundef -Wvolatile-register-var -Wwrite-strings -Wno-format-nonliteral -Werror util/rbtree.c -o util/rbtree.o
> cc1: all warnings being treated as errors
> make[1]: *** [Makefile:434: net/uip/csum.o] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2020/08/02/kvmtool_0.20170904-1.1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.

[toc] | [standalone]


Back to top | Article view | linux.debian.bugs.rc


csiph-web