public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105631] New: GCC internal compiler error: Segmentation fault when trying to compile Qt 6.3
@ 2022-05-17 15:39 ioan.mitiu at zimperium dot com
  2022-05-17 15:54 ` [Bug c++/105631] " mpolacek at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ioan.mitiu at zimperium dot com @ 2022-05-17 15:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105631

            Bug ID: 105631
           Summary: GCC internal compiler error: Segmentation fault when
                    trying to compile Qt 6.3
           Product: gcc
           Version: 12.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ioan.mitiu at zimperium dot com
  Target Milestone: ---

Got following error when tried to compile sources after a migration from Qt
5.12.12 -> Qt 6.3:

==================================================================
/opt/qt/qt-6.3.0/include/QtCore/qfuture_impl.h:137:34: internal compiler error:
Segmentation fault
  137 |         std::is_class_v<class T::QPrivateSignal>
      |                                  ^~~~~~~~~~~~~~
0xe4c988 internal_error(char const*, ...)
        ???:0
0x9ecbcd class_decl_loc_t::add(cp_parser*, unsigned int, tag_types, tree_node*,
bool, bool)
        ???:0
0x14e7873 c_parse_file()
        ???:0
0x14c9d9e c_common_parse_file()
        ???:0
=================================================================

In order to reproduce it is needed only to have following includes:
#include <QtWidgets>
#include <QtConcurrent>

together with a member variable like:

QFutureWatcher<std::optional<StringVector>> targetsResultWatcher;

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/105631] GCC internal compiler error: Segmentation fault when trying to compile Qt 6.3
  2022-05-17 15:39 [Bug c++/105631] New: GCC internal compiler error: Segmentation fault when trying to compile Qt 6.3 ioan.mitiu at zimperium dot com
@ 2022-05-17 15:54 ` mpolacek at gcc dot gnu.org
  2022-05-17 17:34 ` ioan.mitiu at zimperium dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2022-05-17 15:54 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105631

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-05-17
                 CC|                            |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |WAITING

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I don't have those headers.  Please provide a preprocessed source file (use
-save-temps, upload the .ii file), thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/105631] GCC internal compiler error: Segmentation fault when trying to compile Qt 6.3
  2022-05-17 15:39 [Bug c++/105631] New: GCC internal compiler error: Segmentation fault when trying to compile Qt 6.3 ioan.mitiu at zimperium dot com
  2022-05-17 15:54 ` [Bug c++/105631] " mpolacek at gcc dot gnu.org
@ 2022-05-17 17:34 ` ioan.mitiu at zimperium dot com
  2022-05-17 17:52 ` mpolacek at gcc dot gnu.org
  2022-10-27  1:08 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: ioan.mitiu at zimperium dot com @ 2022-05-17 17:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105631

--- Comment #2 from Ioan Angelo Mîțiu <ioan.mitiu at zimperium dot com> ---
Yeah, they are part of QT-package.
I'll try to assemble a minimum project/config for reproducing it but won't be
so trivial.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/105631] GCC internal compiler error: Segmentation fault when trying to compile Qt 6.3
  2022-05-17 15:39 [Bug c++/105631] New: GCC internal compiler error: Segmentation fault when trying to compile Qt 6.3 ioan.mitiu at zimperium dot com
  2022-05-17 15:54 ` [Bug c++/105631] " mpolacek at gcc dot gnu.org
  2022-05-17 17:34 ` ioan.mitiu at zimperium dot com
@ 2022-05-17 17:52 ` mpolacek at gcc dot gnu.org
  2022-10-27  1:08 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2022-05-17 17:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105631

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
(In reply to Ioan Angelo Mîțiu from comment #2)
> Yeah, they are part of QT-package.
> I'll try to assemble a minimum project/config for reproducing it but won't
> be so trivial.

I think that's a lot of work, and it still wouldn't help us.  Just try to put
-save-temps into CFLAGS, the .ii file then should be in /tmp.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/105631] GCC internal compiler error: Segmentation fault when trying to compile Qt 6.3
  2022-05-17 15:39 [Bug c++/105631] New: GCC internal compiler error: Segmentation fault when trying to compile Qt 6.3 ioan.mitiu at zimperium dot com
                   ` (2 preceding siblings ...)
  2022-05-17 17:52 ` mpolacek at gcc dot gnu.org
@ 2022-10-27  1:08 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-10-27  1:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105631

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|WAITING                     |RESOLVED
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=105725

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
No preprocessed source in over 5 months.
Also this is most likely a dup of bug 105725 which is fixed in GCC 12.2.0.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-10-27  1:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-17 15:39 [Bug c++/105631] New: GCC internal compiler error: Segmentation fault when trying to compile Qt 6.3 ioan.mitiu at zimperium dot com
2022-05-17 15:54 ` [Bug c++/105631] " mpolacek at gcc dot gnu.org
2022-05-17 17:34 ` ioan.mitiu at zimperium dot com
2022-05-17 17:52 ` mpolacek at gcc dot gnu.org
2022-10-27  1:08 ` pinskia 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).