Bug 123 : Values out of range for kmin and kmax in HRFK and FK tools
Status: Solved
geopsy
General information
--FATAL ERROR-
Segmentation fault Signal
2008-05-31 16:43:58.828
main,layerPainter1,
Current thread:
---- thread main qtbfkstationsignals.cpp:30 qtbfk.cpp:45 qtbgridsearch.cpp:48 c:/usr/sesarray/include/qtbfkgridsearch.h:30 qtbhrfkloop.cpp:43 qtbhrfkloop.cpp:26 qtbparallelloop.cpp:82 qtbtoolhrfk.cpp:102 qtbgraphcontent.cpp:452 qtbgraphcontent.cpp:382 qtbgraphcontent.cpp:452 qtbgraphcontent.cpp:382 ---- thread layerPainter1 qtblayerpainterthread.cpp:39 ---- thread
Developer comments (common to all duplicates if any)
Tested various combinations of extreme values for parameters but no crash is reproducible except if kmin is very small and kmax very high Crash occurred in void QtbFKStationSignals::initPhaseShifts(int n) { QTB_TRACE; delete [] _shift; _shift=new QtbComplex [n]; } So either n was null or _shift was corrupted or deleted elsewhere. initPhaseShifts(int n) is called by void QtbGridSearch::setGrid(double minX, double maxX, double dX, double minY, double maxY, double dY) where minX=-kmax, maxX=kmax, dX=kmin, minY=-kmax, maxY=kmax, dY=kmin All combinations of kmin, kamx checked but warning from fk toolbox prevent wrong value like kmax=0. Get the crash for kmin=0.0001 and kmax=1 ==> 20000*20000*8 bytes ==> 2.98 Gb required, should add a check that size of grid cannot exceed 100 Mb, 3620 bins per axis.
Systems and versions
Windows XP | Qt 4.3.4 qtbtools 1.15.0 (200805231045, built key 200805261509) geopsycore 3.1.4 (200805231051, built key 200805261509) qtbguitools 1.8.2 (200805162004, built key 200805261509) scifigs 2.1.4 (200805231046, built key 200805261509) geopsygui 2.6.4 (200805231052, built key 200805261509) geopsy 2.5.1 (200805162007, built key 200805261509) dinvercore 0.7.0 (200805231053, built key 200805261509) qtbwave 0.7.1 (200803062243, built key 200805261509) qtbwavegui 0.4.1 (200804251855, built key 200805261509) dinverdccore 1.3.5 (200805231056, built key 200805261509) geopsyarray 2.1.2 (200805162009, built key 200805261509) geopsyhv 2.5.4 (200805162010, built key 200805261509) structureratios 0.4.2 (200805231057, built key 200805261509) |
User reports and comments
123 | 204 | 2008-06-06 15:37:57 |