http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53050

             Bug #: 53050
           Summary: ssa_forward_propagate_and_combine: segmentation fault
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: dcb...@hotmail.com


I just tried to compile the package opencv-2.3.1
on gcc-4.8 trunk dated 20120418 on an AMD x86_64 box.

The compiler said

/home/dcb/rpmbuild/BUILD/OpenCV-2.3.1/modules/imgproc/src/smooth.cpp: In
function 'void cv::medianBlur_SortNet(const cv::Mat&, cv::Mat&, int) [with Op =
cv::MinMax16s; VecOp = cv::MinMaxVec16s]':
/home/dcb/rpmbuild/BUILD/OpenCV-2.3.1/modules/imgproc/src/smooth.cpp:1010:1:
internal compiler error: Segmentation fault
 medianBlur_SortNet( const Mat& _src, Mat& _dst, int m )
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

valgrind says

==19270== Invalid read of size 2
==19270==    at 0xC11CBC: ssa_forward_propagate_and_combine()
(tree-ssa-forwprop.c:649)
==19270==    by 0xA5E64C: execute_one_pass(opt_pass*) (passes.c:2176)
==19270==    by 0xA5EBD6: execute_pass_list(opt_pass*) (passes.c:2231)
==19270==    by 0x7EFE4D: _ZL24tree_rest_of_compilationP11cgraph_node.isra.28
(cgraphunit.c:1872)
==19270==    by 0x7F2DA5: cgraph_expand_function(cgraph_node*)
(cgraphunit.c:1942)
==19270==    by 0x7F5047: cgraph_optimize() (cgraphunit.c:2007)
==19270==    by 0x7F59D9: cgraph_finalize_compilation_unit()
(cgraphunit.c:2781)
==19270==    by 0x5F6BCA: cp_write_global_declarations() (decl2.c:4072)
==19270==    by 0xB2528E: toplev_main(int, char**) (toplev.c:572)
==19270==    by 0x3B96E21734: (below main) (in /usr/lib64/libc-2.15.so)
==19270==  Address 0x0 is not stack'd, malloc'd or (recently) free'd

Preprocessed source code attached. Flags -O3 -march=amdfam10 required.

Reply via email to