Opened 14 months ago

Closed 14 months ago

Last modified 14 months 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 Changed 14 months ago by Even Rouault

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 Changed 14 months ago by Even Rouault

In 35728:

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

comment:3 Changed 14 months ago by Even Rouault

In 35729:

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

comment:4 Changed 14 months ago by Even Rouault

Fixed in 2.1 branch post 2.1.2RC1

comment:5 Changed 14 months ago by Even Rouault

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