Source: rapidjson
Version: 1.1.0+dfsg2-7
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: [email protected]
Usertags: ftbfs-20220728 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/test/unittest && /usr/bin/c++
> -I/<<PKGBUILDDIR>>/include -isystem /usr/src/gtest/include -isystem
> /usr/src/gtest -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
> -D_FORTIFY_SOURCE=2 -march=native -Wall -Wextra -Werror -std=c++11 -Werror
> -Wall -Wextra -Weffc++ -Wswitch-default -Wfloat-equal
> -DRAPIDJSON_HAS_STDSTRING=1 -DGTEST_HAS_PTHREAD=1 -MD -MT
> test/unittest/CMakeFiles/unittest.dir/istreamwrappertest.cpp.o -MF
> CMakeFiles/unittest.dir/istreamwrappertest.cpp.o.d -o
> CMakeFiles/unittest.dir/istreamwrappertest.cpp.o -c
> /<<PKGBUILDDIR>>/test/unittest/istreamwrappertest.cpp
> In file included from /<<PKGBUILDDIR>>/include/rapidjson/encodedstream.h:19,
> from /<<PKGBUILDDIR>>/test/unittest/encodedstreamtest.cpp:18:
> In member function ‘std::size_t rapidjson::MemoryStream::Tell() const’,
> inlined from ‘std::size_t
> rapidjson::EncodedInputStream<rapidjson::UTF8<>,
> rapidjson::MemoryStream>::Tell() const’ at
> /<<PKGBUILDDIR>>/include/rapidjson/encodedstream.h:79:42,
> inlined from ‘void EncodedStreamTest::TestEncodedInputStream(const char*)
> [with FileEncoding = rapidjson::UTF8<>; MemoryEncoding = rapidjson::UTF8<>]’
> at /<<PKGBUILDDIR>>/test/unittest/encodedstreamtest.cpp:117:13:
> /<<PKGBUILDDIR>>/include/rapidjson/memorystream.h:47:59: error: pointer used
> after ‘void free(void*)’ [-Werror=use-after-free]
> 47 | size_t Tell() const { return static_cast<size_t>(src_ - begin_); }
> | ~~~~~^~~~~~~~
> /<<PKGBUILDDIR>>/test/unittest/encodedstreamtest.cpp: In member function
> ‘void EncodedStreamTest::TestEncodedInputStream(const char*) [with
> FileEncoding = rapidjson::UTF8<>; MemoryEncoding = rapidjson::UTF8<>]’:
> /<<PKGBUILDDIR>>/test/unittest/encodedstreamtest.cpp:116:17: note: call to
> ‘void free(void*)’ here
> 116 | free(data);
> | ~~~~^~~~~~
> In member function ‘std::size_t rapidjson::MemoryStream::Tell() const’,
> inlined from ‘std::size_t rapidjson::EncodedInputStream<Encoding,
> InputByteStream>::Tell() const [with Encoding = rapidjson::UTF16LE<>;
> InputByteStream = rapidjson::MemoryStream]’ at
> /<<PKGBUILDDIR>>/include/rapidjson/encodedstream.h:50:42,
> inlined from ‘void EncodedStreamTest::TestEncodedInputStream(const char*)
> [with FileEncoding = rapidjson::UTF16LE<>; MemoryEncoding =
> rapidjson::UTF16<>]’ at
> /<<PKGBUILDDIR>>/test/unittest/encodedstreamtest.cpp:117:13:
> /<<PKGBUILDDIR>>/include/rapidjson/memorystream.h:47:59: error: pointer used
> after ‘void free(void*)’ [-Werror=use-after-free]
> 47 | size_t Tell() const { return static_cast<size_t>(src_ - begin_); }
> | ~~~~~^~~~~~~~
> /<<PKGBUILDDIR>>/test/unittest/encodedstreamtest.cpp: In member function
> ‘void EncodedStreamTest::TestEncodedInputStream(const char*) [with
> FileEncoding = rapidjson::UTF16LE<>; MemoryEncoding = rapidjson::UTF16<>]’:
> /<<PKGBUILDDIR>>/test/unittest/encodedstreamtest.cpp:116:17: note: call to
> ‘void free(void*)’ here
> 116 | free(data);
> | ~~~~^~~~~~
> In member function ‘std::size_t rapidjson::MemoryStream::Tell() const’,
> inlined from ‘std::size_t rapidjson::EncodedInputStream<Encoding,
> InputByteStream>::Tell() const [with Encoding = rapidjson::UTF16BE<>;
> InputByteStream = rapidjson::MemoryStream]’ at
> /<<PKGBUILDDIR>>/include/rapidjson/encodedstream.h:50:42,
> inlined from ‘void EncodedStreamTest::TestEncodedInputStream(const char*)
> [with FileEncoding = rapidjson::UTF16BE<>; MemoryEncoding =
> rapidjson::UTF16<>]’ at
> /<<PKGBUILDDIR>>/test/unittest/encodedstreamtest.cpp:117:13:
> /<<PKGBUILDDIR>>/include/rapidjson/memorystream.h:47:59: error: pointer used
> after ‘void free(void*)’ [-Werror=use-after-free]
> 47 | size_t Tell() const { return static_cast<size_t>(src_ - begin_); }
> | ~~~~~^~~~~~~~
> /<<PKGBUILDDIR>>/test/unittest/encodedstreamtest.cpp: In member function
> ‘void EncodedStreamTest::TestEncodedInputStream(const char*) [with
> FileEncoding = rapidjson::UTF16BE<>; MemoryEncoding = rapidjson::UTF16<>]’:
> /<<PKGBUILDDIR>>/test/unittest/encodedstreamtest.cpp:116:17: note: call to
> ‘void free(void*)’ here
> 116 | free(data);
> | ~~~~^~~~~~
> [ 77%] Building CXX object
> test/unittest/CMakeFiles/unittest.dir/namespacetest.cpp.o
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/test/unittest && /usr/bin/c++
> -I/<<PKGBUILDDIR>>/include -isystem /usr/src/gtest/include -isystem
> /usr/src/gtest -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
> -D_FORTIFY_SOURCE=2 -march=native -Wall -Wextra -Werror -std=c++11 -Werror
> -Wall -Wextra -Weffc++ -Wswitch-default -Wfloat-equal
> -DRAPIDJSON_HAS_STDSTRING=1 -DGTEST_HAS_PTHREAD=1 -MD -MT
> test/unittest/CMakeFiles/unittest.dir/namespacetest.cpp.o -MF
> CMakeFiles/unittest.dir/namespacetest.cpp.o.d -o
> CMakeFiles/unittest.dir/namespacetest.cpp.o -c
> /<<PKGBUILDDIR>>/test/unittest/namespacetest.cpp
> [ 79%] Building CXX object
> test/unittest/CMakeFiles/unittest.dir/pointertest.cpp.o
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/test/unittest && /usr/bin/c++
> -I/<<PKGBUILDDIR>>/include -isystem /usr/src/gtest/include -isystem
> /usr/src/gtest -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
> -D_FORTIFY_SOURCE=2 -march=native -Wall -Wextra -Werror -std=c++11 -Werror
> -Wall -Wextra -Weffc++ -Wswitch-default -Wfloat-equal
> -DRAPIDJSON_HAS_STDSTRING=1 -DGTEST_HAS_PTHREAD=1 -MD -MT
> test/unittest/CMakeFiles/unittest.dir/pointertest.cpp.o -MF
> CMakeFiles/unittest.dir/pointertest.cpp.o.d -o
> CMakeFiles/unittest.dir/pointertest.cpp.o -c
> /<<PKGBUILDDIR>>/test/unittest/pointertest.cpp
> In member function ‘std::size_t rapidjson::MemoryStream::Tell() const’,
> inlined from ‘std::size_t rapidjson::EncodedInputStream<Encoding,
> InputByteStream>::Tell() const [with Encoding = rapidjson::UTF32LE<>;
> InputByteStream = rapidjson::MemoryStream]’ at
> /<<PKGBUILDDIR>>/include/rapidjson/encodedstream.h:50:42,
> inlined from ‘void EncodedStreamTest::TestEncodedInputStream(const char*)
> [with FileEncoding = rapidjson::UTF32LE<>; MemoryEncoding =
> rapidjson::UTF32<>]’ at
> /<<PKGBUILDDIR>>/test/unittest/encodedstreamtest.cpp:117:13:
> /<<PKGBUILDDIR>>/include/rapidjson/memorystream.h:47:59: error: pointer used
> after ‘void free(void*)’ [-Werror=use-after-free]
> 47 | size_t Tell() const { return static_cast<size_t>(src_ - begin_); }
> | ~~~~~^~~~~~~~
> /<<PKGBUILDDIR>>/test/unittest/encodedstreamtest.cpp: In member function
> ‘void EncodedStreamTest::TestEncodedInputStream(const char*) [with
> FileEncoding = rapidjson::UTF32LE<>; MemoryEncoding = rapidjson::UTF32<>]’:
> /<<PKGBUILDDIR>>/test/unittest/encodedstreamtest.cpp:116:17: note: call to
> ‘void free(void*)’ here
> 116 | free(data);
> | ~~~~^~~~~~
> In member function ‘std::size_t rapidjson::MemoryStream::Tell() const’,
> inlined from ‘std::size_t rapidjson::EncodedInputStream<Encoding,
> InputByteStream>::Tell() const [with Encoding = rapidjson::UTF32BE<>;
> InputByteStream = rapidjson::MemoryStream]’ at
> /<<PKGBUILDDIR>>/include/rapidjson/encodedstream.h:50:42,
> inlined from ‘void EncodedStreamTest::TestEncodedInputStream(const char*)
> [with FileEncoding = rapidjson::UTF32BE<>; MemoryEncoding =
> rapidjson::UTF32<>]’ at
> /<<PKGBUILDDIR>>/test/unittest/encodedstreamtest.cpp:117:13:
> /<<PKGBUILDDIR>>/include/rapidjson/memorystream.h:47:59: error: pointer used
> after ‘void free(void*)’ [-Werror=use-after-free]
> 47 | size_t Tell() const { return static_cast<size_t>(src_ - begin_); }
> | ~~~~~^~~~~~~~
> /<<PKGBUILDDIR>>/test/unittest/encodedstreamtest.cpp: In member function
> ‘void EncodedStreamTest::TestEncodedInputStream(const char*) [with
> FileEncoding = rapidjson::UTF32BE<>; MemoryEncoding = rapidjson::UTF32<>]’:
> /<<PKGBUILDDIR>>/test/unittest/encodedstreamtest.cpp:116:17: note: call to
> ‘void free(void*)’ here
> 116 | free(data);
> | ~~~~^~~~~~
> cc1plus: all warnings being treated as errors
> make[3]: *** [test/unittest/CMakeFiles/unittest.dir/build.make:135:
> test/unittest/CMakeFiles/unittest.dir/encodedstreamtest.cpp.o] Error 1
The full build log is available from:
http://qa-logs.debian.net/2022/07/28/rapidjson_1.1.0+dfsg2-7_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220728;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220728&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results
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!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.