Hi, I have compiled ECW SDK 3.3 on debian linux, then i have recompiled gdal 1.3.1.0 and I'm able to use ecw file. When I try to use ecw image in mapfile, shp2img gives error segmentation fault. So I have recompiled mapserver 4.6.1, but nothing change always segmentation fault sig. I have used valgrind to debug: valgrind shp2img -m world.map -o pippo ==5501== Memcheck, a memory error detector. ==5501== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==5501== Using LibVEX rev 1367, a library for dynamic binary translation. ==5501== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP. ==5501== Using valgrind-3.0.1-Debian, a dynamic binary instrumentation framework. ==5501== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. ==5501== For more details, rerun with: -v ==5501== --5501-- DWARF2 CFI reader: unhandled CFI instruction 0:50 --5501-- DWARF2 CFI reader: unhandled CFI instruction 0:50 --5501-- DWARF2 CFI reader: unhandled CFI instruction 0:50 --5501-- DWARF2 CFI reader: unhandled CFI instruction 0:50 ==5501== Thread 2: ==5501== Invalid read of size 4 ==5501== at 0x1C9EF94A: NCSThreadLSSetValue (in /usr/lib/libNCSUtil.so) ==5501== by 0x1C9EFC78: (within /usr/lib/libNCSUtil.so) ==5501== by 0x1C04BCFC: start_thread (in /lib/tls/libpthread-2.3.5.so) ==5501== by 0x1C129F1D: clone (in /lib/tls/libc-2.3.5.so) ==5501== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==5501== ==5501== Process terminating with default action of signal 11 (SIGSEGV) ==5501== Access not within mapped region at address 0x0 ==5501== at 0x1C9EF94A: NCSThreadLSSetValue (in /usr/lib/libNCSUtil.so) ==5501== by 0x1C9EFC78: (within /usr/lib/libNCSUtil.so) ==5501== by 0x1C04BCFC: start_thread (in /lib/tls/libpthread-2.3.5.so) ==5501== by 0x1C129F1D: clone (in /lib/tls/libc-2.3.5.so) ==5501== ==5501== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 117 from 1) ==5501== malloc/free: in use at exit: 753207 bytes in 1168 blocks. ==5501== malloc/free: 193455 allocs, 192287 frees, 32573846 bytes allocated. ==5501== For counts of detected errors, rerun with: -v ==5501== searching for pointers to 1168 not-freed blocks. ==5501== checked 11946920 bytes. ==5501== ==5501== LEAK SUMMARY: ==5501== definitely lost: 0 bytes in 0 blocks. ==5501== possibly lost: 1400 bytes in 68 blocks. ==5501== still reachable: 751807 bytes in 1100 blocks. ==5501== suppressed: 0 bytes in 0 blocks. ==5501== Reachable blocks (those to which a pointer was found) are not shown. ==5501== To see them, rerun with: --show-reachable=yes Killed Any idea. Thank Andrea
