Debian Bug report logs - #966895
ms-gsl: FTBFS: multi_span:1467:96: error: array subscript 6 is outside array bounds of ‘int [5]’ [-Werror=array-bounds]

version graph

Package: src:ms-gsl; Maintainer for src:ms-gsl is Nicholas Guriev <guriev-ns@ya.ru>;

Reported by: Lucas Nussbaum <lucas@debian.org>

Date: Mon, 3 Aug 2020 08:21:47 UTC

Severity: serious

Tags: bullseye, ftbfs, sid

Found in version ms-gsl/3.1.0-1

Fixed in version ms-gsl/3.1.0-2

Done: Nicholas Guriev <guriev-ns@ya.ru>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Nicholas Guriev <guriev-ns@ya.ru>:
Bug#966895; Package src:ms-gsl. (Mon, 03 Aug 2020 08:21:49 GMT) (full text, mbox, link).


Acknowledgement sent to Lucas Nussbaum <lucas@debian.org>:
New Bug report received and forwarded. Copy sent to Nicholas Guriev <guriev-ns@ya.ru>. (Mon, 03 Aug 2020 08:21:49 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Lucas Nussbaum <lucas@debian.org>
To: submit@bugs.debian.org
Subject: ms-gsl: FTBFS: multi_span:1467:96: error: array subscript 6 is outside array bounds of ‘int [5]’ [-Werror=array-bounds]
Date: Mon, 3 Aug 2020 10:04:26 +0200
Source: ms-gsl
Version: 3.1.0-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):
> /usr/bin/c++  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -Wl,-z,relro -rdynamic CMakeFiles/span_tests.dir/span_tests.cpp.o  -o span_tests  -lgtest_main -lpthread -lgtest -lpthread -lgtest 
> In file included from /<<PKGBUILDDIR>>/tests/multi_span_tests.cpp:21:
> /<<PKGBUILDDIR>>/include/gsl/multi_span: In member function ‘virtual void multi_span_test_subspan_Test::TestBody()’:
> /<<PKGBUILDDIR>>/include/gsl/multi_span:1467:96: error: array subscript 6 is outside array bounds of ‘int [5]’ [-Werror=array-bounds]
>  1467 |         return {this->data() + offset, count == dynamic_range ? this->length() - offset : count};
>       |                                                                                                ^
> /<<PKGBUILDDIR>>/tests/multi_span_tests.cpp:986:9: note: while referencing ‘arr’
>   986 |     int arr[5] = {1, 2, 3, 4, 5};
>       |         ^~~
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
> [ 78%] Built target span_tests
> make -f tests/CMakeFiles/strided_span_tests.dir/build.make tests/CMakeFiles/strided_span_tests.dir/depend
> make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/tests /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/tests /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/tests/CMakeFiles/strided_span_tests.dir/DependInfo.cmake --color=
> Scanning dependencies of target strided_span_tests
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
> make -f tests/CMakeFiles/strided_span_tests.dir/build.make tests/CMakeFiles/strided_span_tests.dir/build
> make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
> [ 81%] Building CXX object tests/CMakeFiles/strided_span_tests.dir/strided_span_tests.cpp.o
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/tests && /usr/bin/c++   -I/<<PKGBUILDDIR>>/include -isystem /<<PKGBUILDDIR>>/tests/googletest/googletest/include  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2   -fno-strict-aliasing -Wall -Wcast-align -Wconversion -Wctor-dtor-privacy -Werror -Wextra -Wpedantic -Wshadow -Wsign-conversion -Wno-deprecated-declarations -Wdouble-promotion -Wlogical-op -Wduplicated-cond -Wmisleading-indentation -Wnull-dereference -Wno-unused-variable -Wduplicated-branches -o CMakeFiles/strided_span_tests.dir/strided_span_tests.cpp.o -c /<<PKGBUILDDIR>>/tests/strided_span_tests.cpp
> cc1plus: all warnings being treated as errors
> make[3]: *** [tests/CMakeFiles/multi_span_tests.dir/build.make:66: tests/CMakeFiles/multi_span_tests.dir/multi_span_tests.cpp.o] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2020/08/02/ms-gsl_3.1.0-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.



Message sent on to Lucas Nussbaum <lucas@debian.org>:
Bug#966895. (Wed, 19 Aug 2020 09:15:02 GMT) (full text, mbox, link).


Message #8 received at 966895-submitter@bugs.debian.org (full text, mbox, reply):

From: Nicholas Guriev <guriev-ns@ya.ru>
To: 966895-submitter@bugs.debian.org
Subject: Bug#966895 marked as pending in ms-gsl
Date: Wed, 19 Aug 2020 09:05:06 +0000
Control: tag -1 pending

Hello,

Bug #966895 in ms-gsl reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian/ms-gsl/-/commit/c17b9395ae03e58493709e73b8ab794bebd8dcd7

------------------------------------------------------------------------
New Move-array-bounds-tests.patch

Closes: #966895
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/966895



Added tag(s) pending. Request was from Nicholas Guriev <guriev-ns@ya.ru> to 966895-submitter@bugs.debian.org. (Wed, 19 Aug 2020 09:15:02 GMT) (full text, mbox, link).


