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 in scipy.spatial.HalfspaceIntersection #9025
Comments
If you know how to convert the example input to the format understood by the QHull standalone "qhalf" program http://www.qhull.org/html/qhalf.htm, could be interesting to know if it crashes also.
|
This doesn't crash for me with current
For whoever reads this next: the pickle file isn't needed to run the reproducer. |
I was able to reproduce this issue: I used https://hub.docker.com/layers/cielavenir/qhull/focal_scipy9025/images/sha256-16d21afab834011b2d80b18d1f50d07cf99f8f7ea5a1cce8c98a4fe9716aa666?context=repo or https://hub.docker.com/layers/cielavenir/qhull/buster_scipy9025/images/sha256-61f5e35eea0af66b7e1786936cb8f950eee6db71b4eb8eefd45d164b28690cf2?context=repo
After loading this image, run Then I see this
You do need scipy 1.1.0 to reproduce the issue. |
Thanks @cielavenir , if the problem is gone on versions more recent that 1.1.0, then I think this can be closed. |
|
@lucascolley it is unfortunate but we have not completed python3 migration, so we need scipy 1.2.3, which is below 1.4.0, so we are affected... |
I don't think there's much we can do to help you if you are still on Python 2. New bugfix releases only happen for the last few minor versions unless there is something severe. There won't be another bugfix release for SciPy<1.4 |
Sure, anyway we can build my qhull-patched 1.2.3... |
I am trying to compute the intersection of halfspaces using scipy.spatial.HalfspaceIntersection. When I run with a small data-set the code runs to completion but when I use a larger (though still small) dataset the code produces a segmentation fault.
The inputs to the function are a scipy.spatial.qhull.ConvexHull object, a list of lists of equations which define the bounding planes of a halfspace, and a bounding box for the ConvexHull object. I've included a pickle file which when placed in a directory with the attached python code causes the segmentation fault on my machine.
I am finding that it appears to be a problem with the equations that I go in as when I run with the same halfspace set over and over it will complete. If I run the command:
>python segmentation_fault.py segfault_data.pckl
which uses a particular collection of data I will see the segmentation fault. If you run
>python segmentation_fault.py n
where n is an integer it seems to work just fine.
I've attached the pickle file and a python script which demonstrates the problem.
Scipy/Numpy/Python version information:
scipy version: 1.1.0
numpy version: 1.14.2
system version info:sys.version_info(major=3, minor=6, micro=5, releaselevel='final', serial=0)
segfault_files.zip
Edit:
For a bit more info here is what comes out of a gdb run:
The text was updated successfully, but these errors were encountered: