public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105575] New: Segment when riscv64-g++ compile .cc
@ 2022-05-12  2:36 yahan at iscas dot ac.cn
  2022-05-12  2:46 ` [Bug c++/105575] " yahan at iscas dot ac.cn
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: yahan at iscas dot ac.cn @ 2022-05-12  2:36 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105575
           Summary: Segment when riscv64-g++ compile .cc
           Product: gcc
           Version: og11 (devel/omp/gcc-11)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: yahan at iscas dot ac.cn
  Target Milestone: ---

luyahan@plct-dev-7:~/v8/v8/out/riscv64.nati.relasegcc $
riscv64-unknown-linux-gnu-g++ -MMD -MF obj/v8_compiler/pipeline.o.d -DUSE_UDEV
-DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_LIBCPP_ABI_UNSTABLE
-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS
-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_NODISCARD
-DCR_LIBCXX_REVISION=79a2e924d96e2fc1e4b937c42efd08898fa472d7 -DNDEBUG
-DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0
-DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DV8_INTL_SUPPORT -DENABLE_HANDLE_ZAPPING
-DV8_USE_EXTERNAL_STARTUP_DATA -DV8_ATOMIC_OBJECT_FIELD_WRITES
-DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_SHARED_RO_HEAP -DV8_WIN64_UNWINDING_INFO
-DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_ENABLE_WEBASSEMBLY
-DV8_ALLOCATION_FOLDING -DV8_ALLOCATION_SITE_TRACKING
-DV8_ADVANCED_BIGINT_ALGORITHMS -DV8_DEPRECATION_WARNINGS
-DV8_IMMINENT_DEPRECATION_WARNINGS -DV8_TARGET_ARCH_RISCV64 -D__riscv_xlen=64
-DCAN_USE_FPU_INSTRUCTIONS -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX
-DV8_RUNTIME_CALL_STATS -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0
-DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0
-DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -I../.. -Igen
-I../../buildtools/third_party/libc++ -I../../include -Igen/include
-I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -Wall
-Wno-unused-local-typedefs -Wno-maybe-uninitialized
-Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned
-Wno-missing-field-initializers -Wno-unused-parameter -fno-ident
-fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector
-funwind-tables -fPIC -pipe -pthread -Wno-builtin-macro-redefined -D__DATE__=
-D__TIME__= -D__TIMESTAMP__= -fno-omit-frame-pointer -g0 -fno-builtin-abs
-fvisibility=hidden -Wno-strict-overflow -Wno-return-type
-Wno-int-in-bool-context -O3 -fdata-sections -ffunction-sections -Wno-narrowing
-Wno-class-memaccess -std=gnu++17 -fno-aligned-new -fno-exceptions -fno-rtti
-nostdinc++ -isystem../../buildtools/third_party/libc++/trunk/include
-isystem../../buildtools/third_party/libc++abi/trunk/include
-fvisibility-inlines-hidden -c ../../src/compiler/pipeline.cc -o
obj/v8_compiler/pipeline.o
riscv64-unknown-linux-gnu-g++: internal compiler error: Segmentation fault
signal terminated program cc1plus
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.

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

* [Bug c++/105575] Segment when riscv64-g++ compile .cc
  2022-05-12  2:36 [Bug c++/105575] New: Segment when riscv64-g++ compile .cc yahan at iscas dot ac.cn
@ 2022-05-12  2:46 ` yahan at iscas dot ac.cn
  2022-05-12  2:47 ` yahan at iscas dot ac.cn
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: yahan at iscas dot ac.cn @ 2022-05-12  2:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Lu Yahan <yahan at iscas dot ac.cn> ---
Created attachment 52959
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52959&action=edit
pipeline.ii

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

* [Bug c++/105575] Segment when riscv64-g++ compile .cc
  2022-05-12  2:36 [Bug c++/105575] New: Segment when riscv64-g++ compile .cc yahan at iscas dot ac.cn
  2022-05-12  2:46 ` [Bug c++/105575] " yahan at iscas dot ac.cn
