Opened 11 years ago

Closed 11 years ago

Last modified 8 years ago

#3304 closed defect (fixed)

Crash on histogram computation

Reported by: antonio Owned by: Even Rouault
Priority: normal Milestone:
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

The python interpreter crashes when I try to get the default histogram using False for the force parameter:

In [1]: from osgeo import gdal

In [2]: ds = gdal.Open('world.topo.bathy.200407.3x5400x2700.jpg')

In [3]: b1 = ds.GetRasterBand(1)

In [4]: h = b1.GetDefaultHistogram(force=False)
*** glibc detected *** /usr/bin/python: free(): invalid pointer: 0x000000000081b300 ***

Change History (4)

comment:1 Changed 11 years ago by antonio

Sorry Platform Ubuntu Karmic:

$ uname -a
Linux mac1 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009 x86_64 GNU/Linux

comment:2 Changed 11 years ago by Even Rouault

Component: PythonBindingsGDAL_Raster
Owner: changed from hobu to Even Rouault

comment:3 Changed 11 years ago by Even Rouault

Milestone: 1.7.01.6.4
Resolution: fixed
Status: newclosed

r18403 /trunk/gdal/ (3 files in 3 dirs): Fix crash of Python bindings when GDALRasterBand::GetDefaultHistogram?() returns CE_Warning (#3304)

r18404 /branches/1.6/gdal/ (3 files in 3 dirs): Fix crash of Python bindings when GDALRasterBand::GetDefaultHistogram?() returns CE_Warning (#3304)

r18405 /trunk/autotest/gcore/histogram.py: Test GetDefaultHistogram?( force = 0 ) (#3304)

comment:4 Changed 8 years ago by Even Rouault

Milestone: 1.6.4

Milestone 1.6.4 deleted

Note: See TracTickets for help on using tickets.