vyasr commented on issue #44342:
URL: https://github.com/apache/arrow/issues/44342#issuecomment-2405881544

   If you're asking whether `python -c "import pyarrow"` will trigger the 
crash, then no, that does not crash for me. Quoting from above:
   
   > This error is quite difficult to reproduce. In addition to only observing 
this this particular issue with the pyarrow 17.0.0 release (the issue vanishes 
I downgrade to an earlier version) and only when testing on arm architectures, 
it is also highly sensitive to the exact order of prior operations. In my 
application I load multiple Python extension modules before importing pyarrow, 
and the order of those imports affects whether or not this issue manifests. The 
cases where the issue arises do manifest reliably, so it is not a flaky error, 
but simply adding an unrelated extra import or reordering unrelated imports is 
often sufficient to make the problem vanish.
   
   None of the modules that I directly control do any sort of relevant stateful 
initialization on import, but I cannot guarantee that the same is true for the 
other modules, so it is entirely possible that something in the stack (e.g. 
scipy) is doing some sort of initialization of a memory pool that introduces 
conflicting jemalloc symbols, or some other similar problem (it wouldn't 
actually be a symbol collision since IIUC libarrow does not make any of its 
jemalloc symbols publicly visible, but that's illustrative of the class of 
problems I mean). So roughly speaking, I have
   ```
   import foo
   import bar
   ... # Other imports
   import pyarrow # this seg faults
   ```
   and changing the sequence of `import foo` and `import bar` can change 
whether the seg fault appears.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to