--- Begin Message ---
Package: gcc-10
Version: 10.3.0-14
Severity: normal
Hi,
I'm trying to build webkit2gtk 2.36.0 for bullseye using GCC 10 and I
get segfaults in several places.
I tried GCC 10 from testing/sid and the problem is exactly the same.
This is the full preprocessed file:
https://people.debian.org/~berto/UnifiedSource-3a52ce78-38.ii.xz
And this is the command line:
/usr/bin/c++ -O2 -std=c++2a -c UnifiedSource-3a52ce78-38.ii
I'm doing all of this in a clean pbuilder chroot.
The segfault is not 100% deterministic, sometimes I have to try a
couple of times, but it is very easy to reproduce. However I cannot
reproduce it in a different computer using the same pbuilder chroot,
which suggests that the problem is related to the hardware / OS of the
first computer.
However in that same machine where I'm observing those crashes I can
build webkit using gcc 11 just fine, I actually ran a dozen of builds
and I had no problems whatsoever.
Here is the complete output of gcc, in both bullseye and testing/sid.
Using GCC 10 from bullseye:
# c++ -v
Using built-in specs.
COLLECT_GCC=c++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.1-6'
--with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr
--with-gcc-major-version-only --program-suffix=-10
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib
--enable-libphobos-checking=release --with-target-system-zlib=auto
--enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686
--with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib
--with-tune=generic
--enable-offload-targets=nvptx-none=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-gcn/usr,hsa
--without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
--with-build-config=bootstrap-lto-lean --enable-link-mutex
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.1 20210110 (Debian 10.2.1-6)
# /usr/bin/c++ -O2 -std=c++2a -c UnifiedSource-3a52ce78-38.ii
In file included from ../Source/WebCore/bindings/js/JSDOMConvert.h:47,
from ../Source/WebCore/bindings/js/JSDOMPromiseDeferred.h:29,
from ../Source/WebCore/dom/AbortSignal.h:30,
from ../Source/WebCore/dom/AddEventListenerOptions.h:28,
from WebCore/DerivedSources/JSAddEventListenerOptions.h:23,
from WebCore/DerivedSources/JSEventTarget.cpp:28,
from
WebCore/DerivedSources/unified-sources/UnifiedSource-3a52ce78-38.cpp:1:
../Source/WebCore/bindings/js/JSDOMConvertUnion.h: In instantiation of 'static
WebCore::Converter<WebCore::IDLUnion<T ...> >::ReturnType
WebCore::Converter<WebCore::IDLUnion<T ...> >::convert(JSC::JSGlobalObject&,
JSC::JSValue) [with T =
{WebCore::IDLAllowSharedAdaptor<WebCore::IDLArrayBufferView>,
WebCore::IDLAllowSharedAdaptor<WebCore::IDLArrayBuffer>};
WebCore::Converter<WebCore::IDLUnion<T ...> >::ReturnType =
std::variant<WTF::RefPtr<JSC::ArrayBufferView,
WTF::RawPtrTraits<JSC::ArrayBufferView>,
WTF::DefaultRefDerefTraits<JSC::ArrayBufferView> >,
WTF::RefPtr<JSC::ArrayBuffer, WTF::RawPtrTraits<JSC::ArrayBuffer>,
WTF::DefaultRefDerefTraits<JSC::ArrayBuffer> > >]':
../Source/WebCore/bindings/js/JSDOMConvertUnion.h:413:119: required from here
../Source/WebCore/bindings/js/JSDOMConvertUnion.h:211:76: in 'constexpr'
expansion of
'returnValue.std::optional<std::variant<WTF::RefPtr<JSC::ArrayBufferView,
WTF::RawPtrTraits<JSC::ArrayBufferView>,
WTF::DefaultRefDerefTraits<JSC::ArrayBufferView> >,
WTF::RefPtr<JSC::ArrayBuffer, WTF::RawPtrTraits<JSC::ArrayBuffer>,
WTF::DefaultRefDerefTraits<JSC::ArrayBuffer> > > >::value()'
/usr/include/c++/10/optional:931:28: in 'constexpr' expansion of
'((std::_Optional_base_impl<std::variant<WTF::RefPtr<JSC::ArrayBufferView,
WTF::RawPtrTraits<JSC::ArrayBufferView>,
WTF::DefaultRefDerefTraits<JSC::ArrayBufferView> >,
WTF::RefPtr<JSC::ArrayBuffer, WTF::RawPtrTraits<JSC::ArrayBuffer>,
WTF::DefaultRefDerefTraits<JSC::ArrayBuffer> > >,
std::_Optional_base<std::variant<WTF::RefPtr<JSC::ArrayBufferView,
WTF::RawPtrTraits<JSC::ArrayBufferView>,
WTF::DefaultRefDerefTraits<JSC::ArrayBufferView> >,
WTF::RefPtr<JSC::ArrayBuffer, WTF::RawPtrTraits<JSC::ArrayBuffer>,
WTF::DefaultRefDerefTraits<JSC::ArrayBuffer> > >, false, false>
>*)((std::optional<std::variant<WTF::RefPtr<JSC::ArrayBufferView,
WTF::RawPtrTraits<JSC::ArrayBufferView>,
WTF::DefaultRefDerefTraits<JSC::ArrayBufferView> >,
WTF::RefPtr<JSC::ArrayBuffer, WTF::RawPtrTraits<JSC::ArrayBuffer>,
WTF::DefaultRefDerefTraits<JSC::ArrayBuffer> > >
>*)this))->std::_Optional_base_impl<std::variant<WTF::RefPtr<JSC::ArrayBufferView,
WTF::RawPtrTraits<JSC::ArrayBufferView>,
WTF::DefaultRefDerefTraits<JSC::ArrayBufferView> >,
WTF::RefPtr<JSC::ArrayBuffer, WTF::RawPtrTraits<JSC::ArrayBuffer>,
WTF::DefaultRefDerefTraits<JSC::ArrayBuffer> > >,
std::_Optional_base<std::variant<WTF::RefPtr<JSC::ArrayBufferView,
WTF::RawPtrTraits<JSC::ArrayBufferView>,
WTF::DefaultRefDerefTraits<JSC::ArrayBufferView> >,
WTF::RefPtr<JSC::ArrayBuffer, WTF::RawPtrTraits<JSC::ArrayBuffer>,
WTF::DefaultRefDerefTraits<JSC::ArrayBuffer> > >, false, false>
>::_M_is_engaged()'
../Source/WebCore/bindings/js/JSDOMConvertUnion.h:377:5: internal compiler
error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
----------------------------------------------------------
Using GCC 10 from testing/sid
# g++-10 -v
Using built-in specs.
COLLECT_GCC=g++-10
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 10.3.0-14'
--with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr
--wit
h-gcc-major-version-only --program-suffix=-10
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib
--enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new
--enable-gnu-unique-object --disable-vtable-verify --enable-plugin --en
able-default-pie --with-system-zlib --enable-libphobos-checking=release
--with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch
--disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib
-list=m32,m64,mx32 --enable-multilib --with-tune=generic
--enable-offload-targets=hsa --without-cuda-driver --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --
with-build-config=bootstrap-lto-lean --enable-link-mutex
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.3.0 (Debian 10.3.0-14)
# /usr/bin/g++-10 -O2 -std=c++2a -c UnifiedSource-3a52ce78-38.ii
In file included from ../Source/WebCore/bindings/js/JSDOMConvert.h:47,
from ../Source/WebCore/bindings/js/JSDOMPromiseDeferred.h:29,
from ../Source/WebCore/dom/AbortSignal.h:30,
from ../Source/WebCore/dom/AddEventListenerOptions.h:28,
from WebCore/DerivedSources/JSAddEventListenerOptions.h:23,
from WebCore/DerivedSources/JSEventTarget.cpp:28,
from
WebCore/DerivedSources/unified-sources/UnifiedSource-3a52ce78-38.cpp:1:
../Source/WebCore/bindings/js/JSDOMConvertUnion.h: In instantiation of 'static
WebCore::Converter<WebCore::IDLUnion<T ...> >::ReturnType
WebCore::Converter<WebCore::IDLUnion<T ...> >::convert(JSC::JSGlobalObject&,
JSC::JSValue) [with T =
{WebCore::IDLSequence<WebCore::IDLSequence<WebCore::IDLByteString> >,
WebCore::IDLRecord<WebCore::IDLByteString, WebCore::IDLByteString>};
WebCore::Converter<WebCore::IDLUnion<T ...> >::ReturnType =
std::variant<WTF::Vector<WTF::Vector<WTF::String, 0, WTF::CrashOnOverflow, 16,
WTF::FastMalloc>, 0, WTF::CrashOnOverflow, 16, WTF::FastMalloc>,
WTF::Vector<WTF::KeyValuePair<WTF::String, WTF::String>, 0,
WTF::CrashOnOverflow, 16, WTF::FastMalloc> >]':
../Source/WebCore/bindings/js/JSDOMConvertBase.h:61:33: required from
'typename WebCore::Converter<T>::ReturnType
WebCore::convert(JSC::JSGlobalObject&, JSC::JSValue) [with T =
WebCore::IDLUnion<WebCore::IDLSequence<WebCore::IDLSequence<WebCore::IDLByteString>
>, WebCore::IDLRecord<WebCore::IDLByteString, WebCore::IDLByteString> >;
typename WebCore::Converter<T>::ReturnType =
std::variant<WTF::Vector<WTF::Vector<WTF::String, 0, WTF::CrashOnOverflow, 16,
WTF::FastMalloc>, 0, WTF::CrashOnOverflow, 16, WTF::FastMalloc>,
WTF::Vector<WTF::KeyValuePair<WTF::String, WTF::String>, 0,
WTF::CrashOnOverflow, 16, WTF::FastMalloc> >]'
WebCore/DerivedSources/JSFetchHeaders.cpp:120:452: required from here
../Source/WebCore/bindings/js/JSDOMConvertUnion.h:211:76: in 'constexpr'
expansion of
'returnValue.std::optional<std::variant<WTF::Vector<WTF::Vector<WTF::String, 0,
WTF::CrashOnOverflow, 16, WTF::FastMalloc>, 0, WTF::CrashOnOverflow, 16,
WTF::FastMalloc>, WTF::Vector<WTF::KeyValuePair<WTF::String, WTF::String>, 0,
WTF::CrashOnOverflow, 16, WTF::FastMalloc> > >::value()'
/usr/include/c++/10/optional:931:28: in 'constexpr' expansion of
'((std::_Optional_base_impl<std::variant<WTF::Vector<WTF::Vector<WTF::String,
0, WTF::CrashOnOverflow, 16, WTF::FastMalloc>, 0, WTF::CrashOnOverflow, 16,
WTF::FastMalloc>, WTF::Vector<WTF::KeyValuePair<WTF::String, WTF::String>, 0,
WTF::CrashOnOverflow, 16, WTF::FastMalloc> >,
std::_Optional_base<std::variant<WTF::Vector<WTF::Vector<WTF::String, 0,
WTF::CrashOnOverflow, 16, WTF::FastMalloc>, 0, WTF::CrashOnOverflow, 16,
WTF::FastMalloc>, WTF::Vector<WTF::KeyValuePair<WTF::String, WTF::String>, 0,
WTF::CrashOnOverflow, 16, WTF::FastMalloc> >, false, false>
>*)((std::optional<std::variant<WTF::Vector<WTF::Vector<WTF::String, 0,
WTF::CrashOnOverflow, 16, WTF::FastMalloc>, 0, WTF::CrashOnOverflow, 16,
WTF::FastMalloc>, WTF::Vector<WTF::KeyValuePair<WTF::String, WTF::String>, 0,
WTF::CrashOnOverflow, 16, WTF::FastMalloc> >
>*)this))->std::_Optional_base_impl<std::variant<WTF::Vector<WTF::Vector<WTF::String,
0, WTF::CrashOnOverflow, 16, WTF::FastMalloc>, 0, WTF::CrashOnOverflow, 16,
WTF::FastMalloc>, WTF::Vector<WTF::KeyValuePair<WTF::String, WTF::String>, 0,
WTF::CrashOnOverflow, 16, WTF::FastMalloc> >,
std::_Optional_base<std::variant<WTF::Vector<WTF::Vector<WTF::String, 0,
WTF::CrashOnOverflow, 16, WTF::FastMalloc>, 0, WTF::CrashOnOverflow, 16,
WTF::FastMalloc>, WTF::Vector<WTF::KeyValuePair<WTF::String, WTF::String>, 0,
WTF::CrashOnOverflow, 16, WTF::FastMalloc> >, false, false> >::_M_is_engaged()'
../Source/WebCore/bindings/js/JSDOMConvertUnion.h:377:5: internal compiler
error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions.
Regards,
Berto
--- End Message ---