Opened 3 months ago

Closed 3 months ago

Last modified 3 months ago

#6683 closed defect (fixed)

/vsimem/ file closing is thread unsafe

Reported by: rouault Owned by: 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 3 months ago by rouault

  • Resolution set to fixed
  • Status changed from new to closed

In 35727:

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

comment:2 Changed 3 months ago by rouault

In 35728:

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

comment:3 Changed 3 months ago by rouault

In 35729:

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

comment:4 Changed 3 months ago by rouault

Fixed in 2.1 branch post 2.1.2RC1

comment:5 Changed 3 months ago by rouault

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