@ 2022-05-12  2:47 ` yahan at iscas dot ac.cn
  2022-05-12  2:48 ` yahan at iscas dot ac.cn
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: yahan at iscas dot ac.cn @ 2022-05-12  2:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Lu Yahan <yahan at iscas dot ac.cn> ---
Created attachment 52960
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52960&action=edit
pipelein.tar.gz

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

* [Bug c++/105575] Segment when riscv64-g++ compile .cc
  2022-05-12  2:36 [Bug c++/105575] New: Segment when riscv64-g++ compile .cc yahan at iscas dot ac.cn
  2022-05-12  2:46 ` [Bug c++/105575] " yahan at iscas dot ac.cn
  2022-05-12  2:47 ` yahan at iscas dot ac.cn
@ 2022-05-12  2:48 ` yahan at iscas dot ac.cn
  2022-05-12  2:49 ` yahan at iscas dot ac.cn
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: yahan at iscas dot ac.cn @ 2022-05-12  2:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Lu Yahan <yahan at iscas dot ac.cn> ---
Created attachment 52961
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52961&action=edit
piplein00

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

* [Bug c++/105575] Segment when riscv64-g++ compile .cc
  2022-05-12  2:36 [Bug c++/105575] New: Segment when riscv64-g++ compile .cc yahan at iscas dot ac.cn
                   ` (2 preceding siblings ...)
  2022-05-12  2:48 ` yahan at iscas dot ac.cn
@ 2022-05-12  2:49 ` yahan at iscas dot ac.cn
  2022-05-12  2:49 ` yahan at iscas dot ac.cn
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: yahan at iscas dot ac.cn @ 2022-05-12  2:49 UTC (permalink / raw)
  To: gcc-bugs

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

Lu Yahan <yahan at iscas dot ac.cn> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #52959|0                           |1
        is obsolete|                            |
  Attachment #52960|0                           |1
        is obsolete|                            |

--- Comment #4 from Lu Yahan <yahan at iscas dot ac.cn> ---
Created attachment 52962
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52962&action=edit
pipeline01

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

* [Bug c++/105575] Segment when riscv64-g++ compile .cc
  2022-05-12  2:36 [Bug c++/105575] New: Segment when riscv64-g++ compile .cc yahan at iscas dot ac.cn
                   ` (3 preceding siblings ...)
  2022-05-12  2:49 ` yahan at iscas dot ac.cn
@ 2022-05-12  2:49 ` yahan at iscas dot ac.cn
  2022-05-12  2:50 ` yahan at iscas dot ac.cn
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: yahan at iscas dot ac.cn @ 2022-05-12  2:49 UTC (permalink / raw)
  To: gcc-bugs

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

Lu Yahan <yahan at iscas dot ac.cn> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #52961|0                           |1
        is obsolete|                            |

--- Comment #5 from Lu Yahan <yahan at iscas dot ac.cn> ---
Created attachment 52963
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52963&action=edit
pipeline

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

* [Bug c++/105575] Segment when riscv64-g++ compile .cc
  2022-05-12  2:36 [Bug c++/105575] New: Segment when riscv64-g++ compile .cc yahan at iscas dot ac.cn
                   ` (4 preceding siblings ...)
  2022-05-12  2:49 ` yahan at iscas dot ac.cn
@ 2022-05-12  2:50 ` yahan at iscas dot ac.cn
  2022-05-12  5:23 ` yahan at iscas dot ac.cn
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: yahan at iscas dot ac.cn @ 2022-05-12  2:50 UTC (permalink / raw)
  To: gcc-bugs

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

Lu Yahan <yahan at iscas dot ac.cn> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #52963|0                           |1
        is obsolete|                            |

--- Comment #6 from Lu Yahan <yahan at iscas dot ac.cn> ---
Created attachment 52964
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52964&action=edit
pipeline00

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

* [Bug c++/105575] Segment when riscv64-g++ compile .cc
  2022-05-12  2:36 [Bug c++/105575] New: Segment when riscv64-g++ compile .cc yahan at iscas dot ac.cn
                   ` (5 preceding siblings ...)
  2022-05-12  2:50 ` yahan at iscas dot ac.cn
