[Gdal-dev] gdal_translate segfaults at tiff->envi

Frank Warmerdam warmerdam at pobox.com
Thu Jun 5 11:01:02 EDT 2003


Vincent Schut wrote:
> Using latest cvs, gdal_translate segfaults if I try to convert a tiff file to 
> envi. The conversion seems to go well (reaches 100%) but then it crashes, 
> apparently before closing the resulting envi file, because it is not finished 
> (not all data is written to disk, half of the last line is missing).
> 
> Here is the gdb backtrace:
> 
> (gdb) run -of ENVI ag_199903_cl3_PP.tif ag_199903_cl3_PP.bin
> Starting program: /usr/local/bin/gdal_translate -of ENVI ag_199903_cl3_PP.tif 
> ag_199903_cl3_PP.bin
> Input file size is 7600, 2460
> 0...10...20...30...40...50...60...70...80...90...100 - done.
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x405494a1 in strstr () from /lib/i686/libc.so.6
> (gdb) backtrace
> #0  0x405494a1 in strstr () from /lib/i686/libc.so.6
> #1  0x4027bb47 in typeinfo name for DOQ1Dataset () from 
> /usr/local/lib/libgdal.1.1.so
> #2  0x400c6668 in ENVIDataset::~ENVIDataset() () from 
> /usr/local/lib/libgdal.1.1.so
> #3  0x4014c817 in GDALClose () from /usr/local/lib/libgdal.1.1.so
> #4  0x0804a3ab in main ()
> #5  0x404ec082 in __libc_start_main () from /lib/i686/libc.so.6
> (gdb) q

Vincent,

I don't have this problem.  the reference to DOQ1Dataset() in your trace
makes me wonder if there is some sort of build inconsistency.  I would suggest
doing a clean build of GDAL and trying again.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent





More information about the Gdal-dev mailing list