Ask Your Question

nexus's profile - activity

2012-10-08 01:49:39 -0600 received badge  Student (source)
2012-10-07 20:57:40 -0600 received badge  Editor (source)
2012-10-07 17:32:56 -0600 asked a question Segmentation fault in OpenCV 2.4.9(master branch) in Win7, MinGW

System details:

  1. Compiler : MinGW gcc 4.7,
  2. OpenCV : 2.4.9 (Latest code from master branch),
  3. Dev IDE : Eclipse Juno/ CDT 8.1
  4. OS : Windows7

This question might be similar to SegFault, answer in above question suggests that issue is fixed in r8978(SVN, invalidated), but I have downloaded & compiled latest code from master branch and issue persists.

Error Message: Application crashes in run mode

Stack trace in GDB

Thread [1] 0 (Suspended : Signal : SIGSEGV:Segmentation fault)  
    libstdc++-6!_ZNKSs4sizeEv() at 0x6fc65abb   
    libstdc++-6!_ZNSs6assignEPKcj() at 0x6fc8ab0c   
    cv::BmpDecoder::BmpDecoder() at 0x6d7b98fa  
    cv::ImageCodecInitializer::ImageCodecInitializer() at 0x6d7c48a0    
    _GLOBAL__sub_I__ZN2cv6imreadERKSsi() at 0x6d83dbbf  
    __do_global_ctors() at ../mingw/gccmain.c:59 0x6d781d17 
    DllMainCRTStartup@12() at ../mingw/dllcrt1.c:83 0x6d7810f3  
    ntdll!RtlpNtMakeTemporaryKey() at 0x77269950    
    0x6d780000  
    ntdll!RtlEmptyAtomTable() at 0x7726d8c9 
    <...more frames...>

Note: Same code works fine in MinGW gcc 4.6.2

Any help is appreciated

Thanks