public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/106466] New: ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault
@ 2022-07-28 15:47 herrtimson at yahoo dot de
  2022-07-28 15:48 ` [Bug c++/106466] " herrtimson at yahoo dot de
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: herrtimson at yahoo dot de @ 2022-07-28 15:47 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106466
           Summary: ICE in In function 'bool jxl_skcms_Parse(const void*,
                    size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6
                    internal compiler error: Segmentation fault
           Product: gcc
           Version: 10.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: herrtimson at yahoo dot de
  Target Milestone: ---

Created attachment 53374
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53374&action=edit
compressed preprocessed source

hey everyone, 

I've hit this error when compiling libjxl libs on arm64 device with gcc-10.4.0
(gentoo): 

LANG=C /usr/bin/aarch64-unknown-linux-gnu-g++
-DHWY_DISABLED_TARGETS="(HWY_SVE|HWY_SVE2|HWY_SVE_256|HWY_SVE2_128|HWY_RVV)"
-D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\"
-I/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999/third_party/skcms 
-O2 -pipe -save-temps -fno-rtti -funwind-tables -fno-omit-frame-pointer -fPIC
-fvisibility=hidden -fvisibility-inlines-hidden
-fmacro-prefix-map=/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999=.
-Wno-builtin-macro-redefined -Wall -Wno-psabi -DJPEGXL_BUNDLE_SKCMS=1 -include
/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999/third_party/../lib/jxl/enc_jxl_skcms.h
-std=c++11 -MD -MT third_party/CMakeFiles/skcms-obj.dir/skcms/skcms.cc.o -MF
third_party/CMakeFiles/skcms-obj.dir/skcms/skcms.cc.o.d -o
third_party/CMakeFiles/skcms-obj.dir/skcms/skcms.cc.o -c
/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999/third_party/skcms/skcms.cc
aarch64-unknown-linux-gnu-g++: warning: '-pipe' ignored because '-save-temps'
specified
during GIMPLE pass: forwprop
/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999/third_party/skcms/skcms.cc:
In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)':
/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999/third_party/skcms/skcms.cc:1004:6:
internal compiler error: Segmentation fault
 1004 | bool skcms_Parse(const void* buf, size_t len, skcms_ICCProfile*
profile) {
      |      ^~~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.

will attached the preprocessed source


I seriously have no idea which component is affected here, so will guess a
value.

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

* [Bug c++/106466] ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault
  2022-07-28 15:47 [Bug c++/106466] New: ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault herrtimson at yahoo dot de
@ 2022-07-28 15:48 ` herrtimson at yahoo dot de
  2022-07-28 16:19 ` herrtimson at yahoo dot de
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: herrtimson at yahoo dot de @ 2022-07-28 15:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from tt_1 <herrtimson at yahoo dot de> ---
here is my gcc -v

LANG=C gcc -v

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-unknown-linux-gnu/10.4.0/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with:
/var/tmp/portage/portage/sys-devel/gcc-10.4.0/work/gcc-10.4.0/configure
--host=aarch64-unknown-linux-gnu --target=aarch64-unknown-linux-gnu
--build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/aarch64-unknown-linux-gnu/gcc-bin/10.4.0
--includedir=/usr/lib/gcc/aarch64-unknown-linux-gnu/10.4.0/include
--datadir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/10.4.0
--mandir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/10.4.0/man
--infodir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/10.4.0/info
--with-gxx-include-dir=/usr/lib/gcc/aarch64-unknown-linux-gnu/10.4.0/include/g++-v10
--with-python-dir=/share/gcc-data/aarch64-unknown-linux-gnu/10.4.0/python
--enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--disable-libunwind-exceptions --enable-checking=release
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 10.4.0 p2'
--disable-esp --enable-libstdcxx-time --disable-libstdcxx-pch --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--disable-multilib --disable-fixed-point --enable-libgomp --disable-libssp
--disable-libada --disable-cet --disable-systemtap --disable-vtable-verify
--disable-libvtv --with-zstd --enable-lto --without-isl --disable-libsanitizer
--enable-default-pie --enable-default-ssp
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.4.0 (Gentoo 10.4.0 p2)

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

* [Bug c++/106466] ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault
  2022-07-28 15:47 [Bug c++/106466] New: ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault herrtimson at yahoo dot de
  2022-07-28 15:48 ` [Bug c++/106466] " herrtimson at yahoo dot de