Reply sent to Nicholas Guriev <guriev-ns@ya.ru>:
You have taken responsibility. (Fri, 21 Aug 2020 15:39:02 GMT) (full text, mbox, link).


Notification sent to Lucas Nussbaum <lucas@debian.org>:
Bug acknowledged by developer. (Fri, 21 Aug 2020 15:39:02 GMT) (full text, mbox, link).


Message #15 received at 966895-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 966895-close@bugs.debian.org
Subject: Bug#966895: fixed in ms-gsl 3.1.0-2
Date: Fri, 21 Aug 2020 15:37:00 +0000
Source: ms-gsl
Source-Version: 3.1.0-2
Done: Nicholas Guriev <guriev-ns@ya.ru>

We believe that the bug you reported is fixed in the latest version of
ms-gsl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 966895@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Nicholas Guriev <guriev-ns@ya.ru> (supplier of updated ms-gsl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 20 Aug 2020 07:42:55 +0300
Source: ms-gsl
Architecture: source
Version: 3.1.0-2
Distribution: unstable
Urgency: medium
Maintainer: Nicholas Guriev <guriev-ns@ya.ru>
Changed-By: Nicholas Guriev <guriev-ns@ya.ru>
Closes: 966895
Changes:
 ms-gsl (3.1.0-2) unstable; urgency=medium
 .
   * New Move-array-bounds-tests.patch (closes: #966895).
     - Use independent translation unit to bypass an error caused by
       "-Warray-bounds" flag.
   * Add autopkgtests with various GCC versions and C++ standards.
   * Update DebHelper compatibility level to 13.
     - Remove no longer needed the CMAKE_SKIP_INSTALL_ALL_DEPENDENCY variable
       from the debian/rules file.
Checksums-Sha1:
 f36af8a7a8f40bed5f3a8883febb6bb904682e1f 1992 ms-gsl_3.1.0-2.dsc
 76d4d105048c1c5051b5fa5438a5e7aff307b3a5 5916 ms-gsl_3.1.0-2.debian.tar.xz
 7077cc5f3330b69816bc015a967d418128a376ca 6358 ms-gsl_3.1.0-2_amd64.buildinfo
Checksums-Sha256:
 001902884ff96e9c74d2595e196f22fd2778e447c9fabd3b8d012e5a6b0f4403 1992 ms-gsl_3.1.0-2.dsc
 9f0cd47977b8c7dc82ad8dab40ad6ee66194de73aad66813b93291dd2e4d58c8 5916 ms-gsl_3.1.0-2.debian.tar.xz
 b500e8a0ce29d33c7286bbb3285a5a9f68e34ca09f09b70c2b08858bf90377c7 6358 ms-gsl_3.1.0-2_amd64.buildinfo
Files:
 1730065282bf5381ecdfaef8ec121e36 1992 libdevel optional ms-gsl_3.1.0-2.dsc
 ab552b287c5f832cee613d902f1573c6 5916 libdevel optional ms-gsl_3.1.0-2.debian.tar.xz
 0bb13b126190ccaeb6d31193ed29366c 6358 libdevel optional ms-gsl_3.1.0-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEi3hoeGwz5cZMTQpICBa54Yx2K60FAl8/5XEACgkQCBa54Yx2
K63MOQ//bWUNBk0fA39dzUxZCNiH0s/kzp9Y7KdjrJb64jt4NUL9r/n9doMDVC4+
LUxKNS2p3lpBYrjUKXefvhwhU5t1BqJevz3ggweDF3zv2NggoOUvZfTnoXpBRm/F
hByF/41sRZoeunKXKsAo6oXRuCEJlagbHCVC8fneSAaWdpATf4GYJB3MVm3J1TBC
8c9x8LjeVhyWgqm+l6ojm1AnWTSvbLam2pnuIsTH5ePkCKafkXK31ZEo9jeADdF5
WFr/puim+29L9CQ1xGPh/SEd5XkwbqRW0aTUQRwGetKqSJe+qvJYhSmGP8sfczQD
5p/w8HwwTBMlFo4n87FsU4DfvbluaoP4l3QYWpzPwEWQoWtS3t+DQ8TEBSljc9Wl
Ukf9niNBFm+om2wqrUe2zQosph4NbsA7SP8bEbpLW+MtFws2w/nDedzXe+cNtspe
8N4sxCg+mBRppfUqkUfU6zaag7qlPoqoXsco6L6whWACk1RqgIYQBD6UzZ7ElM6W
7MFAKh8asa2pQSL9Cyg7KMokZ8XEGmZ9NUnVfrphyrEW4LUTw7w85db9trd+/DLv
vxMi2yGW7bZDujWWA+HX8JYpWPR6z4ZiYbvE8DpI2hGkOfbIRSSt0Cx74lwVkl+w
mbpzXvmZ7KOeFb9cnaAyyGttDuZHV3bpS9XknKlEx7tUBxa4YgU=
=tDkH
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 22 Sep 2020 07:27:35 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Sep 20 20:27:40 2022; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.