Opened 12 years ago

Closed 12 years ago

#4446 closed defect (worksforme)

double free in gdal_translate when exiting due to error

Reported by: winkey Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

svn r23495

gdal_translate -of VRT -srcwin 1, 1, 9135 3639 /tmp/Modis_AqualcXOQQhzTB/Modis_AquaoGOBdwpOOy/right_AleutianIslands.2012015.aqua.250m.vrt /tmp/Modis_AqualcXOQQhzTB/Modis_AquaoGOBdwpOOy/right_AleutianIslands.2012015.aqua.250m_2.vrt
-srcwin 1 1 9135 3639 falls outside raster size of 6526x3640
or is otherwise illegal.
*** glibc detected *** gdal_translate: double free or corruption (!prev): 0x0806ad90 ***
======= Backtrace: =========
/lib/i686/cmov/libc.so.6[0xb6156764]
/lib/i686/cmov/libc.so.6(cfree+0x96)[0xb6158966]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb632f2e1]
/usr/lib/libstdc++.so.6(_ZNSs4_Rep10_M_destroyERKSaIcE+0x1d)[0xb630bb2d]
/home/noaa/winkey/lib/libgdal.so.1(_ZN15GDALMajorObjectD0Ev+0xa7)[0xb721acd7]
/home/noaa/winkey/lib/libgdal.so.1(_ZN17GDALDriverManagerD0Ev+0xc8)[0xb7216828]
/home/noaa/winkey/lib/libgdal.so.1(GDALDestroyDriverManager+0x24)[0xb7215e64]
/home/noaa/winkey/lib/libgdal.so.1[0xb7213a3f]
/home/noaa/winkey/lib/libgdal.so.1[0xb6f16068]
/home/noaa/winkey/lib/libgdal.so.1[0xb75291f0]
/lib/ld-linux.so.2[0xb77c1453]
/lib/i686/cmov/libc.so.6(exit+0x89)[0xb6116ab9]
gdal_translate[0x804ab3e]
gdal_translate[0x804d9db]
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb60fe455]
gdal_translate(__gxx_personality_v0+0x335)[0x8049e31]

Change History (2)

comment:1 by Even Rouault, 12 years ago

Works for me. There's just a exit(1) in the error code path, so I don't see how there could be a double free. Isn't there something odd in your setup, like a GDAL driver compiled as a plugin but against another version than the runtime one ?

comment:2 by winkey, 12 years ago

Resolution: worksforme
Status: newclosed

There is 2 gdals on the system but LD_LIBRARY_PATH was set appropriately

i dont have an issue with the ticket being closed as cannot reproduce

Thanks

Note: See TracTickets for help on using tickets.