[Gdal-dev] Threading and CSV files

Sheykhet, Rostic rsheykhet at sanz.com
Thu Dec 22 15:55:04 EST 2005


Hi All/Frank,

I am trying to debug a SEGFAULT in gdal 1.3.1 on Linux with multiple
threads accessing the same tiff file. Each thread creates its own
DataSource.  Looks like what's happening is that multiple threads are
trying to access the same data structure (CSV file table defined in
cpl_csv.cpp) concurrently and are corrupting it.   The table variable is
declared as CPL_THREADLOCAL, but CPL_THREADLOCAL is currently a blank
#define statement.  Is there a way to bypass/mitigate this issue?


Thanks a lot

Rostic





More information about the Gdal-dev mailing list