@ 2022-07-28 16:19 ` herrtimson at yahoo dot de
  2022-07-28 16:25 ` [Bug middle-end/106466] " pinskia at gcc dot gnu.org
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: herrtimson at yahoo dot de @ 2022-07-28 16:19 UTC (permalink / raw)
  To: gcc-bugs

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

tt_1 <herrtimson at yahoo dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|middle-end                  |c++

--- Comment #2 from tt_1 <herrtimson at yahoo dot de> ---
-O2 and -O3 are affected

-O1 has a slightly different error, would you like me to adress this in another
bug?

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

* [Bug middle-end/106466] ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault
  2022-07-28 15:47 [Bug c++/106466] New: ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault herrtimson at yahoo dot de
  2022-07-28 15:48 ` [Bug c++/106466] " herrtimson at yahoo dot de
  2022-07-28 16:19 ` herrtimson at yahoo dot de
@ 2022-07-28 16:25 ` pinskia at gcc dot gnu.org
  2022-07-28 16:30 ` [Bug c++/106466] " herrtimson at yahoo dot de
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-07-28 16:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to tt_1 from comment #2)
> -O2 and -O3 are affected
> 
> -O1 has a slightly different error, would you like me to adress this in
> another bug?

Just put the error message here and we will decide.

Note the preprocessed source does not compile with a GCC 12 (due to aarch64
backend changes), so it might take a while to reproduce the issue and such.

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

* [Bug c++/106466] ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault
  2022-07-28 15:47 [Bug c++/106466] New: ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault herrtimson at yahoo dot de
                   ` (2 preceding siblings ...)
  2022-07-28 16:25 ` [Bug middle-end/106466] " pinskia at gcc dot gnu.org
@ 2022-07-28 16:30 ` herrtimson at yahoo dot de
  2022-07-29  7:29 ` rguenth at gcc dot gnu.org
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: herrtimson at yahoo dot de @ 2022-07-28 16:30 UTC (permalink / raw)
  To: gcc-bugs

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

tt_1 <herrtimson at yahoo dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|middle-end                  |c++

--- Comment #4 from tt_1 <herrtimson at yahoo dot de> ---
fair enough, here it is: 

localhost /var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999_build-.arm64
# LANG=C /usr/bin/aarch64-unknown-linux-gnu-g++
-DHWY_DISABLED_TARGETS="(HWY_SVE|HWY_SVE2|HWY_SVE_256|HWY_SVE2_128|HWY_RVV)"
-D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\"
-I/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999/third_party/skcms 
-O1 -pipe -save-temps -fno-rtti -funwind-tables -fno-omit-frame-pointer -fPIC
-fvisibility=hidden -fvisibility-inlines-hidden
-fmacro-prefix-map=/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999=.
-Wno-builtin-macro-redefined -Wall -Wno-psabi -DJPEGXL_BUNDLE_SKCMS=1 -include
/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999/third_party/../lib/jxl/enc_jxl_skcms.h
-std=c++11 -MD -MT third_party/CMakeFiles/skcms-obj.dir/skcms/skcms.cc.o -MF
third_party/CMakeFiles/skcms-obj.dir/skcms/skcms.cc.o.d -o
third_party/CMakeFiles/skcms-obj.dir/skcms/skcms.cc.o -c
/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999/third_party/skcms/skcms.cc
aarch64-unknown-linux-gnu-g++: warning: '-pipe' ignored because '-save-temps'
specified
during GIMPLE pass: fre
/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999/third_party/skcms/skcms.cc:
In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)':
/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999/third_party/skcms/skcms.cc:2628:1:
internal compiler error: Segmentation fault
 2628 | }
      | ^
