Updated by Alexander Shishkov almost 13 years ago
Steps to reproduce on Windows 7 with hardware equivalent of a Macbook6,1 (2.26GHz Intel Core 2 Duo P7550, 4GB RAM):
1. Fresh Install of Windows 7 x64
2. Install QtSDK 1.1.3 (Comes with MinGW 4.4, GCC 4.4.0 and ld 2.19.1)
3. Install OpenCV from SVN checkout 6769. In CMake: Select Release Mode. Check ENABLE_SSE, ENABLE_SSE2, ENABLE_SSE3, ENABLE_SSSE3, ENABLE_SSE41 and WITH_QT. Uncheck USE_OMIT_FRAME_POINTER. Change RELEASE CXX- and C-FLAGS to -O3 -ggdb3.
4. Run opencv_test_imgproc. Expected result: Crash while calling remap().
The following fix is a proof-of-concept solution that solves the problem on my machine, but is not appropriate for inclusion in the official source code:
Replace line 68
<pre><code class="cpp"> <pre>
static short CV_DECL_ALIGNED(16) BilinearTab_iC4INTER_TAB_SIZE2r2r8; BilinearTab_iC4[INTER_TAB_SIZE2]r2r8;
</code></pre> </pre>
with
<pre><code class="cpp"> <pre>
typedef struct{
unsigned char dummy_padr8;
short BilinearTab_iC4INTER_TAB_SIZE2r2r8;
} BiLinearTab_iC4_ALIGNED;
static CV_DECL_ALIGNED(16) BiLinearTab_iC4_ALIGNED BiLinearALIGNED;
#define BilinearTab_iC4 BiLinearALIGNED.BilinearTab_iC4
</code></pre> </pre>
1. Fresh Install of Windows 7 x64
2. Install QtSDK 1.1.3 (Comes with MinGW 4.4, GCC 4.4.0 and ld 2.19.1)
3. Install OpenCV from SVN checkout 6769. In CMake: Select Release Mode. Check ENABLE_SSE, ENABLE_SSE2, ENABLE_SSE3, ENABLE_SSSE3, ENABLE_SSE41 and WITH_QT. Uncheck USE_OMIT_FRAME_POINTER. Change RELEASE CXX- and C-FLAGS to -O3 -ggdb3.
4. Run opencv_test_imgproc. Expected result: Crash while calling remap().
The following fix is a proof-of-concept solution that solves the problem on my machine, but is not appropriate for inclusion in the official source code:
Replace line 68
<pre><code class="cpp"> <pre>
static short CV_DECL_ALIGNED(16) BilinearTab_iC4INTER_TAB_SIZE2r2r8; BilinearTab_iC4[INTER_TAB_SIZE2]r2r8;
</code></pre> </pre>
with
<pre><code class="cpp"> <pre>
typedef struct{
unsigned char dummy_padr8;
short BilinearTab_iC4INTER_TAB_SIZE2r2r8;
} BiLinearTab_iC4_ALIGNED;
static CV_DECL_ALIGNED(16) BiLinearTab_iC4_ALIGNED BiLinearALIGNED;
#define BilinearTab_iC4 BiLinearALIGNED.BilinearTab_iC4
</code></pre> </pre>