Bug 2182068

Summary: internal compiler error: Segmentation fault building opencv
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: aoliva, dmalcolm, fweimer, jakub, jlaw, jwakely, mcermak, mpolacek, msebor, nickc, sergio, sipoyare
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-02 01:14:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
pre-processed source none

Description Orion Poplawski 2023-03-27 13:31:58 UTC
Created attachment 1953945 [details]
pre-processed source

Description of problem:

When building opencv in Rawhide:

/usr/bin/ccache /usr/bin/g++ -DCVAPI_EXPORTS -DVK_NO_PROTOTYPES -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/orion/fedora/opencv/opencv-4.7.0/redhat-linux-build -I/usr/include/vulkan -I/home/orion/fedora/opencv/opencv-4.7.0/modules/stitching/include -I/home/orion/fedora/opencv/opencv-4.7.0/redhat-linux-build/modules/stitching -I/home/orion/fedora/opencv/opencv-4.7.0/modules/core/include -I/home/orion/fedora/opencv/opencv-4.7.0/modules/flann/include -I/home/orion/fedora/opencv/opencv-4.7.0/modules/imgproc/include -I/home/orion/fedora/opencv/opencv-4.7.0/modules/features2d/include -I/home/orion/fedora/opencv/opencv-4.7.0/modules/calib3d/include -isystem /usr/include/gdal -isystem /usr/include/coin -isystem /usr/include/openblas -isystem /usr/include/eigen3 -O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -std=c++11 -fPIC -MD -MT modules/stitching/CMakeFiles/opencv_stitching.dir/src/warpers.cpp.o -MF CMakeFiles/opencv_stitching.dir/src/warpers.cpp.o.d -o CMakeFiles/opencv_stitching.dir/src/warpers.cpp.o -c /home/orion/fedora/opencv/opencv-4.7.0/modules/stitching/src/warpers.cpp

*** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins.
Event                            | Plugins
PLUGIN_FINISH_UNIT               | annobin: Generate final annotations
PLUGIN_START_UNIT                | annobin: Generate global annotations
PLUGIN_ALL_PASSES_START          | annobin: Generate per-function annotations
PLUGIN_ALL_PASSES_END            | annobin: Register per-function end symbols
during GIMPLE pass: vrp
In file included from /home/orion/fedora/opencv/opencv-4.7.0/modules/stitching/include/opencv2/stitching/detail/warpers.hpp:704,
                 from /home/orion/fedora/opencv/opencv-4.7.0/modules/stitching/include/opencv2/stitching/warpers.hpp:46,
                 from /home/orion/fedora/opencv/opencv-4.7.0/modules/stitching/include/opencv2/stitching.hpp:48,
                 from /home/orion/fedora/opencv/opencv-4.7.0/modules/stitching/src/precomp.hpp:59,
                 from /home/orion/fedora/opencv/opencv-4.7.0/modules/stitching/src/warpers.cpp:43:
/home/orion/fedora/opencv/opencv-4.7.0/modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp: In member function 'void cv::detail::RotationWarperBase<P>::detectResultRoiByBorder(cv::Size, cv::Point&, cv::Point&) [with P = cv::detail::SphericalProjector]':
/home/orion/fedora/opencv/opencv-4.7.0/modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp:185:6: internal compiler error: Segmentation fault
  185 | void RotationWarperBase<P>::detectResultRoiByBorder(Size src_size, Point &dst_tl, Point &dst_br)
      |      ^~~~~~~~~~~~~~~~~~~~~
Please submit a full bug report, with preprocessed source.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/cc1xQlO5.out file, please attach this to your bugreport.


Version-Release number of selected component (if applicable):
gcc-13.0.1-0.10.fc39.x86_64

We don't see it in F38 with 13.0.1-0.8.fc38

Comment 1 Marek Polacek 2023-03-27 13:48:25 UTC
I think this is <https://gcc.gnu.org/PR109274>.