Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#6683 closed defect (fixed)

/vsimem/ file closing is thread unsafe

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 2.0.4
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

When closing 2 different handles pointing to the same /vsimem/ file from 2 different threads, the destruction is racy and can lead to double destruction of the VSIMemFile object.

Change History (5)

comment:1 by Even Rouault, 8 years ago

Resolution: fixed
Status: newclosed

In 35727:

/vsimem/: fix potential crash when closing -different- handles pointing to the same file from different threads (fixes #6683)

comment:2 by Even Rouault, 8 years ago

In 35728:

/vsimem/: fix potential crash when closing -different- handles pointing to the same file from different threads (fixes #6683)

comment:3 by Even Rouault, 8 years ago

In 35729:

/vsimem/: fix potential crash when closing -different- handles pointing to the same file from different threads (fixes #6683)

comment:4 by Even Rouault, 8 years ago

Fixed in 2.1 branch post 2.1.2RC1

comment:5 by Even Rouault, 8 years ago

Milestone: 2.0.4
Note: See TracTickets for help on using tickets.