Bug 278452 - misc/py-polars: crashes python at import
Summary: misc/py-polars: crashes python at import
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-19 08:53 UTC by Max Brazhnikov
Modified: 2024-04-19 15:55 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max Brazhnikov freebsd_committer freebsd_triage 2024-04-19 08:53:44 UTC
package: py311-polars-0.20.19

Python 3.11.9 (main, Apr  9 2024, 14:19:22) [Clang 17.0.6 (https://github.com/llvm/llvm-project.git llvmorg-17.0.6-0-g600970 on freebsd13
Type "help", "copyright", "credits" or "license" for more information.
>>> 
>>> import polars
# /usr/local/lib/python3.11/site-packages/polars/__pycache__/__init__.cpython-311.pyc matches /usr/local/lib/python3.11/site-packages/polars/__init__.py
# code object from '/usr/local/lib/python3.11/site-packages/polars/__pycache__/__init__.cpython-311.pyc'
# /usr/local/lib/python3.11/site-packages/polars/__pycache__/_cpu_check.cpython-311.pyc matches /usr/local/lib/python3.11/site-packages/polars/_cpu_check.py
# code object from '/usr/local/lib/python3.11/site-packages/polars/__pycache__/_cpu_check.cpython-311.pyc'
# /usr/local/lib/python3.11/__pycache__/__future__.cpython-311.pyc matches /usr/local/lib/python3.11/__future__.py
# code object from '/usr/local/lib/python3.11/__pycache__/__future__.cpython-311.pyc'
import '__future__' # <_frozen_importlib_external.SourceFileLoader object at 0x82e0467d0>
# /usr/local/lib/python3.11/ctypes/__pycache__/__init__.cpython-311.pyc matches /usr/local/lib/python3.11/ctypes/__init__.py
# code object from '/usr/local/lib/python3.11/ctypes/__pycache__/__init__.cpython-311.pyc'
# extension module '_ctypes' loaded from '/usr/local/lib/python3.11/lib-dynload/_ctypes.cpython-311.so'
# extension module '_ctypes' executed from '/usr/local/lib/python3.11/lib-dynload/_ctypes.cpython-311.so'
import '_ctypes' # <_frozen_importlib_external.ExtensionFileLoader object at 0x82e050350>
# /usr/local/lib/python3.11/__pycache__/struct.cpython-311.pyc matches /usr/local/lib/python3.11/struct.py
# code object from '/usr/local/lib/python3.11/__pycache__/struct.cpython-311.pyc'
# extension module '_struct' loaded from '/usr/local/lib/python3.11/lib-dynload/_struct.cpython-311.so'
# extension module '_struct' executed from '/usr/local/lib/python3.11/lib-dynload/_struct.cpython-311.so'
import '_struct' # <_frozen_importlib_external.ExtensionFileLoader object at 0x82e053e90>
import 'struct' # <_frozen_importlib_external.SourceFileLoader object at 0x82e053a50>
# /usr/local/lib/python3.11/ctypes/__pycache__/_endian.cpython-311.pyc matches /usr/local/lib/python3.11/ctypes/_endian.py
# code object from '/usr/local/lib/python3.11/ctypes/__pycache__/_endian.cpython-311.pyc'
import 'ctypes._endian' # <_frozen_importlib_external.SourceFileLoader object at 0x82e05e510>
import 'ctypes' # <_frozen_importlib_external.SourceFileLoader object at 0x82e047090>
# /usr/local/lib/python3.11/__pycache__/typing.cpython-311.pyc matches /usr/local/lib/python3.11/typing.py
# code object from '/usr/local/lib/python3.11/__pycache__/typing.cpython-311.pyc'
# extension module '_typing' loaded from '/usr/local/lib/python3.11/lib-dynload/_typing.cpython-311.so'
# extension module '_typing' executed from '/usr/local/lib/python3.11/lib-dynload/_typing.cpython-311.so'
import '_typing' # <_frozen_importlib_external.ExtensionFileLoader object at 0x82e06d790>
import 'typing' # <_frozen_importlib_external.SourceFileLoader object at 0x82e047710>
import 'polars._cpu_check' # <_frozen_importlib_external.SourceFileLoader object at 0x82e045390>
<jemalloc>: Error in dlsym(RTLD_NEXT, "pthread_create")
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2024-04-19 15:55:27 UTC
Hi Max,

Thanks for your report.

I've reported this upstream here: https://github.com/pola-rs/polars/issues/15542
They didn't provide a solution yet.

I'll try to come up with a patch that fixes this.


Yuri