eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.55k stars 1.43k forks source link

crash due to concurrent access (trac #2850) #2850

Open behrisch opened 7 years ago

behrisch commented 7 years ago

when retrieving bruttoOccupancy for lane coloring, the lane is not locked against modification of partial occupators.

see bugreports folder

Migrated from http://sumo.dlr.de/ticket/2850

{
    "status": "reopened", 
    "changetime": "2017-02-08T07:14:55Z", 
    "description": "when retrieving bruttoOccupancy for lane coloring, the lane is not locked against modification of partial occupators.\n\nsee bugreports folder", 
    "reporter": "namdre", 
    "cc": "", 
    "resolution": "", 
    "_ts": "1486538095803662", 
    "component": "simulation gui (GUISIM)", 
    "summary": "crash due to concurrent access", 
    "priority": "major", 
    "keywords": "", 
    "time": "2017-02-07T11:29:57Z", 
    "milestone": "1.0.0", 
    "owner": "namdre", 
    "type": "defect"
}
behrisch commented 7 years ago
behrisch commented 7 years ago

in 5e54eb6 (aka r22871) reverting 5fe8c2a (aka r22870). It introducef thread-deadlocks. Also, despite locking myPartialVehicles, there was still potential inconsistency when calling MSVehicle::getBackPositionOnLane when the vehicle position is updated but myFurtherLanes have not been recomputed.

behrisch commented 7 years ago

@namdre changed description from:

when retrieving bruttoOccupancy for lane coloring, the lane is not locked against modification of partial occupators.

to:

when retrieving bruttoOccupancy for lane coloring, the lane is not locked against modification of partial occupators.

see bugreports folder