public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug other/98790] New: [10 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) @ 2021-01-22 10:47 doko at debian dot org 2021-01-22 10:50 ` [Bug other/98790] " doko at debian dot org ` (12 more replies) 0 siblings, 13 replies; 14+ messages in thread From: doko at debian dot org @ 2021-01-22 10:47 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98790 Bug ID: 98790 Summary: [10 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: doko at debian dot org Target Milestone: --- Created attachment 50030 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50030&action=edit preprocessed source, unreduced [forwarded from https://bugs.debian.org/980429 and https://bugs.debian.org/980629] seen with gcc-10 branch 20210110 and also with 20210121. Note I only see the ICE with one out of five calls. Seen building the nheko package, using PCH by default. But also seen after building without PCH. Fails with g++ -g -O2 -fstack-protector-strong -Wall -fsized-deallocation -std=c++17 -fPIC -std=gnu++17 -c SnackBar.ii ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug other/98790] [10 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) 2021-01-22 10:47 [Bug other/98790] New: [10 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) doko at debian dot org @ 2021-01-22 10:50 ` doko at debian dot org 2021-01-22 10:52 ` doko at debian dot org ` (11 subsequent siblings) 12 siblings, 0 replies; 14+ messages in thread From: doko at debian dot org @ 2021-01-22 10:50 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98790 --- Comment #1 from Matthias Klose <doko at debian dot org> --- Created attachment 50031 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50031&action=edit reduced test case the reduction from https://bugs.debian.org/980429 $ x86_64-linux-gnu-g++-10 -std=c++17 -Wno-return-type -c gcc-10-segfault.C gcc-10-segfault.C: In substitution of 'template<class _Functor, class, class> std::function<float(float, float, float)>::function(_Functor) [with _Functor = <missing>; <template-parameter-1-2> = <missing>; <template-parameter-1-3> = <missing>]': gcc-10-segfault.C:283:12: required from 'static void tweeny::detail::easingresolve<I, TypeTuple, FunctionTuple, tweeny::easing::linearEasing, Fs ...>::impl(FunctionTuple&, tweeny::easing::linearEasing, Fs ...) [with int I = 0; TypeTuple = std::array<float, 1>; FunctionTuple = std::tuple<std::function<float(float, float, float)> >; Fs = {}]' gcc-10-segfault.C:289:64: required from 'void tweeny::detail::easingfill(EasingCollectionT&, EasingT, tweeny::detail::int2type<0>) [with TypeTupleT = std::array<float, 1>; EasingCollectionT = std::tuple<std::function<float(float, float, float)> >; EasingT = tweeny::easing::linearEasing]' gcc-10-segfault.C:297:41: required from 'void tweeny::detail::tweenpoint<Ts>::via(F) [with F = tweeny::easing::linearEasing; Ts = {float}]' gcc-10-segfault.C:294:5: required from 'tweeny::detail::tweenpoint<Ts>::tweenpoint(Ts ...) [with Ts = {float}]' gcc-10-segfault.C:141:2: required from 'static constexpr std::_Require<std::__and_<std::__not_<typename std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::type>, std::is_constructible<_Tp, _Args ...> > > std::allocator_traits<_Alloc>::_S_construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = tweeny::detail::tweenpoint<float>; _Args = {float&}; _Alloc = std::allocator<tweeny::detail::tweenpoint<float> >; std::_Require<std::__and_<std::__not_<typename std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::type>, std::is_constructible<_Tp, _Args ...> > > = void; typename std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::type = std::integral_constant<bool, false>]' gcc-10-segfault.C:144:14: required from 'static decltype (std::allocator_traits<_Alloc>::_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits<_Alloc>::construct::__args)...)) std::allocator_traits<_Alloc>::construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = tweeny::detail::tweenpoint<float>; _Args = {float&}; _Alloc = std::allocator<tweeny::detail::tweenpoint<float> >; decltype (std::allocator_traits<_Alloc>::_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits<_Alloc>::construct::__args)...)) = void]' gcc-10-segfault.C:224:26: required from 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {float&}; _Tp = tweeny::detail::tweenpoint<float>; _Alloc = std::allocator<tweeny::detail::tweenpoint<float> >; std::vector<_Tp, _Alloc>::reference = tweeny::detail::tweenpoint<float>&]' gcc-10-segfault.C:310:21: required from 'tweeny::tween<T>& tweeny::tween<T>::to(T) [with T = float]' gcc-10-segfault.C:322:47: required from here gcc-10-segfault.C:283:12: internal compiler error: Segmentation fault 283 | get<I>(b) = easing::linear.run<ArgType>; | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0xa65400 crash_signal ../../src/gcc/toplev.c:328 0x7fa8b7dfed5f ??? ./signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0 0x13a54ed synthesize_method(tree_node*) ../../src/gcc/cp/method.c:1536 0x64cece maybe_instantiate_noexcept(tree_node*, int) ../../src/gcc/cp/pt.c:25338 0x768644 resolve_overloaded_unification ../../src/gcc/cp/pt.c:22255 0x768644 unify_one_argument ../../src/gcc/cp/pt.c:21801 0x111d442 type_unification_real ../../src/gcc/cp/pt.c:21945 0x111c93f fn_type_unification(tree_node*, tree_node*, tree_node*, tree_node* const*, unsigned int, tree_node*, unification_kind_t, int, conversion**, bool, bool) ../../src/gcc/cp/pt.c:21325 0x111c02a add_template_candidate_real(z_candidate**, tree_node*, tree_node*, tree_node*, tree_node*, vec<tree_node*, va_gc, vl_embed> const*, tree_node*, tree_node*, tree_node*, int, tree_node*, unification_kind_t, int) [clone .isra.0] ../../src/gcc/cp/call.c:3417 0xf538cd add_template_candidate ../../src/gcc/cp/call.c:3502 0xf538cd add_candidates ../../src/gcc/cp/call.c:5855 0x11289ec build_user_type_conversion_1 ../../src/gcc/cp/call.c:4055 0xedc654 implicit_conversion ../../src/gcc/cp/call.c:2075 0x101b193 reference_binding ../../src/gcc/cp/call.c:1914 0xedc597 implicit_conversion ../../src/gcc/cp/call.c:2013 0xf5424d add_function_candidate ../../src/gcc/cp/call.c:2410 0xf53969 add_candidates ../../src/gcc/cp/call.c:5868 0x1045831 add_operator_candidates ../../src/gcc/cp/call.c:5974 0xf5de70 build_new_op_1 ../../src/gcc/cp/call.c:6182 0xf5d597 build_new_op(op_location_t const&, tree_code, int, tree_node*, tree_node*, tree_node*, tree_node**, int) ../../src/gcc/cp/call.c:6573 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. 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. ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug other/98790] [10 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) 2021-01-22 10:47 [Bug other/98790] New: [10 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) doko at debian dot org 2021-01-22 10:50 ` [Bug other/98790] " doko at debian dot org @ 2021-01-22 10:52 ` doko at debian dot org 2021-01-22 11:07 ` doko at debian dot org ` (10 subsequent siblings) 12 siblings, 0 replies; 14+ messages in thread From: doko at debian dot org @ 2021-01-22 10:52 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98790 --- Comment #2 from Matthias Klose <doko at debian dot org> --- Created attachment 50032 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50032&action=edit another reduced test case another reduced test case (this seems to be wrong code) ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug other/98790] [10 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) 2021-01-22 10:47 [Bug other/98790] New: [10 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) doko at debian dot org 2021-01-22 10:50 ` [Bug other/98790] " doko at debian dot org 2021-01-22 10:52 ` doko at debian dot org @ 2021-01-22 11:07 ` doko at debian dot org 2021-01-22 11:23 ` [Bug other/98790] [10/11 " rguenth at gcc dot gnu.org ` (9 subsequent siblings) 12 siblings, 0 replies; 14+ messages in thread From: doko at debian dot org @ 2021-01-22 11:07 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98790 --- Comment #3 from Matthias Klose <doko at debian dot org> --- https://bugs.debian.org/980629 points to similar issue reported at https://bugzilla.redhat.com/show_bug.cgi?id=1918341 for the trunk ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug other/98790] [10/11 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) 2021-01-22 10:47 [Bug other/98790] New: [10 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) doko at debian dot org ` (2 preceding siblings ...) 2021-01-22 11:07 ` doko at debian dot org @ 2021-01-22 11:23 ` rguenth at gcc dot gnu.org 2021-01-22 11:37 ` doko at debian dot org ` (8 subsequent siblings) 12 siblings, 0 replies; 14+ messages in thread From: rguenth at gcc dot gnu.org @ 2021-01-22 11:23 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98790 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Summary|[10 Regression] ICE in |[10/11 Regression] ICE in |append_to_statement_list_1 |append_to_statement_list_1 |(Segmentation Fault) |(Segmentation Fault) Keywords| |ice-on-valid-code, | |needs-bisection Target Milestone|--- |10.3 --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- What GCC 10 version was working? ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug other/98790] [10/11 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) 2021-01-22 10:47 [Bug other/98790] New: [10 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) doko at debian dot org ` (3 preceding siblings ...) 2021-01-22 11:23 ` [Bug other/98790] [10/11 " rguenth at gcc dot gnu.org @ 2021-01-22 11:37 ` doko at debian dot org 2021-01-22 12:27 ` marxin at gcc dot gnu.org ` (7 subsequent siblings) 12 siblings, 0 replies; 14+ messages in thread From: doko at debian dot org @ 2021-01-22 11:37 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98790 --- Comment #5 from Matthias Klose <doko at debian dot org> --- the last archive test rebuild from 2020/12/26 didn't show this, using gcc-10 20201224 ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug other/98790] [10/11 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) 2021-01-22 10:47 [Bug other/98790] New: [10 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) doko at debian dot org ` (4 preceding siblings ...) 2021-01-22 11:37 ` doko at debian dot org @ 2021-01-22 12:27 ` marxin at gcc dot gnu.org 2021-01-22 12:44 ` marxin at gcc dot gnu.org ` (6 subsequent siblings) 12 siblings, 0 replies; 14+ messages in thread From: marxin at gcc dot gnu.org @ 2021-01-22 12:27 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98790 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |marxin at gcc dot gnu.org Last reconfirmed| |2021-01-22 Ever confirmed|0 |1 --- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> --- I think it's fixed with r11-6804-g2b27f37f90cb66e2. ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug other/98790] [10/11 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) 2021-01-22 10:47 [Bug other/98790] New: [10 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) doko at debian dot org ` (5 preceding siblings ...) 2021-01-22 12:27 ` marxin at gcc dot gnu.org @ 2021-01-22 12:44 ` marxin at gcc dot gnu.org 2021-01-22 12:51 ` doko at debian dot org ` (5 subsequent siblings) 12 siblings, 0 replies; 14+ messages in thread From: marxin at gcc dot gnu.org @ 2021-01-22 12:44 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98790 --- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Martin Liška from comment #6) > I think it's fixed with r11-6804-g2b27f37f90cb66e2. But it fails on gcc-10 branch since g:ff22b4e8d0613170601d28eec9462ea31147c7c7. @Marek: Can you please take a look? ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug other/98790] [10/11 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) 2021-01-22 10:47 [Bug other/98790] New: [10 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) doko at debian dot org ` (6 preceding siblings ...) 2021-01-22 12:44 ` marxin at gcc dot gnu.org @ 2021-01-22 12:51 ` doko at debian dot org 2021-01-22 13:29 ` doko at debian dot org ` (4 subsequent siblings) 12 siblings, 0 replies; 14+ messages in thread From: doko at debian dot org @ 2021-01-22 12:51 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98790 --- Comment #8 from Matthias Klose <doko at debian dot org> --- I tried to apply the trunk fix for PR98659 on the gcc-10 branch, but it still shows an ICE. ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug other/98790] [10/11 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) 2021-01-22 10:47 [Bug other/98790] New: [10 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) doko at debian dot org ` (7 preceding siblings ...) 2021-01-22 12:51 ` doko at debian dot org @ 2021-01-22 13:29 ` doko at debian dot org 2021-01-22 14:14 ` mpolacek at gcc dot gnu.org ` (3 subsequent siblings) 12 siblings, 0 replies; 14+ messages in thread From: doko at debian dot org @ 2021-01-22 13:29 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98790 --- Comment #9 from Matthias Klose <doko at debian dot org> --- however reverting the fix for PR82099 lets the build succeed again. it also fixes the mkvtoolnix build (https://bugs.debian.org/PR980596). ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug other/98790] [10/11 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) 2021-01-22 10:47 [Bug other/98790] New: [10 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) doko at debian dot org ` (8 preceding siblings ...) 2021-01-22 13:29 ` doko at debian dot org @ 2021-01-22 14:14 ` mpolacek at gcc dot gnu.org 2021-01-22 17:56 ` cvs-commit at gcc dot gnu.org ` (2 subsequent siblings) 12 siblings, 0 replies; 14+ messages in thread From: mpolacek at gcc dot gnu.org @ 2021-01-22 14:14 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98790 Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Status|NEW |ASSIGNED ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug other/98790] [10/11 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) 2021-01-22 10:47 [Bug other/98790] New: [10 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) doko at debian dot org ` (9 preceding siblings ...) 2021-01-22 14:14 ` mpolacek at gcc dot gnu.org @ 2021-01-22 17:56 ` cvs-commit at gcc dot gnu.org 2021-01-22 17:57 ` mpolacek at gcc dot gnu.org 2022-07-31 14:43 ` egallager at gcc dot gnu.org 12 siblings, 0 replies; 14+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2021-01-22 17:56 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98790 --- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Marek Polacek <mpolacek@gcc.gnu.org>: https://gcc.gnu.org/g:c806314b32987096d79de21e72dc0cf783e51d57 commit r10-9288-gc806314b32987096d79de21e72dc0cf783e51d57 Author: Marek Polacek <polacek@redhat.com> Date: Fri Jan 22 12:50:53 2021 -0500 c++: Crash when deducing template arguments [PR98790] maybe_instantiate_noexcept doesn't expect to see error_mark_node, but the new callsite I introduced in r11-6476 can pass error_mark_node to it. So cope. gcc/cp/ChangeLog: PR c++/98790 * pt.c (maybe_instantiate_noexcept): Return false if FN is error_mark_node. gcc/testsuite/ChangeLog: PR c++/98790 * g++.dg/template/deduce8.C: New test. ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug other/98790] [10/11 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) 2021-01-22 10:47 [Bug other/98790] New: [10 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) doko at debian dot org ` (10 preceding siblings ...) 2021-01-22 17:56 ` cvs-commit at gcc dot gnu.org @ 2021-01-22 17:57 ` mpolacek at gcc dot gnu.org 2022-07-31 14:43 ` egallager at gcc dot gnu.org 12 siblings, 0 replies; 14+ messages in thread From: mpolacek at gcc dot gnu.org @ 2021-01-22 17:57 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98790 Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #11 from Marek Polacek <mpolacek at gcc dot gnu.org> --- The original unreduced test now compiles with gcc10 & 11. ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug other/98790] [10/11 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) 2021-01-22 10:47 [Bug other/98790] New: [10 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) doko at debian dot org ` (11 preceding siblings ...) 2021-01-22 17:57 ` mpolacek at gcc dot gnu.org @ 2022-07-31 14:43 ` egallager at gcc dot gnu.org 12 siblings, 0 replies; 14+ messages in thread From: egallager at gcc dot gnu.org @ 2022-07-31 14:43 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98790 --- Comment #12 from Eric Gallager <egallager at gcc dot gnu.org> --- Hearing that this may still happen: https://forums.wesnoth.org/viewtopic.php?p=675418#p675418 (haven't tested myself) ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2022-07-31 14:43 UTC | newest] Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-01-22 10:47 [Bug other/98790] New: [10 Regression] ICE in append_to_statement_list_1 (Segmentation Fault) doko at debian dot org 2021-01-22 10:50 ` [Bug other/98790] " doko at debian dot org 2021-01-22 10:52 ` doko at debian dot org 2021-01-22 11:07 ` doko at debian dot org 2021-01-22 11:23 ` [Bug other/98790] [10/11 " rguenth at gcc dot gnu.org 2021-01-22 11:37 ` doko at debian dot org 2021-01-22 12:27 ` marxin at gcc dot gnu.org 2021-01-22 12:44 ` marxin at gcc dot gnu.org 2021-01-22 12:51 ` doko at debian dot org 2021-01-22 13:29 ` doko at debian dot org 2021-01-22 14:14 ` mpolacek at gcc dot gnu.org 2021-01-22 17:56 ` cvs-commit at gcc dot gnu.org 2021-01-22 17:57 ` mpolacek at gcc dot gnu.org 2022-07-31 14:43 ` egallager at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).