Please submit a full bug report,
with preprocessed source if appropriate.



take all the time that you need

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

* [Bug c++/106466] ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault
  2022-07-28 15:47 [Bug c++/106466] New: ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault herrtimson at yahoo dot de
                   ` (3 preceding siblings ...)
  2022-07-28 16:30 ` [Bug c++/106466] " herrtimson at yahoo dot de
@ 2022-07-29  7:29 ` rguenth at gcc dot gnu.org
  2022-07-29 13:19 ` herrtimson at yahoo dot de
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-07-29  7:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
can't reproduce with a cross from x86_64

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

* [Bug c++/106466] ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault
  2022-07-28 15:47 [Bug c++/106466] New: ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault herrtimson at yahoo dot de
                   ` (4 preceding siblings ...)
  2022-07-29  7:29 ` rguenth at gcc dot gnu.org
@ 2022-07-29 13:19 ` herrtimson at yahoo dot de
  2022-08-01  8:52 ` marxin at gcc dot gnu.org
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: herrtimson at yahoo dot de @ 2022-07-29 13:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from tt_1 <herrtimson at yahoo dot de> ---
works with: 

gcc-10.3.0
gcc-10.3.1_p20211126
gcc-11.3.0

does not work with: 

gcc-10.4.0

the segfault is sort of spurious, its an about 1/5 to 1/7 chance for me. Is
that something you can work with?   

and indeed these are two seperate segfaults, I got the -O1 from comment #4 now
reproduced with -O2 as well

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

* [Bug c++/106466] ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault
  2022-07-28 15:47 [Bug c++/106466] New: ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault herrtimson at yahoo dot de
                   ` (5 preceding siblings ...)
  2022-07-29 13:19 ` herrtimson at yahoo dot de
@ 2022-08-01  8:52 ` marxin at gcc dot gnu.org
  2022-08-01  8:53 ` marxin at gcc dot gnu.org
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-08-01  8:52 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2022-08-01
                 CC|                            |marxin at gcc dot gnu.org

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
Can you please reduce it with C-Vise?

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

* [Bug c++/106466] ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault
  2022-07-28 15:47 [Bug c++/106466] New: ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault herrtimson at yahoo dot de
                   ` (6 preceding siblings ...)
  2022-08-01  8:52 ` marxin at gcc dot gnu.org
@ 2022-08-01  8:53 ` marxin at gcc dot gnu.org
  2022-08-01 13:35 ` herrtimson at yahoo dot de
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-08-01  8:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
> the segfault is sort of spurious, its an about 1/5 to 1/7 chance for me. Is
> that something you can work with?   

Please run the compiler under valgrind.

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

* [Bug c++/106466] ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault
  2022-07-28 15:47 [Bug c++/106466] New: ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault herrtimson at yahoo dot de
                   ` (7 preceding siblings ...)
  2022-08-01  8:53 ` marxin at gcc dot gnu.org
@ 2022-08-01 13:35 ` herrtimson at yahoo dot de
  2022-08-02 19:48 ` herrtimson at yahoo dot de
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: herrtimson at yahoo dot de @ 2022-08-01 13:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from tt_1 <herrtimson at yahoo dot de> ---
started with pr105998 

commit 20bb976fb6a853d4f79577278ac2f01622946b61
Author: Jakub Jelinek <jakub@redhat.com>
Date: Sat, 18 Jun 2022 09:07:13 +0000

varasm: Fix up ICE in narrowing_initializer_constant_valid_p [PR105998]

The following testcase ICEs because there is NON_LVALUE_EXPR (location
wrapper) around a VAR_DECL and has TYPE_MODE V2SImode and
SCALAR_INT_TYPE_MODE on that ICEs.  Or for -m32 -march=i386 TYPE_MODE
is DImode, but SCALAR_INT_TYPE_MODE still uses the raw V2SImode and ICEs
too.

