[Gdal-dev] MrSID Segmentation Fault

Simpson asimpson at i-55.com
Thu Sep 9 13:27:27 EDT 2004


I tried to compile both gdal-1.2.1 and gdal-cvs-20040903 with the
libgeotiff-1.2.1 on my system and the compilation failed with:

...
(cd ogr; make apps)
make[1]: Entering directory `/xxx/Software/gdal-cvs-20040903/ogr'
/bin/sh ../libtool --mode=compile
g++ -Wall  -O2    -Iogrsf_frmts -I. -I../port -I../gcore -I../ogr -I../alg  
 -D_REENTRANT  -I../port  -c -o ogrinfo.o ogrinfo.cpp

g++ -Wall -O2 -Iogrsf_frmts -I. -I../port -I../gcore -I../ogr -I../alg -D_RE
ENTRANT -I../port -c ogrinfo.cpp  -fPIC -DPIC -o .libs/ogrinfo.o

g++ -Wall -O2 -Iogrsf_frmts -I. -I../port -I../gcore -I../ogr -I../alg -D_RE
ENTRANT -I../port -c ogrinfo.cpp -o ogrinfo.o >/dev/null 2>&1
/bin/sh ../libtool --mode=link  g++  ogrinfo.o ../libgdal.la -o ogrinfo
g++ ogrinfo.o -o .libs/ogrinfo

../.libs/libgdal.so -lodbc -L/usr/local/Geo_DSDK-4.0.9.713/lib/Release -llti
dsdk -lpthread -ljasper -lgif
/usr/lib/libjpeg.so -lgeotiff -ltiff -lpng -lz -ldl -L/usr/lib -lpq
../.libs/libgdal.so: undefined reference to `gtCSVReadParseLine'
collect2: ld returned 1 exit status
make[1]: *** [ogrinfo] Error 1
make[1]: Leaving directory `/xxx/Software/gdal-cvs-20040903/ogr'
make: *** [ogr-apps] Error 2

If I used the configure parameter "--with-geotiff=internal" gdal compiled
cleanly.

I downloaded and installed libgeotiff-1.2.2 and now gdal compiles cleanly,
but didn't fix problem with MrSID.

Here is gdb output from running gdalinfo against one of the problem MrSID
files:

(gdb) run n_16_30_2000c.zu.sid
Starting program: /usr/local/bin/gdalinfo n_16_30_2000c.zu.sid

Program received signal SIGSEGV, Segmentation fault.
0x40266eda in LizardTech::LTISample::getValueFloat32() const ()
   from /usr/local/lib/libgdal.so.1
(gdb) bt
#0  0x40266eda in LizardTech::LTISample::getValueFloat32() const ()
   from /usr/local/lib/libgdal.so.1
#1  0x4014ff6f in MrSIDRasterBand::MrSIDRasterBand(MrSIDDataset*, int) ()
   from /usr/local/lib/libgdal.so.1
#2  0x40150f51 in MrSIDDataset::OpenZoomLevel(int) ()
   from /usr/local/lib/libgdal.so.1
#3  0x4015132b in MrSIDDataset::Open(GDALOpenInfo*) ()
   from /usr/local/lib/libgdal.so.1
#4  0x40182abd in GDALOpen () from /usr/local/lib/libgdal.so.1
#5  0x08049833 in main ()
#6  0x42015967 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)


Thanks for your help,
Drew.



-----Original Message-----
From: gdal-dev-bounces at xserve.flids.com
[mailto:gdal-dev-bounces at xserve.flids.com]On Behalf Of Andrey Kiselev
Sent: Tuesday, September 07, 2004 2:22 PM
To: gdal-dev at xserve.flids.com
Subject: Re: [Gdal-dev] MrSID Segmentation Fault


On Tue, Sep 07, 2004 at 10:54:53AM -0500, Simpson wrote:
> I have successfully got gdal utilities to process the majority of my sid
> files, but landsat data from https://zulu.ssc.nasa.gov/mrsid/ is getting
> segmentation fault.  The MrSID utilities mrsidinfo and mrsiddecode seem to
> work properly with these datasets.  The one I've been playing with is
>
https://zulu.ssc.nasa.gov/mrsid/bin/download_file.pl?client=etmpsmos/sid&ima
> ge=N-16-30_2000.tar , if you can get through to the site.  Any
> tips/suggestions would be great.

Drew,

I shall try to reproduce your problem tomorrow. Just a single question:
what GDAL version you are working with?

> 	The geotiff on the system would not compile so used version that
> 	came with gdal.

That problem is interesting for us too. Why you can't compile
libgeotiff?

> STRACE Of gdalinfo call

Well, thanks for your output, but gdb results will be really more useful
for us...

					Regards,
					Andrey

--
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517
_______________________________________________
Gdal-dev mailing list
Gdal-dev at xserve.flids.com
http://xserve.flids.com/mailman/listinfo/gdal-dev






More information about the Gdal-dev mailing list