You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2020/11/09 14:23:03 UTC

[GitHub] [arrow] pitrou opened a new pull request #8615: ARROW-10519: [Python] Fix deadlock when importing pandas from several threads

pitrou opened a new pull request #8615:
URL: https://github.com/apache/arrow/pull/8615


   Fix a lock ordering-induced deadlock between the Python GIL
   and the `std::once_flag` lock used in `arrow::py::internal::InitPandasStaticData`.
   
   Thread A:
   * takes the GIL
   * calls `arrow::py::internal::InitPandasStaticData`
     * which calls `std::call_once`, which acquires the lock inside the `std::once_flag`
       * which imports the `pandas` module
         * which releases the GIL before reading the code object from disk
         * and then tries to re-acquire the GIL
   
   Thread B:
   * takes the GIL
   * calls `arrow::py::internal::InitPandasStaticData`
     * which calls `std::call_once`, which tries to acquire the lock inside the `std::once_flag`


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [arrow] github-actions[bot] commented on pull request #8615: ARROW-10519: [Python] Fix deadlock when importing pandas from several threads

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #8615:
URL: https://github.com/apache/arrow/pull/8615#issuecomment-724050695


   https://issues.apache.org/jira/browse/ARROW-10519


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [arrow] pitrou closed pull request #8615: ARROW-10519: [Python] Fix deadlock when importing pandas from several threads

Posted by GitBox <gi...@apache.org>.
pitrou closed pull request #8615:
URL: https://github.com/apache/arrow/pull/8615


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org