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

Segmentation Fault with Python 3.8.12 REPL Tab Completion #134

Open
jusevitch opened this issue Nov 13, 2021 · 3 comments
Open

Segmentation Fault with Python 3.8.12 REPL Tab Completion #134

jusevitch opened this issue Nov 13, 2021 · 3 comments

Comments

@jusevitch
Copy link

I'm getting a segmentation fault when using Tab completion on a CyClpSimplex object in a Python 3.8.12 REPL environment. Minimal working example:

import numpy as np
from cylp.cy import CyClpSimplex

m = CyClpSimplex()
m.  # Press TAB

Output:

Segmentation fault (core dumped)

I'm using CyLP on Ubuntu 20.04 in a conda environment.

Output of pip show cylp:

Name: cylp
Version: 0.91.4
Summary: A Python interface for CLP, CBC, and CGL
Home-page: https://github.com/coin-or/cylp
Author: Mehdi Towhidi (mehdi.towhidi@gerad.ca), Dominique Orban (dominique.orban@gerad.ca)
Author-email: mehdi.towhidi@gerad.ca
License: Eclipse Public License
Location: [REDACTED]
Requires: numpy, scipy
Required-by: 

Output of conda list | grep coin-or:

coin-or-cbc               2.10.5               h9c3ff4c_6    conda-forge
coin-or-cgl               0.60.3               he7e83c3_2    conda-forge
coin-or-clp               1.17.6               h256e9bb_3    conda-forge
coin-or-osi               0.108.6              h3b589db_2    conda-forge
coin-or-utils             2.11.4               h573740c_3    conda-forge
@tkralphs
Copy link
Member

tkralphs commented Nov 30, 2021

Hmm, this would require some digging. I'm not even sue where to start, but I'll try to look into it.

@sbronson
Copy link

sbronson commented Jan 5, 2022

For me, tab completion segfaults accessing coefMatrix, so this is another way to trigger it:
python -c 'from cylp.cy import CyClpSimplex; CyClpSimplex().coefMatrix'

@tkralphs
Copy link
Member

tkralphs commented Jan 6, 2022

Thanks, this is very helpful.

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

No branches or pull requests

3 participants