Bug 24788 - ICE (internal compiler error - segmentation fault) "during GIMPLE pass: dom" when compiling ffmpeg
Summary: ICE (internal compiler error - segmentation fault) "during GIMPLE pass: dom" ...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Base system maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-08 14:05 CEST by Christian Lohmaier
Modified: 2019-08-10 22:49 CEST (History)
2 users (show)

See Also:
Source RPM: gcc-8.3.1-0.20190503.1.mga7.src.rpm
CVE:
Status comment:


Attachments
testcase, from ffmpeg (28.54 KB, application/x-bzip)
2019-05-08 14:06 CEST, Christian Lohmaier
Details

Description Christian Lohmaier 2019-05-08 14:05:24 CEST
Description of problem:
trying to compile ffpmeg with gcc 8.3.1 as of cauldron results in a segfault of the compiler when the default optimization level is used (-O3)
reducing to -O2 works as a workaround and doesn't trigger the bug.

Version-Release number of selected component (if applicable):
gcc (Mageia 8.3.1-0.20190503.1.mga7) 8.3.1 20190503

How reproducible:
100%

Steps to Reproduce:
1. extract the attached reduced testcase and cd to it
   $ tar -xf repro.tar.bz2
   $ cd repro
2. try to compile using -O3 using:
   $ LC_MESSAGES=C gcc -I. -O3 -c -o /tmp/rle.o rle.c
during GIMPLE pass: dom
rle.c: In function ‘ff_rle_count_pixels’:
rle.c:26:5: internal compiler error: Segmentation fault
 int ff_rle_count_pixels(const uint8_t *start, int len, int bpp, int same)
     ^~~~~~~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.mageia.org/> for instructions.

3. try the same thing using just -O2 → works
   $ LC_MESSAGES=C gcc -I. -O2 -c -o /tmp/rle.o rle.c
   $ echo $?
0
Comment 1 Christian Lohmaier 2019-05-08 14:06:12 CEST
Created attachment 10987 [details]
testcase, from ffmpeg
Marja Van Waes 2019-05-09 09:28:25 CEST

Assignee: bugsquad => basesystem
CC: (none) => marja11

Comment 2 Thomas Backlund 2019-05-11 20:34:33 CEST
Please try again with gcc-8.3.1-0.20190510.1.mga7

CC: (none) => tmb

Comment 3 Christian Lohmaier 2019-05-21 15:51:10 CEST
works for me with gcc-8.3.1-0.20190510.1.mga7, no ICE anymore with the testcase/ building ffmpeg build as part of building mpv works fine again.
Comment 4 David Walser 2019-08-10 22:49:10 CEST
I guess this was FIXED then.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.