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