Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

race condition on gdal_grid::DoCloseStorage from #831

Open
MaartenHilferink opened this issue Nov 10, 2024 · 0 comments
Open

race condition on gdal_grid::DoCloseStorage from #831

MaartenHilferink opened this issue Nov 10, 2024 · 0 comments
Assignees
Labels
code clarity and clean-up in GeoDMS source code crash Termination of program

Comments

@MaartenHilferink
Copy link
Collaborator

MaartenHilferink commented Nov 10, 2024

scenario, see #829:

  • ReadUnitRange from TIFF -> DoCloseStorage() -> if (m_IsOpen) DoCloseStorage() -> m_HDc = nullptr; m_IsOpen= false;
  • read ReadData, and in another thread of the same TIFF -> DoOpenStorage ? StorageMetaInfo::DoOpen -> if (!m_IsOpen) DoOpen()
    Consider similar scenario's with other StorageManagers()

Possible solution, use m_HDC as reusable shared resource; use m_StorageMutex to avoid race conditions on reading and/or changing this and/or m_IsOpen.

@MaartenHilferink MaartenHilferink self-assigned this Nov 10, 2024
@MaartenHilferink MaartenHilferink added crash Termination of program code clarity and clean-up in GeoDMS source code labels Nov 10, 2024
MaartenHilferink added a commit that referenced this issue Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code clarity and clean-up in GeoDMS source code crash Termination of program
Projects
None yet
Development

No branches or pull requests

1 participant