@ 2022-05-12  5:23 ` yahan at iscas dot ac.cn
  2022-05-12  8:58 ` marxin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: yahan at iscas dot ac.cn @ 2022-05-12  5:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Lu Yahan <yahan at iscas dot ac.cn> ---
pipeline00 and pipline01 is tar.gz file and split into two part

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

* [Bug c++/105575] Segment when riscv64-g++ compile .cc
  2022-05-12  2:36 [Bug c++/105575] New: Segment when riscv64-g++ compile .cc yahan at iscas dot ac.cn
                   ` (6 preceding siblings ...)
  2022-05-12  5:23 ` yahan at iscas dot ac.cn
@ 2022-05-12  8:58 ` marxin at gcc dot gnu.org
  2022-05-13 12:58 ` jason at gcc dot gnu.org
  2022-05-13 13:02 ` jason at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-05-12  8:58 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
   Last reconfirmed|                            |2022-05-12
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
I can reproduce it on x86_64-linux-gnu where it ends with stack overflow:

Program received signal SIGSEGV, Segmentation fault.
0x00000000011795b3 in comp_template_parms_position (t1=0x7fffd2fa9c78,
t2=0x7fffd2fb1150) at ../../gcc/cp/typeck.c:1205
1205      if (cxx_dialect >= cxx14 && (is_auto (t1) || is_auto (t2)))
(gdb) bt
#0  0x00000000011795b3 in comp_template_parms_position (t1=0x7fffd2fa9c78,
t2=0x7fffd2fb1150) at ../../gcc/cp/typeck.c:1205
#1  0x0000000001178e83 in structural_comptypes (t1=0x7fffd2fa9c78,
t2=0x7fffd2fb1150, strict=0) at ../../gcc/cp/typeck.c:1358
#2  0x00000000012ab40a in comp_template_parms (parms1=<optimized out>,
parms2=<optimized out>) at ../../gcc/cp/pt.c:3369
#3  0x0000000001178eb9 in structural_comptypes (t1=0x7fffd2fa9c78,
t2=0x7fffd2fb1150, strict=0) at ../../gcc/cp/typeck.c:1361
#4  0x00000000012ab40a in comp_template_parms (parms1=<optimized out>,
parms2=<optimized out>) at ../../gcc/cp/pt.c:3369
#5  0x0000000001178eb9 in structural_comptypes (t1=0x7fffd2fa9c78,
t2=0x7fffd2fb1150, strict=0) at ../../gcc/cp/typeck.c:1361
#6  0x00000000012ab40a in comp_template_parms (parms1=<optimized out>,
parms2=<optimized out>) at ../../gcc/cp/pt.c:3369
#7  0x0000000001178eb9 in structural_comptypes (t1=0x7fffd2fa9c78,
t2=0x7fffd2fb1150, strict=0) at ../../gcc/cp/typeck.c:1361
#8  0x00000000012ab40a in comp_template_parms (parms1=<optimized out>,
parms2=<optimized out>) at ../../gcc/cp/pt.c:3369
#9  0x0000000001178eb9 in structural_comptypes (t1=0x7fffd2fa9c78,
t2=0x7fffd2fb1150, strict=0) at ../../gcc/cp/typeck.c:1361
#10 0x00000000012ab40a in comp_template_parms (parms1=<optimized out>,
parms2=<optimized out>) at ../../gcc/cp/pt.c:3369
#11 0x0000000001178eb9 in structural_comptypes (t1=0x7fffd2fa9c78,
t2=0x7fffd2fb1150, strict=0) at ../../gcc/cp/typeck.c:1361
#12 0x00000000012ab40a in comp_template_parms (parms1=<optimized out>,
parms2=<optimized out>) at ../../gcc/cp/pt.c:3369
#13 0x0000000001178eb9 in structural_comptypes (t1=0x7fffd2fa9c78,
t2=0x7fffd2fb1150, strict=0) at ../../gcc/cp/typeck.c:1361
#14 0x00000000012ab40a in comp_template_parms (parms1=<optimized out>,
parms2=<optimized out>) at ../../gcc/cp/pt.c:3369
#15 0x0000000001178eb9 in structural_comptypes (t1=0x7fffd2fa9c78,
t2=0x7fffd2fb1150, strict=0) at ../../gcc/cp/typeck.c:1361
#16 0x00000000012ab40a in comp_template_parms (parms1=<optimized out>,
parms2=<optimized out>) at ../../gcc/cp/pt.c:3369
#17 0x0000000001178eb9 in structural_comptypes (t1=0x7fffd2fa9c78,
t2=0x7fffd2fb1150, strict=0) at ../../gcc/cp/typeck.c:1361
#18 0x00000000012ab40a in comp_template_parms (parms1=<optimized out>,
parms2=<optimized out>) at ../../gcc/cp/pt.c:3369
#19 0x0000000001178eb9 in structural_comptypes (t1=0x7fffd2fa9c78,
t2=0x7fffd2fb1150, strict=0) at ../../gcc/cp/typeck.c:1361

While GCC 12.1 rejects the code with:

g++ pipeline.ii -c -std=gnu++17 -c
In file included from
../../buildtools/third_party/libc++/trunk/include/__locale:15,
                 from
../../buildtools/third_party/libc++/trunk/include/ios:215,
                 from
../../buildtools/third_party/libc++/trunk/include/ostream:137,
                 from ../../src/common/globals.h:12,
                 from ../../src/compiler/pipeline.h:12,
                 from ../../src/compiler/pipeline.cc:5:
../../buildtools/third_party/libc++/trunk/include/string:742:13: error:
anonymous struct with base classes

Rejected since r12-2627-g3ead06c1cff8fb42.

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

* [Bug c++/105575] Segment when riscv64-g++ compile .cc
  2022-05-12  2:36 [Bug c++/105575] New: Segment when riscv64-g++ compile .cc yahan at iscas dot ac.cn
                   ` (7 preceding siblings ...)
  2022-05-12  8:58 ` marxin at gcc dot gnu.org
@ 2022-05-13 12:58 ` jason at gcc dot gnu.org
  2022-05-13 13:02 ` jason at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2022-05-13 12:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #8)
> While GCC 12.1 rejects the code with:
> 
> ../../buildtools/third_party/libc++/trunk/include/string:742:13: error:
> anonymous struct with base classes
> 
> Rejected since r12-2627-g3ead06c1cff8fb42.

Removing the offending line

    : __padding<value_type>

allows compilation to complete with GCC 12, while 11 still crashes.

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

* [Bug c++/105575] Segment when riscv64-g++ compile .cc
  2022-05-12  2:36 [Bug c++/105575] New: Segment when riscv64-g++ compile .cc yahan at iscas dot ac.cn
                   ` (8 preceding siblings ...)
  2022-05-13 12:58 ` jason at gcc dot gnu.org
@ 2022-05-13 13:02 ` jason at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2022-05-13 13:02 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> ---
Another dupe of 102479.

*** This bug has been marked as a duplicate of bug 102479 ***

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

end of thread, other threads:[~2022-05-13 13:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-12  2:36 [Bug c++/105575] New: Segment when riscv64-g++ compile .cc yahan at iscas dot ac.cn
2022-05-12  2:46 ` [Bug c++/105575] " yahan at iscas dot ac.cn
2022-05-12  2:47 ` yahan at iscas dot ac.cn
2022-05-12  2:48 ` yahan at iscas dot ac.cn
2022-05-12  2:49 ` yahan at iscas dot ac.cn
2022-05-12  2:49 ` yahan at iscas dot ac.cn
2022-05-12  2:50 ` yahan at iscas dot ac.cn
2022-05-12  5:23 ` yahan at iscas dot ac.cn
2022-05-12  8:58 ` marxin at gcc dot gnu.org
2022-05-13 12:58 ` jason at gcc dot gnu.org
2022-05-13 13:02 ` jason 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).