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

python3Packages.cvxopt crashes on darwin #271105

Closed
ghost opened this issue Nov 30, 2023 · 0 comments · Fixed by #270016
Closed

python3Packages.cvxopt crashes on darwin #271105

ghost opened this issue Nov 30, 2023 · 0 comments · Fixed by #270016
Labels
0.kind: bug Something is broken

Comments

@ghost
Copy link

ghost commented Nov 30, 2023

Describe the bug

python3Packages.cvxopt is built with the wrong libraries, disables unit tests and causes other packages which use it to crash or produce bad data.

see PR #270016 for a fix.

Steps To Reproduce

Steps to reproduce the behavior:

  1. build python3Packages.cvxpy on darwin, this runs unittests and will crash with a segv

Expected behavior

unit tests pass when enabled, consumers of the package run without crashing with segv inside the cvxopt package.

Screenshots

..sssssssssssssssssssssssssssssssssssssssssssssssssssssFFatal Python error: Segmentation fault

Current thread 0x00000002007e6280 (most recent call first):
  File "/nix/store/1p4s4ylfianyqgjg1gzbc8n4cqy9ib3m-python3.10-cvxopt-1.3.2/lib/python3.10/site-packages/cvxopt/coneprog.py", line 655 in conelp
  File "/private/tmp/nix-build-python3.10-cvxpy-1.4.1.drv-0/cvxpy-1.4.1/cvxpy/reductions/solvers/conic_solvers/cvxopt_conif.py", line 201 in solve_via_data
  File "/private/tmp/nix-build-python3.10-cvxpy-1.4.1.drv-0/cvxpy-1.4.1/cvxpy/reductions/solvers/solving_chain.py", line 453 in solve_via_data
  File "/private/tmp/nix-build-python3.10-cvxpy-1.4.1.drv-0/cvxpy-1.4.1/cvxpy/problems/problem.py", line 1082 in _solve
  File "/private/tmp/nix-build-python3.10-cvxpy-1.4.1.drv-0/cvxpy-1.4.1/cvxpy/problems/problem.py", line 503 in solve
  File "/private/tmp/nix-build-python3.10-cvxpy-1.4.1.drv-0/cvxpy-1.4.1/cvxpy/tests/solver_test_helpers.py", line 38 in solve
  File "/private/tmp/nix-build-python3.10-cvxpy-1.4.1.drv-0/cvxpy-1.4.1/cvxpy/tests/solver_test_helpers.py", line 1082 in test_lp_1
  File "/private/tmp/nix-build-python3.10-cvxpy-1.4.1.drv-0/cvxpy-1.4.1/cvxpy/tests/test_conic_solvers.py", line 830 in test_cvxopt_lp_1
  File "/nix/store/c7s2h40q4wqxfxwzbj5g9c3126wz6ryg-python3-3.10.13/lib/python3.10/unittest/case.py", line 549 in _callTestMethod
  File "/nix/store/c7s2h40q4wqxfxwzbj5g9c3126wz6ryg-python3-3.10.13/lib/python3.10/unittest/case.py", line 591 in run
  File "/nix/store/c7s2h40q4wqxfxwzbj5g9c3126wz6ryg-python3-3.10.13/lib/python3.10/unittest/case.py", line 650 in __call__
  File "/nix/store/v6hql5n79bmn60jvg9f3v54gcbljycd6-python3.10-pytest-7.4.3/lib/python3.10/site-packages/_pytest/unittest.py", line 333 in runtest
  File "/nix/store/v6hql5n79bmn60jvg9f3v54gcbljycd6-python3.10-pytest-7.4.3/lib/python3.10/site-packages/_pytest/runner.py", line 169 in pytest_runtest_call
  File "/nix/store/d2hy2rx00l1zz0pgl46viqiivcbrjz63-python3.10-pluggy-1.3.0/lib/python3.10/site-packages/pluggy/_callers.py", line 77 in _multicall
  File "/nix/store/d2hy2rx00l1zz0pgl46viqiivcbrjz63-python3.10-pluggy-1.3.0/lib/python3.10/site-packages/pluggy/_manager.py", line 115 in _hookexec
  File "/nix/store/d2hy2rx00l1zz0pgl46viqiivcbrjz63-python3.10-pluggy-1.3.0/lib/python3.10/site-packages/pluggy/_hooks.py", line 493 in __call__
  File "/nix/store/v6hql5n79bmn60jvg9f3v54gcbljycd6-python3.10-pytest-7.4.3/lib/python3.10/site-packages/_pytest/runner.py", line 262 in <lambda>
  File "/nix/store/v6hql5n79bmn60jvg9f3v54gcbljycd6-python3.10-pytest-7.4.3/lib/python3.10/site-packages/_pytest/runner.py", line 341 in from_call
  File "/nix/store/v6hql5n79bmn60jvg9f3v54gcbljycd6-python3.10-pytest-7.4.3/lib/python3.10/site-packages/_pytest/runner.py", line 261 in call_runtest_hook
  File "/nix/store/v6hql5n79bmn60jvg9f3v54gcbljycd6-python3.10-pytest-7.4.3/lib/python3.10/site-packages/_pytest/runner.py", line 222 in call_and_report
  File "/nix/store/v6hql5n79bmn60jvg9f3v54gcbljycd6-python3.10-pytest-7.4.3/lib/python3.10/site-packages/_pytest/runner.py", line 133 in runtestprotocol
  File "/nix/store/v6hql5n79bmn60jvg9f3v54gcbljycd6-python3.10-pytest-7.4.3/lib/python3.10/site-packages/_pytest/runner.py", line 114 in pytest_runtest_protocol
  File "/nix/store/d2hy2rx00l1zz0pgl46viqiivcbrjz63-python3.10-pluggy-1.3.0/lib/python3.10/site-packages/pluggy/_callers.py", line 77 in _multicall
  File "/nix/store/d2hy2rx00l1zz0pgl46viqiivcbrjz63-python3.10-pluggy-1.3.0/lib/python3.10/site-packages/pluggy/_manager.py", line 115 in _hookexec
  File "/nix/store/d2hy2rx00l1zz0pgl46viqiivcbrjz63-python3.10-pluggy-1.3.0/lib/python3.10/site-packages/pluggy/_hooks.py", line 493 in __call__
  File "/nix/store/v6hql5n79bmn60jvg9f3v54gcbljycd6-python3.10-pytest-7.4.3/lib/python3.10/site-packages/_pytest/main.py", line 350 in pytest_runtestloop
  File "/nix/store/d2hy2rx00l1zz0pgl46viqiivcbrjz63-python3.10-pluggy-1.3.0/lib/python3.10/site-packages/pluggy/_callers.py", line 77 in _multicall
  File "/nix/store/d2hy2rx00l1zz0pgl46viqiivcbrjz63-python3.10-pluggy-1.3.0/lib/python3.10/site-packages/pluggy/_manager.py", line 115 in _hookexec
  File "/nix/store/d2hy2rx00l1zz0pgl46viqiivcbrjz63-python3.10-pluggy-1.3.0/lib/python3.10/site-packages/pluggy/_hooks.py", line 493 in __call__
  File "/nix/store/v6hql5n79bmn60jvg9f3v54gcbljycd6-python3.10-pytest-7.4.3/lib/python3.10/site-packages/_pytest/main.py", line 325 in _main
  File "/nix/store/v6hql5n79bmn60jvg9f3v54gcbljycd6-python3.10-pytest-7.4.3/lib/python3.10/site-packages/_pytest/main.py", line 271 in wrap_session
  File "/nix/store/v6hql5n79bmn60jvg9f3v54gcbljycd6-python3.10-pytest-7.4.3/lib/python3.10/site-packages/_pytest/main.py", line 318 in pytest_cmdline_main
  File "/nix/store/d2hy2rx00l1zz0pgl46viqiivcbrjz63-python3.10-pluggy-1.3.0/lib/python3.10/site-packages/pluggy/_callers.py", line 77 in _multicall
  File "/nix/store/d2hy2rx00l1zz0pgl46viqiivcbrjz63-python3.10-pluggy-1.3.0/lib/python3.10/site-packages/pluggy/_manager.py", line 115 in _hookexec
  File "/nix/store/d2hy2rx00l1zz0pgl46viqiivcbrjz63-python3.10-pluggy-1.3.0/lib/python3.10/site-packages/pluggy/_hooks.py", line 493 in __call__
  File "/nix/store/v6hql5n79bmn60jvg9f3v54gcbljycd6-python3.10-pytest-7.4.3/lib/python3.10/site-packages/_pytest/config/__init__.py", line 169 in main
  File "/nix/store/v6hql5n79bmn60jvg9f3v54gcbljycd6-python3.10-pytest-7.4.3/lib/python3.10/site-packages/_pytest/config/__init__.py", line 192 in console_main
  File "/nix/store/v6hql5n79bmn60jvg9f3v54gcbljycd6-python3.10-pytest-7.4.3/lib/python3.10/site-packages/pytest/__main__.py", line 5 in <module>
  File "/nix/store/c7s2h40q4wqxfxwzbj5g9c3126wz6ryg-python3-3.10.13/lib/python3.10/runpy.py", line 86 in _run_code
  File "/nix/store/c7s2h40q4wqxfxwzbj5g9c3126wz6ryg-python3-3.10.13/lib/python3.10/runpy.py", line 196 in _run_module_as_main

Additional context

issue will be fixed if this PR can get merged #270016

bug introduced by PR #212983

Notify maintainers

@edwtjo

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-darwin"`
 - host os: `Darwin 21.6.0, macOS 10.16`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.18.1`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Priorities

Add a 👍 reaction to issues you find important.

@ghost ghost added the 0.kind: bug Something is broken label Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants