Bug 216451 - Assertion failed: (NodeToMatch->getOpcode() != ISD::DELETED_NODE && "NodeToMatch was removed partway through selection"), function SelectCodeCommon, file /usr/src/contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp, line 3387
Summary: Assertion failed: (NodeToMatch->getOpcode() != ISD::DELETED_NODE && "NodeToMa...
Status: Closed DUPLICATE of bug 215649
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-toolchain (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-25 00:29 UTC by Otacílio de Araújo Ramos Neto
Modified: 2017-01-25 12:01 UTC (History)
3 users (show)

See Also:


Attachments
Error message ask to attache this file (687.75 KB, application/x-7z-compressed)
2017-01-25 00:31 UTC, Otacílio de Araújo Ramos Neto
no flags Details
Error message ask to attache this file (5.19 KB, text/plain)
2017-01-25 00:32 UTC, Otacílio de Araújo Ramos Neto
no flags Details
Patch to reproduce the error (54.50 KB, patch)
2017-01-25 00:47 UTC, Otacílio de Araújo Ramos Neto
no flags Details | Diff
Patch to reproduce the error (54.36 KB, patch)
2017-01-25 01:19 UTC, Otacílio de Araújo Ramos Neto
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Otacílio de Araújo Ramos Neto 2017-01-25 00:29:44 UTC
When compiling opencv 3.1 on 12.0-CURRENT #0 r312227 I'm getting this assertion fail:

[ 57%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/sumpixels.cpp.o
cd /usr/ports/graphics/opencv3-core/work/opencv-3.1.0/modules/imgproc && /usr/bin/c++   -DCVAPI_EXPORTS -D__OPENCV_BUILD=1 -I/usr/ports/graphics/opencv3-core/work/opencv-3.1.0 -isystem /usr/local/include/eigen3 -isystem /usr/local/include/CL -I/usr/ports/graphics/opencv3-core/work/opencv-3.1.0/modules/imgproc/include -I/usr/ports/graphics/opencv3-core/work/opencv-3.1.0/modules/imgproc/src -I/usr/ports/graphics/opencv3-core/work/opencv-3.1.0/modules/imgproc -I/usr/ports/graphics/opencv3-core/work/opencv-3.1.0/modules/core/include -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing  -std=c++11 -isystem /usr/local/include   -fsigned-char -W -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -fdiagnostics-show-option -Wno-long-long -pthread -Qunused-arguments -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing  -std=c++11 -isystem /usr/local/include  -DNDEBUG -fPIC -o CMakeFiles/opencv_imgproc.dir/src/sumpixels.cpp.o -c /usr/ports/graphics/opencv3-core/work/opencv-3.1.0/modules/imgproc/src/sumpixels.cpp
--- modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.cpp.o ---
Assertion failed: (NodeToMatch->getOpcode() != ISD::DELETED_NODE && "NodeToMatch was removed partway through selection"), function SelectCodeCommon, file /usr/src/contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp, line 3387.
c++: error: unable to execute command: Abort trap (core dumped)
c++: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 3.9.1 (tags/RELEASE_391/final 289601) (based on LLVM 3.9.1)
Target: x86_64-unknown-freebsd12.0
Thread model: posix
InstalledDir: /usr/bin
c++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
c++: note: diagnostic msg:
********************
Comment 1 Otacílio de Araújo Ramos Neto 2017-01-25 00:31:29 UTC
Created attachment 179295 [details]
Error message ask to attache this file

Error message ask to attache this file
Comment 2 Otacílio de Araújo Ramos Neto 2017-01-25 00:32:07 UTC
Created attachment 179296 [details]
Error message ask to attache this file

Error message ask to attache this file
Comment 3 Otacílio de Araújo Ramos Neto 2017-01-25 00:47:27 UTC
Created attachment 179298 [details]
Patch to reproduce the error

OpenCV 3.1 is not in the ports tree. This patch is a beta port of opencv3.1 to FreeBSD. To reproduce the bug apply this patch to ports tree and cd /usr/ports/graphics/opencv3-core && make
Comment 4 Otacílio de Araújo Ramos Neto 2017-01-25 00:50:04 UTC
(In reply to otacilio.neto from comment #3)
Sorry, this patch do not reproduce the error. I'm creating a new one.
Comment 5 Otacílio de Araújo Ramos Neto 2017-01-25 01:19:01 UTC
Created attachment 179299 [details]
Patch to reproduce the error


OpenCV 3.1 is not in the ports tree. This patch is a beta port of opencv3.1 to FreeBSD. To reproduce the bug apply this patch to ports tree and cd /usr/ports/graphics/opencv3-core && make
Comment 6 Dimitry Andric freebsd_committer freebsd_triage 2017-01-25 12:01:53 UTC
This was already reported against OpenCV 3.2 in bug 215649.  There is no definite fix from upstream yet, but I could probably apply a workaround.

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