2022-06-18  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/105998
* varasm.c (narrowing_initializer_constant_valid_p): Check
SCALAR_INT_MODE_P instead of INTEGRAL_MODE_P, also break on
! INTEGRAL_TYPE_P and do the same check also on op{0,1}'s type.

* c-c++-common/pr105998.c: New test.


here is how I did it: 

the first bad version is 10.4.0-RC
the last good version is 10-20220616

Its just a handfull of commits between those snapshots, so I compiled
10-20220616 and added those commits subsequentially, via local patch files. 

Its a problem though that cross-compiler doesn't confirm the ICE, and native
compile is kind if heisenbugging around. I'll ask the original author if he has
any suggestion what could happen here. 

gcc-11.3.0 is not affected, as the fix landed for gcc-11.4.0 and I haven't yet
found the time to test these snapshots.

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

* [Bug c++/106466] ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault
  2022-07-28 15:47 [Bug c++/106466] New: ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault herrtimson at yahoo dot de
                   ` (8 preceding siblings ...)
  2022-08-01 13:35 ` herrtimson at yahoo dot de
@ 2022-08-02 19:48 ` herrtimson at yahoo dot de
  2022-08-02 19:51 ` herrtimson at yahoo dot de
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: herrtimson at yahoo dot de @ 2022-08-02 19:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from tt_1 <herrtimson at yahoo dot de> ---
so I simply did use valgrind as in < /usr/bin/valgrind gcc command > , heres
the result: 

