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

[Backport release/3.10] Update ogrct.cpp to remove shared shared proj context (m_psLastContex… #11860

Merged
merged 2 commits into from
Feb 18, 2025

Conversation

rouault
Copy link
Member

@rouault rouault commented Feb 18, 2025

Backport #11846
Authored by: @samiermerchant

samiermerchant and others added 2 commits February 18, 2025 12:41
…t), which can lead to scenarios where one thread destroys the context while another is still using it

Undo 94ede75, which causes segfaults when using gdal in a multi-threaded environment such as a thread worker pool.

It might be the case that one thread "destroys" the context (m_psLastContext) while another thread is still using it, leading to a segfault. As you can see with the following line: m_psLastContext = OSRGetProjTLSContext();
@rouault rouault added this to the 3.10.3 milestone Feb 18, 2025
@rouault rouault merged commit 83e45c5 into release/3.10 Feb 18, 2025
34 of 36 checks passed
@rouault rouault deleted the backport-11846-to-release/3.10 branch February 18, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants