Opened 16 years ago

Closed 16 years ago

#2518 closed defect (fixed)

GDALWarpOperation::ChunkAndWarpMulti() doesn't wait for threads to complete

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 1.5.3
Component: default Version: unspecified
Severity: normal Keywords: thread ChunkAndWarpMulti()
Cc: warmerdam

Description

I've ran into a subtle bug leading to a crash when warping a big dataset with GDALWarpOperation::ChunkAndWarpMulti(). It happens particularly when the user interrupts the work thanks to the progress callback. The function is left without waiting for the 2 working threads to complete. Thus the caller of the function can close the dataset while one of the 2 threads is working in it.

The fix is to wait for the 2 threads to complete before leaving the function.

Change History (2)

comment:1 by Even Rouault, 16 years ago

Fixed in trunk in r15087.

comment:2 by Even Rouault, 16 years ago

Milestone: 1.5.3
Resolution: fixed
Status: newclosed

Backported in branches/1.5 in r15101

Note: See TracTickets for help on using tickets.