[geos-devel] [GEOS] #1012: Thread Sanitizer warns of data race in geos::util::Interrupt::cancel()

GEOS geos-trac at osgeo.org
Mon Jan 27 11:49:23 PST 2020


#1012: Thread Sanitizer warns of data race in geos::util::Interrupt::cancel()
------------------------+---------------------------
 Reporter:  macdrevx    |       Owner:  geos-devel@…
     Type:  defect      |      Status:  new
 Priority:  major       |   Milestone:
Component:  Default     |     Version:  3.7.0
 Severity:  Unassigned  |  Resolution:
 Keywords:              |
------------------------+---------------------------

Comment (by dbaston):

 Both threads write the same value, however. Seems like the bigger issue
 would be if one thread is checking for an interrupt while another thread
 is requesting one.

 Could change the variable in question to a std::atomic<bool>.

-- 
Ticket URL: <https://trac.osgeo.org/geos/ticket/1012#comment:1>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).


More information about the geos-devel mailing list