[gdal-dev] Mixing gdal and shapelib?
Stephen Woodbridge
woodbri at swoodbridge.com
Thu Sep 2 00:27:26 EDT 2010
Hi devs,
I have written a program that uses gdal to access raster images and
shapelib calls to read and write some shapefiles.
I'm getting some SEGVs and I crashed valgrind! see valgrind gdb runs below.
It also appears the gdal/ogr has a copy of shapelib build into it so I
have tried loading -lshp -lgdal and -lgdal -lshp, but I'm guess having
two copies is bad.
I know I could use ogr, but I already had the code written with shapelib
and I have not used ogr before.
-Steve W
woodbri at mappy:~/dev/elevation$ valgrind ./shpaddelev
/u/data/routeloops-v2/01/01001/Streets.shp a.shp /u/srcdata/ned2.vrt
==16063== Memcheck, a memory error detector.
==16063== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==16063== Using LibVEX rev 1854, a library for dynamic binary translation.
==16063== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==16063== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation
framework.
==16063== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==16063== For more details, rerun with: -v
==16063==
==16063== Invalid read of size 8
==16063== at 0x4016B4: main (shpaddelev.c:194)
==16063== Address 0xf0aa9c8 is 8 bytes after a block of size 16 alloc'd
==16063== at 0x4C203E4: calloc (vg_replace_malloc.c:397)
==16063== by 0x4E284EC: SHPReadObject (in /usr/lib/libshp.so.1.0.1)
==16063== by 0x401662: main (shpaddelev.c:186)
==16063==
==16063== Invalid read of size 8
==16063== at 0x4016F8: main (shpaddelev.c:195)
==16063== Address 0xf0aaa08 is 8 bytes after a block of size 16 alloc'd
==16063== at 0x4C203E4: calloc (vg_replace_malloc.c:397)
==16063== by 0x4E284FF: SHPReadObject (in /usr/lib/libshp.so.1.0.1)
==16063== by 0x401662: main (shpaddelev.c:186)
==16063==
==16063== Invalid write of size 1
==16063== at 0x4C23C28: memset (mc_replace_strmem.c:493)
==16063== by 0x554086D: VRTSourcedRasterBand::IRasterIO(GDALRWFlag,
int, int, int, int, void*, int, int, GDALDataType, int, int)
(vrtsourcedrasterband.cpp:155)
==16063== by 0x401787: main (shpaddelev.c:196)
==16063== Address 0xf0aaa48 is 8 bytes after a block of size 16 alloc'd
==16063== at 0x4C203E4: calloc (vg_replace_malloc.c:397)
==16063== by 0x4E28512: SHPReadObject (in /usr/lib/libshp.so.1.0.1)
==16063== by 0x401662: main (shpaddelev.c:186)
==16063==
==16063== Invalid write of size 1
==16063== at 0x4C23C2C: memset (mc_replace_strmem.c:493)
==16063== by 0x554086D: VRTSourcedRasterBand::IRasterIO(GDALRWFlag,
int, int, int, int, void*, int, int, GDALDataType, int, int)
(vrtsourcedrasterband.cpp:155)
==16063== by 0x401787: main (shpaddelev.c:196)
==16063== Address 0xf0aaa49 is 9 bytes after a block of size 16 alloc'd
==16063== at 0x4C203E4: calloc (vg_replace_malloc.c:397)
==16063== by 0x4E28512: SHPReadObject (in /usr/lib/libshp.so.1.0.1)
==16063== by 0x401662: main (shpaddelev.c:186)
==16063==
==16063== Invalid write of size 1
==16063== at 0x4C23C31: memset (mc_replace_strmem.c:493)
==16063== by 0x554086D: VRTSourcedRasterBand::IRasterIO(GDALRWFlag,
int, int, int, int, void*, int, int, GDALDataType, int, int)
(vrtsourcedrasterband.cpp:155)
==16063== by 0x401787: main (shpaddelev.c:196)
==16063== Address 0xf0aaa4a is 10 bytes after a block of size 16 alloc'd
==16063== at 0x4C203E4: calloc (vg_replace_malloc.c:397)
==16063== by 0x4E28512: SHPReadObject (in /usr/lib/libshp.so.1.0.1)
==16063== by 0x401662: main (shpaddelev.c:186)
==16063==
==16063== Invalid write of size 1
==16063== at 0x4C23C36: memset (mc_replace_strmem.c:493)
==16063== by 0x554086D: VRTSourcedRasterBand::IRasterIO(GDALRWFlag,
int, int, int, int, void*, int, int, GDALDataType, int, int)
(vrtsourcedrasterband.cpp:155)
==16063== by 0x401787: main (shpaddelev.c:196)
==16063== Address 0xf0aaa4b is 11 bytes after a block of size 16 alloc'd
==16063== at 0x4C203E4: calloc (vg_replace_malloc.c:397)
==16063== by 0x4E28512: SHPReadObject (in /usr/lib/libshp.so.1.0.1)
==16063== by 0x401662: main (shpaddelev.c:186)
--16063-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11
(SIGSEGV) - exiting
--16063-- si_code=1; Faulting address: 0x0; sp: 0x402E87E20
valgrind: the 'impossible' happened:
Killed by fatal signal
==16063== at 0x38023DCF: unlinkBlock (m_mallocfree.c:205)
==16063== by 0x38024434: vgPlain_arena_malloc (m_mallocfree.c:1202)
==16063== by 0x380029E5: vgMemCheck_new_block (mc_malloc_wrappers.c:195)
==16063== by 0x38002DE4: vgMemCheck_malloc (mc_malloc_wrappers.c:226)
==16063== by 0x38038051: vgPlain_scheduler (scheduler.c:1269)
==16063== by 0x38049450: run_a_thread_NORETURN (syswrap-linux.c:89)
sched status:
running_tid=1
Thread 1: status = VgTs_Runnable
==16063== at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==16063== by 0x4E2922F: SHPWriteObject (in /usr/lib/libshp.so.1.0.1)
==16063== by 0x4017B6: main (shpaddelev.c:201)
Note: see also the FAQ.txt in the source distribution.
It contains workarounds to several common problems.
If that doesn't help, please report this bug to: www.valgrind.org
In the bug report, send all the above text, the valgrind
version, and what Linux distro you are using. Thanks.
----------------------------------------------------------------
And running it in gdb:
woodbri at mappy:~/dev/elevation$ gdb ./shpaddelev
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(gdb) run /u/data/routeloops-v2/01/01001/Streets.shp a.shp
/u/srcdata/ned2.vrt
Starting program: /home/woodbri/dev/elevation/shpaddelev
/u/data/routeloops-v2/01/01001/Streets.shp a.shp /u/srcdata/ned2.vrt
[Thread debugging using libthread_db enabled]
warning: Lowest section in /usr/lib/libicudata.so.38 is .hash at
0000000000000120
*** glibc detected *** /home/woodbri/dev/elevation/shpaddelev: free():
invalid next size (fast): 0x0000000000615250 ***
[New Thread 0x7fcd0612d710 (LWP 16472)]
======= Backtrace: =========
/lib/libc.so.6[0x7fcd04c949a8]
/lib/libc.so.6(cfree+0x76)[0x7fcd04c96ab6]
/usr/lib/libshp.so.1(SHPDestroyObject+0x33)[0x7fcd05e8b0c3]
/home/woodbri/dev/elevation/shpaddelev[0x4017c3]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7fcd04c3f1a6]
/home/woodbri/dev/elevation/shpaddelev[0x400ff9]
======= Memory map: ========
00400000-00402000 r-xp 00000000 fd:04 671833
/home/woodbri/dev/elevation/shpaddelev
00601000-00602000 rw-p 00001000 fd:04 671833
/home/woodbri/dev/elevation/shpaddelev
00602000-006a9000 rw-p 00602000 00:00 0
[heap]
7fccf4000000-7fccf4021000 rw-p 7fccf4000000 00:00 0
7fccf4021000-7fccf8000000 ---p 7fccf4021000 00:00 0
7fccfbf96000-7fccfbfa5000 r-xp 00000000 fd:02 49241
/usr/lib/libtasn1.so.3.0.15
7fccfbfa5000-7fccfc1a5000 ---p 0000f000 fd:02 49241
/usr/lib/libtasn1.so.3.0.15
7fccfc1a5000-7fccfc1a6000 rw-p 0000f000 fd:02 49241
/usr/lib/libtasn1.so.3.0.15
7fccfc1a6000-7fccfc1a9000 r-xp 00000000 fd:02 49214
/usr/lib/libgpg-error.so.0.3.0
7fccfc1a9000-7fccfc2a8000 ---p 00003000 fd:02 49214
/usr/lib/libgpg-error.so.0.3.0
7fccfc2a8000-7fccfc2a9000 rw-p 00002000 fd:02 49214
/usr/lib/libgpg-error.so.0.3.0
7fccfc2a9000-7fccfc30e000 r-xp 00000000 fd:02 49216
/usr/lib/libgcrypt.so.11.4.4
7fccfc30e000-7fccfc50d000 ---p 00065000 fd:02 49216
/usr/lib/libgcrypt.so.11.4.4
7fccfc50d000-7fccfc510000 rw-p 00064000 fd:02 49216
/usr/lib/libgcrypt.so.11.4.4
7fccfc510000-7fccfc5b7000 r-xp 00000000 fd:02 51425
/usr/lib/libgnutls.so.26.4.6
7fccfc5b7000-7fccfc7b7000 ---p 000a7000 fd:02 51425
/usr/lib/libgnutls.so.26.4.6
7fccfc7b7000-7fccfc7c2000 rw-p 000a7000 fd:02 51425
/usr/lib/libgnutls.so.26.4.6
7fccfc7c2000-7fccfc7db000 r-xp 00000000 fd:02 49644
/usr/lib/libsasl2.so.2.0.22
7fccfc7db000-7fccfc9db000 ---p 00019000 fd:02 49644
/usr/lib/libsasl2.so.2.0.22
7fccfc9db000-7fccfc9dc000 rw-p 00019000 fd:02 49644
/usr/lib/libsasl2.so.2.0.22
7fccfc9dc000-7fccfc9ec000 r-xp 00000000 fd:01 112760
/lib/libresolv-2.7.so
7fccfc9ec000-7fccfcbec000 ---p 00010000 fd:01 112760
/lib/libresolv-2.7.so
7fccfcbec000-7fccfcbee000 rw-p 00010000 fd:01 112760
/lib/libresolv-2.7.so
7fccfcbee000-7fccfcbf0000 rw-p 7fccfcbee000 00:00 0
7fccfcbf0000-7fccfcbf2000 r-xp 00000000 fd:01 112653
/lib/libkeyutils-1.2.so
7fccfcbf2000-7fccfcdf1000 ---p 00002000 fd:01 112653
/lib/libkeyutils-1.2.so
7fccfcdf1000-7fccfcdf2000 rw-p 00001000 fd:01 112653
/lib/libkeyutils-1.2.so
7fccfcdf2000-7fccfcdf9000 r-xp 00000000 fd:02 50190
/usr/lib/libkrb5support.so.0.1
7fccfcdf9000-7fccfcff9000 ---p 00007000 fd:02 50190
/usr/lib/libkrb5support.so.0.1
7fccfcff9000-7fccfcffa000 rw-p 00007000 fd:02 50190
/usr/lib/libkrb5support.so.0.1
7fccfcffa000-7fccfd01e000 r-xp 00000000 fd:02 50192
/usr/lib/libk5crypto.so.3.1
7fccfd01e000-7fccfd21e000 ---p 00024000 fd:02 50192
/usr/lib/libk5crypto.so.3.1
7fccfd21e000-7fccfd220000 rw-p 00024000 fd:02 50192
/usr/lib/libk5crypto.so.3.1
7fccfd220000-7fccfd235000 r-xp 00000000 fd:01 112714
/lib/libnsl-2.7.so
7fccfd235000-7fccfd434000 ---p 00015000 fd:01 112714
/lib/libnsl-2.7.so
7fccfd434000-7fccfd436000 rw-p 00014000 fd:01 112714
/lib/libnsl-2.7.so
7fccfd436000-7fccfd438000 rw-p 7fccfd436000 00:00 0
7fccfd438000-7fccfd446000 r-xp 00000000 fd:02 49363
/usr/lib/liblber-2.4.so.2.1.0
7fccfd446000-7fccfd646000 ---p 0000e000 fd:02 49363
/usr/lib/liblber-2.4.so.2.1.0
7fccfd646000-7fccfd647000 rw-p 0000e000 fd:02 49363
/usr/lib/liblber-2.4.so.2.1.0
7fccfd647000-7fccfd669000 r-xp 00000000 fd:02 49758
/usr/lib/libssh2.so.1.0.0
7fccfd669000-7fccfd869000 ---p 00022000 fd:02 49758
/usr/lib/libssh2.so.1.0.0
7fccfd869000-7fccfd86a000 rw-p 00022000 fd:02 49758
/usr/lib/libssh2.so.1.0.0
7fccfd86a000-7fccfd89b000 r-xp 00000000 fd:02 49719
/usr/lib/libidn.so.11.5.37
7fccfd89b000-7fccfda9b000 ---p 00031000 fd:02 49719
/usr/lib/libidn.so.11.5.37
7fccfda9b000-7fccfda9c000 rw-p 00031000 fd:02 49719
/usr/lib/libidn.so.11.5.37
7fccfda9c000-7fccfdae1000 r-xp 00000000 fd:02 49364
/usr/lib/libldap_r-2.4.so.2.1.0
7fccfdae1000-7fccfdce0000 ---p 00045000 fd:02 49364
/usr/lib/libldap_r-2.4.so.2.1.0
7fccfdce0000-7fccfdce3000 rw-p 00044000 fd:02 49364
/usr/lib/libldap_r-2.4.so.2.1.0
7fccfdce3000-7fccfdce5000 rw-p 7fccfdce3000 00:00 0
7fccfdce5000-7fccfdced000 r-xp 00000000 fd:01 112701
/lib/libcrypt-2.7.so
7fccfdced000-7fccfdeed000 ---p 00008000 fd:01 112701
/lib/libcrypt-2.7.so
7fccfdeed000-7fccfdeef000 rw-p 00008000 fd:01 112701
/lib/libcrypt-2.7.so
7fccfdeef000-7fccfdf1d000 rw-p 7fccfdeef000 00:00 0
7fccfdf1d000-7fccfdf48000 r-xp 00000000 fd:02 50186
/usr/lib/libgssapi_krb5.so.2.2
7fccfdf48000-7fccfe147000 ---p 0002b000 fd:02 50186
/usr/lib/libgssapi_krb5.so.2.2
7fccfe147000-7fccfe149000 rw-p 0002a000 fd:02 50186
/usr/lib/libgssapi_krb5.so.2.2
7fccfe149000-7fccfe14c000 r-xp 00000000 fd:01 112786
/lib/libcom_err.so.2.1
7fccfe14c000-7fccfe34b000 ---p 00003000 fd:01 112786
/lib/libcom_err.so.2.1
7fccfe34b000-7fccfe34c000 rw-p 00002000 fd:01 112786
/lib/libcom_err.so.2.1
7fccfe34c000-7fccfe3e9000 r-xp 00000000 fd:02 50188
/usr/lib/libkrb5.so.3.3
7fccfe3e9000-7fccfe5e9000 ---p 0009d000 fd:02 50188
/usr/lib/libkrb5.so.3.3
7fccfe5e9000-7fccfe5ed000 rw-p 0009d000 fd:02 50188
/usr/lib/libkrb5.so.3.3
7fccfe5ed000-7fccfe75f000 r-xp 00000000 fd:02 49292
/usr/lib/libcrypto.so.0.9.8
7fccfe75f000-7fccfe95e000 ---p 00172000 fd:02 49292
/usr/lib/libcrypto.so.0.9.8
7fccfe95e000-7fccfe984000 rw-p 00171000 fd:02 49292
/usr/lib/libcrypto.so.0.9.8
7fccfe984000-7fccfe988000 rw-p 7fccfe984000 00:00 0
7fccfe988000-7fccfe9d2000 r-xp 00000000 fd:02 49358
/usr/lib/libssl.so.0.9.8
7fccfe9d2000-7fccfebd2000 ---p 0004a000 fd:02 49358
/usr/lib/libssl.so.0.9.8
7fccfebd2000-7fccfebd9000 rw-p 0004a000 fd:02 49358
/usr/lib/libssl.so.0.9.8
7fccfebd9000-7fccfec18000 r-xp 00000000 fd:02 50247
/usr/lib/libproj.so.0.5.5
7fccfec18000-7fccfee18000 ---p 0003f000 fd:02 50247
/usr/lib/libproj.so.0.5.5
7fccfee18000-7fccfee1b000 rw-p 0003f000 fd:02 50247
/usr/lib/libproj.so.0.5.5
7fccfee1b000-7fccfee1d000 r-xp 00000000 fd:01 112713
/lib/libutil-2.7.so
7fccfee1d000-7fccff01c000 ---p 00002000 fd:01 112713
/lib/libutil-2.7.so
7fccff01c000-7fccff01e000 rw-p 00001000 fd:01 112713
/lib/libutil-2.7.so
7fccff01e000-7fccff119000 r-xp 00000000 fd:02 50973
/usr/lib/liblam.so.4.0
7fccff119000-7fccff319000 ---p 000fb000 fd:02 50973
/usr/lib/liblam.so.4.0
7fccff319000-7fccff320000 rw-p 000fb000 fd:02 50973
/usr/lib/liblam.so.4.0
7fccff320000-7fccff335000 rw-p 7fccff320000 00:00 0
7fccff335000-7fccff361000 r-xp 00000000 fd:02 50974
/usr/lib/liblamio.so.4.0
7fccff361000-7fccff561000 ---p 0002c000 fd:02 50974
/usr/lib/liblamio.so.4.0
7fccff561000-7fccff562000 rw-p 0002c000 fd:02 50974
/usr/lib/liblamio.so.4.0
7fccff562000-7fcd00038000 r--p 00000000 fd:02 49201
/usr/lib/libicudata.so.38.1
7fcd00038000-7fcd00237000 ---p 00ad6000 fd:02 49201
/usr/lib/libicudata.so.38.1
7fcd00237000-7fcd00238000 rw-p 00ad5000 fd:02 49201
/usr/lib/libicudata.so.38.1
7fcd00238000-7fcd00368000 r-xp 00000000 fd:02 49209
/usr/lib/libicuuc.so.38.1
7fcd00368000-7fcd00568000 ---p 00130000 fd:02 49209
/usr/lib/libicuuc.so.38.1
7fcd00568000-7fcd00578000 rw-p 00130000 fd:02 49209
/usr/lib/libicuuc.so.38.1
7fcd00578000-7fcd00579000 rw-p 7fcd00578000 00:00 0
7fcd00579000-7fcd00580000 r-xp 00000000 fd:02 49441
/usr/lib/libltdl.so.3.1.6
7fcd00580000-7fcd0077f000 ---p 00007000 fd:02 49441
/usr/lib/libltdl.so.3.1.6
7fcd0077f000-7fcd00780000 rw-p 00006000 fd:02 49441
/usr/lib/libltdl.so.3.1.6
7fcd00780000-7fcd008f5000 r-xp 00000000 fd:02 50244
/usr/lib/libgeos-3.2.0.so
7fcd008f5000-7fcd00af5000 ---p 00175000 fd:02 50244
/usr/lib/libgeos-3.2.0.so
7fcd00af5000-7fcd00b00000 rw-p 00175000 fd:02 50244
/usr/lib/libgeos-3.2.0.so
7fcd00b00000-7fcd00b16000 r-xp 00000000 fd:01 112650
/lib/libgcc_s.so.1
7fcd00b16000-7fcd00d16000 ---p 00016000 fd:01 112650
/lib/libgcc_s.so.1
7fcd00d16000-7fcd00d17000 rw-p 00016000 fd:01 112650
/lib/libgcc_s.so.1
7fcd00d17000-7fcd00e08000 r-xp 00000000 fd:02 50606
/usr/lib/libstdc++.so.6.0.10
7fcd00e08000-7fcd01007000 ---p 000f1000 fd:02 50606
/usr/lib/libstdc++.so.6.0.10
7fcd01007000-7fcd0100d000 r--p 000f0000 fd:02 50606
/usr/lib/libstdc++.so.6.0.10
7fcd0100d000-7fcd01010000 rw-p 000f6000 fd:02 50606
/usr/lib/libstdc++.so.6.0.10
7fcd01010000-7fcd01023000 rw-p 7fcd01010000 00:00 0
7fcd01023000-7fcd011e2000 r-xp 00000000 fd:02 49298
/usr/lib/libmysqlclient.so.15.0.0
7fcd011e2000-7fcd013e2000 ---p 001bf000 fd:02 49298
/usr/lib/libmysqlclient.so.15.0.0
7fcd013e2000-7fcd0142d000 rw-p 001bf000 fd:02 49298
/usr/lib/libmysqlclient.so.15.0.0
7fcd0142d000-7fcd0142e000 rw-p 7fcd0142d000 00:00 0
7fcd0142e000-7fcd01444000 r-xp 00000000 fd:01 112772
/lib/libpthread-2.7.so
7fcd01444000-7fcd01644000 ---p 00016000 fd:01 112772
/lib/libpthread-2.7.so
7fcd01644000-7fcd01646000 rw-p 00016000 fd:01 112772
/lib/libpthread-2.7.so
7fcd01646000-7fcd0164a000 rw-p 7fcd01646000 00:00 0
7fcd0164a000-7fcd0168f000 r-xp 00000000 fd:02 50443
/usr/lib/libcurl.so.4.1.0
7fcd0168f000-7fcd0188f000 ---p 00045000 fd:02 50443
/usr/lib/libcurl.so.4.1.0
7fcd0188f000-7fcd01891000 rw-p 00045000 fd:02 50443
/usr/lib/libcurl.so.4.1.0
7fcd01891000-7fcd01893000 r-xp 00000000 fd:01 112724
/lib/libdl-2.7.so
7fcd01893000-7fcd01a93000 ---p 00002000 fd:01 112724
/lib/libdl-2.7.so
7fcd01a93000-7fcd01a95000 rw-p 00002000 fd:01 112724
/lib/libdl-2.7.so
7fcd01a95000-7fcd01a9d000 r-xp 00000000 fd:01 112759
/lib/librt-2.7.so
7fcd01a9d000-7fcd01c9c000 ---p 00008000 fd:01 112759
/lib/librt-2.7.so
7fcd01c9c000-7fcd01c9e000 rw-p 00007000 fd:01 112759
/lib/librt-2.7.so
7fcd01c9e000-7fcd01cb4000 r-xp 00000000 fd:02 50612
/usr/lib/libz.so.1.2.3.3
7fcd01cb4000-7fcd01eb4000 ---p 00016000 fd:02 50612
/usr/lib/libz.so.1.2.3.3
7fcd01eb4000-7fcd01eb5000 rw-p 00016000 fd:02 50612
/usr/lib/libz.so.1.2.3.3
7fcd01eb5000-7fcd01eda000 r-xp 00000000 fd:02 49448
/usr/lib/libpq.so.5.2
7fcd01eda000-7fcd020da000 ---p 00025000 fd:02 49448
/usr/lib/libpq.so.5.2
7fcd020da000-7fcd020dd000 rw-p 00025000 fd:02 49448
/usr/lib/libpq.so.5.2
7fcd020dd000-7fcd02110000 r-xp 00000000 fd:02 49633
/usr/lib/libnetcdf.so.4.0.0
7fcd02110000-7fcd0230f000 ---p 00033000 fd:02 49633
/usr/lib/libnetcdf.so.4.0.0
7fcd0230f000-7fcd02310000 rw-p 00032000 fd:02 49633
/usr/lib/libnetcdf.so.4.0.0
7fcd02310000-7fcd02312000 rw-p 7fcd02310000 00:00 0
7fcd02312000-7fcd02337000 r-xp 00000000 fd:02 49259
/usr/lib/libpng12.so.0.27.0
7fcd02337000-7fcd02536000 ---p 00025000 fd:02 49259
/usr/lib/libpng12.so.0.27.0
7fcd02536000-7fcd02537000 rw-p 00024000 fd:02 49259
/usr/lib/libpng12.so.0.27.0
7fcd02537000-7fcd02558000 r-xp 00000000 fd:02 49343
/usr/lib/libjpeg.so.62.0.0
7fcd02558000-7fcd02758000 ---p 00021000 fd:02 49343
/usr/lib/libjpeg.so.62.0.0
7fcd02758000-7fcd02759000 rw-p 00021000 fd:02 49343
/usr/lib/libjpeg.so.62.0.0
7fcd02759000-7fcd02761000 r-xp 00000000 fd:02 50627
/usr/lib/libgif.so.4.1.6
7fcd02761000-7fcd02960000 ---p 00008000 fd:02 50627
/usr/lib/libgif.so.4.1.6
7fcd02960000-7fcd02961000 rw-p 00007000 fd:02 50627
/usr/lib/libgif.so.4.1.6
7fcd02961000-7fcd02980000 r-xp 00000000 fd:02 611288
/usr/lib/libogdi.so.3.2
7fcd02980000-7fcd02b80000 ---p 0001f000 fd:02 611288
/usr/lib/libogdi.so.3.2
7fcd02b80000-7fcd02b81000 rw-p 0001f000 fd:02 611288
/usr/lib/libogdi.so.3.2
7fcd02b81000-7fcd02c06000 r-xp 00000000 fd:02 50665
/usr/lib/libdf.so.4.1r4
7fcd02c06000-7fcd02e05000 ---p 00085000 fd:02 50665
/usr/lib/libdf.so.4.1r4
7fcd02e05000-7fcd02e09000 rw-p 00084000 fd:02 50665
/usr/lib/libdf.so.4.1r4
7fcd02e09000-7fcd02e32000 rw-p 7fcd02e09000 00:00 0
7fcd02e32000-7fcd02e57000 r-xp 00000000 fd:02 50663
/usr/lib/libmfhdf.so.4.1r4
7fcd02e57000-7fcd03057000 ---p 00025000 fd:02 50663
/usr/lib/libmfhdf.so.4.1r4
7fcd03057000-7fcd03058000 rw-p 00025000 fd:02 50663
/usr/lib/libmfhdf.so.4.1r4
7fcd03058000-7fcd03059000 rw-p 7fcd03058000 00:00 0
7fcd03059000-7fcd03183000 r-xp 00000000 fd:02 51480
/usr/lib/libhdf5-1.6.6.so.0.0.0
7fcd03183000-7fcd03383000 ---p 0012a000 fd:02 51480
/usr/lib/libhdf5-1.6.6.so.0.0.0
7fcd03383000-7fcd03389000 rw-p 0012a000 fd:02 51480
/usr/lib/libhdf5-1.6.6.so.0.0.0
7fcd03389000-7fcd0338a000 rw-p 7fcd03389000 00:00 0
7fcd0338a000-7fcd033ac000 r-xp 00000000 fd:02 409636
/usr/local/lib/libNCSUtil.so.0.0.0
7fcd033ac000-7fcd035ac000 ---p 00022000 fd:02 409636
/usr/local/lib/libNCSUtil.so.0.0.0
7fcd035ac000-7fcd035ae000 rw-p 00022000 fd:02 409636
/usr/local/lib/libNCSUtil.so.0.0.0
7fcd035ae000-7fcd035af000 rw-p 7fcd035ae000 00:00 0
7fcd035af000-7fcd035c3000 r-xp 00000000 fd:02 409641
/usr/local/lib/libNCSCnet.so.0.0.0
7fcd035c3000-7fcd037c3000 ---p 00014000 fd:02 409641
/usr/local/lib/libNCSCnet.so.0.0.0
7fcd037c3000-7fcd037c4000 rw-p 00014000 fd:02 409641
/usr/local/lib/libNCSCnet.so.0.0.0
7fcd037c4000-7fcd038ea000 r-xp 00000000 fd:02 409631
/usr/local/lib/libNCSEcw.so.0.0.0
7fcd038ea000-7fcd03aea000 ---p 00126000 fd:02 409631
/usr/local/lib/libNCSEcw.so.0.0.0
7fcd03aea000-7fcd03af9000 rw-p 00126000 fd:02 409631
/usr/local/lib/libNCSEcw.so.0.0.0
7fcd03af9000-7fcd03b06000 rw-p 7fcd03af9000 00:00 0
7fcd03b06000-7fcd03ebd000 r-xp 00000000 fd:02 49475
/usr/lib/libxerces-c.so.28.0
7fcd03ebd000-7fcd040bd000 ---p 003b7000 fd:02 49475
/usr/lib/libxerces-c.so.28.0
7fcd040bd000-7fcd040ff000 rw-p 003b7000 fd:02 49475
/usr/lib/libxerces-c.so.28.0
7fcd040ff000-7fcd04100000 rw-p 7fcd040ff000 00:00 0
7fcd04100000-7fcd04127000 r-xp 00000000 fd:02 49269
/usr/lib/libexpat.so.1.5.2
7fcd04127000-7fcd04327000 ---p 00027000 fd:02 49269
/usr/lib/libexpat.so.1.5.2
7fcd04327000-7fcd04329000 rw-p 00027000 fd:02 49269
/usr/lib/libexpat.so.1.5.2
7fcd04329000-7fcd04334000 r-xp 00000000 fd:02 50691
/usr/lib/libodbcinst.so.1.0.0
7fcd04334000-7fcd04534000 ---p 0000b000 fd:02 50691
/usr/lib/libodbcinst.so.1.0.0
7fcd04534000-7fcd04535000 rw-p 0000b000 fd:02 50691
/usr/lib/libodbcinst.so.1.0.0
7fcd04535000-7fcd0458a000 r-xp 00000000 fd:02 50697
/usr/lib/libodbc.so.1.0.0
7fcd0458a000-7fcd04789000 ---p 00055000 fd:02 50697
/usr/lib/libodbc.so.1.0.0
7fcd04789000-7fcd04791000 rw-p 00054000 fd:02 50697
/usr/lib/libodbc.so.1.0.0
7fcd04791000-7fcd04805000 r-xp 00000000 fd:02 49309
/usr/lib/libsqlite3.so.0.8.6
7fcd04805000-7fcd04a05000 ---p 00074000 fd:02 49309
/usr/lib/libsqlite3.so.0.8.6
7fcd04a05000-7fcd04a07000 rw-p 00074000 fd:02 49309
/usr/lib/libsqlite3.so.0.8.6
7fcd04a07000-7fcd04a20000 r-xp 00000000 fd:02 50321
/usr/lib/libgeos_c.so.1.6.0
7fcd04a20000-
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fcd0612d710 (LWP 16472)]
0x00007fcd04c52ed5 in raise () from /lib/libc.so.6
(gdb) bt
#0 0x00007fcd04c52ed5 in raise () from /lib/libc.so.6
#1 0x00007fcd04c543f3 in abort () from /lib/libc.so.6
#2 0x00007fcd04c8f408 in ?? () from /lib/libc.so.6
#3 0x00007fcd04c949a8 in ?? () from /lib/libc.so.6
#4 0x00007fcd04c96ab6 in free () from /lib/libc.so.6
#5 0x00007fcd05e8b0c3 in SHPDestroyObject () from /usr/lib/libshp.so.1
#6 0x00000000004017c3 in main (argc=0, argv=0x7fffffffd298)
at shpaddelev.c:202
(gdb) q
The program is running. Exit anyway? (y or n) y
More information about the gdal-dev
mailing list