==32586== Memcheck, a memory error detector
==32586== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==32586== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==32586== Command: /usr/bin/aarch64-unknown-linux-gnu-g++
-DHWY_DISABLED_TARGETS=(HWY_SVE|HWY_SVE2|HWY_SVE_256|HWY_SVE2_128|HWY_RVV)
-D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted"
-I/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999/third_party/skcms
-O2 -pipe -save-temps -fno-rtti -funwind-tables -fno-omit-frame-pointer -fPIC
-fvisibility=hidden -fvisibility-inlines-hidden
-fmacro-prefix-map=/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999=.
-Wno-builtin-macro-redefined -Wall -Wno-psabi -DJPEGXL_BUNDLE_SKCMS=1 -include
/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999/third_party/../lib/jxl/enc_jxl_skcms.h
-std=c++11 -MD -MT third_party/CMakeFiles/skcms-obj.dir/skcms/skcms.cc.o -MF
third_party/CMakeFiles/skcms-obj.dir/skcms/skcms.cc.o.d -o
third_party/CMakeFiles/skcms-obj.dir/skcms/skcms.cc.o -c
/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999/third_party/skcms/skcms.cc
==32586== 
--32586-- WARNING: unhandled arm64-linux syscall: 293
--32586-- You may be able to write your own handler.
--32586-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--32586-- Nevertheless we consider this a bug.  Please report
--32586-- it at http://valgrind.org/support/bug_reports.html.
aarch64-unknown-linux-gnu-g++: warning: '-pipe' ignored because '-save-temps'
specified
during GIMPLE pass: fre
/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999/third_party/skcms/skcms.cc:
In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)':
/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999/third_party/skcms/skcms.cc:1004:6:
internal compiler error: Segmentation fault
 1004 | bool skcms_Parse(const void* buf, size_t len, skcms_ICCProfile*
profile) {
      |      ^~~~~~~~~~~~~~~
0x7f82d9707b __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58
0x7f82d9714b __libc_start_main_impl
        ../csu/libc-start.c:389

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

* [Bug c++/106466] ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault
  2022-07-28 15:47 [Bug c++/106466] New: ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault herrtimson at yahoo dot de
                   ` (9 preceding siblings ...)
  2022-08-02 19:48 ` herrtimson at yahoo dot de
@ 2022-08-02 19:51 ` herrtimson at yahoo dot de
  2022-08-02 21:00 ` [Bug middle-end/106466] " herrtimson at yahoo dot de
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: herrtimson at yahoo dot de @ 2022-08-02 19:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from tt_1 <herrtimson at yahoo dot de> ---
Created attachment 53400
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53400&action=edit
a more verbose output with valgrind --leak-check=full

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

* [Bug middle-end/106466] ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault
  2022-07-28 15:47 [Bug c++/106466] New: ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault herrtimson at yahoo dot de
                   ` (10 preceding siblings ...)
  2022-08-02 19:51 ` herrtimson at yahoo dot de
@ 2022-08-02 21:00 ` herrtimson at yahoo dot de
  2022-08-02 21:01 ` herrtimson at yahoo dot de
  2022-08-02 21:02 ` pinskia at gcc dot gnu.org
  13 siblings, 0 replies; 15+ messages in thread
From: herrtimson at yahoo dot de @ 2022-08-02 21:00 UTC (permalink / raw)
  To: gcc-bugs

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

tt_1 <herrtimson at yahoo dot de> changed:

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

--- Comment #12 from tt_1 <herrtimson at yahoo dot de> ---
Created attachment 53401
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53401&action=edit
a more verbose output with debug-gcc and valgrind --leak-check=full

recompiled gcc with -ggdb for more usefull output

I hope this is usefull? If not please leave a comment with directions :)

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

* [Bug middle-end/106466] ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault
  2022-07-28 15:47 [Bug c++/106466] New: ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault herrtimson at yahoo dot de
                   ` (11 preceding siblings ...)
  2022-08-02 21:00 ` [Bug middle-end/106466] " herrtimson at yahoo dot de
@ 2022-08-02 21:01 ` herrtimson at yahoo dot de
  2022-08-02 21:02 ` pinskia at gcc dot gnu.org
  13 siblings, 0 replies; 15+ messages in thread
From: herrtimson at yahoo dot de @ 2022-08-02 21:01 UTC (permalink / raw)
  To: gcc-bugs

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

tt_1 <herrtimson at yahoo dot de> changed:

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

--- Comment #13 from tt_1 <herrtimson at yahoo dot de> ---
Created attachment 53402
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53402&action=edit
compressed preprocessed source

reattached preprocessed source from the current valgrind run

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

* [Bug middle-end/106466] ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault
  2022-07-28 15:47 [Bug c++/106466] New: ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault herrtimson at yahoo dot de
                   ` (12 preceding siblings ...)
  2022-08-02 21:01 ` herrtimson at yahoo dot de
@ 2022-08-02 21:02 ` pinskia at gcc dot gnu.org
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-08-02 21:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I suspect this is a GC (garbage collection) issue.
It might be easier to reduce it using --param ggc-min-expand=1 --param
ggc-min-heapsize=1 (and then moving them both to 0 afterwards).


https://gcc.gnu.org/wiki/A_guide_to_testcase_reduction?highlight=%28reduce%29

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

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

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-28 15:47 [Bug c++/106466] New: ICE in In function 'bool jxl_skcms_Parse(const void*, size_t, skcms_ICCProfile*)': at skcms/skcms.cc:1004:6 internal compiler error: Segmentation fault herrtimson at yahoo dot de
2022-07-28 15:48 ` [Bug c++/106466] " herrtimson at yahoo dot de
2022-07-28 16:19 ` herrtimson at yahoo dot de
2022-07-28 16:25 ` [Bug middle-end/106466] " pinskia at gcc dot gnu.org
2022-07-28 16:30 ` [Bug c++/106466] " herrtimson at yahoo dot de
2022-07-29  7:29 ` rguenth at gcc dot gnu.org
2022-07-29 13:19 ` herrtimson at yahoo dot de
2022-08-01  8:52 ` marxin at gcc dot gnu.org
2022-08-01  8:53 ` marxin at gcc dot gnu.org
2022-08-01 13:35 ` herrtimson at yahoo dot de
2022-08-02 19:48 ` herrtimson at yahoo dot de
2022-08-02 19:51 ` herrtimson at yahoo dot de
2022-08-02 21:00 ` [Bug middle-end/106466] " herrtimson at yahoo dot de
2022-08-02 21:01 ` herrtimson at yahoo dot de
2022-08-02 21:02 ` 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).