Closed olebole closed 1 year ago
Any idea here? This seems to be a regression with newer "hypothesis" versions; however hypothesis itself is a pure Python package and therefore should not cause a segfault. fast-histogram is used by quite a few packages; I'd like to keep it (and the packages that depend on it) in Debian. Shall I just pragmatically disable the tests?
Will try and investigate shortly - I am guessing this is a new hypothesis test case that is segfaulting
Running into a similar issue in https://github.com/spacetelescope/jdaviz/pull/2498 when using the histogram viewer from glue-jupyter. If this isn't directly related, feel free to split into a separate issue.
Current thread 0x00007f4c96c5ec40 (most recent call first):
File "/home/runner/work/jdaviz/jdaviz/.tox/py311-test-alldeps-cov/lib/python3.11/site-packages/fast_histogram/histogram.py", line 58 in histogram1d
File "/home/runner/work/jdaviz/jdaviz/.tox/py311-test-alldeps-cov/lib/python3.11/site-packages/glue/core/data.py", line 2021 in compute_histogram
File "/home/runner/work/jdaviz/jdaviz/.tox/py311-test-alldeps-cov/lib/python3.11/site-packages/glue/viewers/histogram/state.py", line 254 in update_histogram
File "/home/runner/work/jdaviz/jdaviz/.tox/py311-test-alldeps-cov/lib/python3.11/site-packages/glue/viewers/histogram/state.py", line 217 in histogram
File "/home/runner/work/jdaviz/jdaviz/.tox/py311-test-alldeps-cov/lib/python3.11/site-packages/glue_jupyter/bqplot/histogram/layer_artist.py", line 51 in _calculate_histogram
File "/home/runner/work/jdaviz/jdaviz/.tox/py311-test-alldeps-cov/lib/python3.11/site-packages/glue_jupyter/bqplot/histogram/layer_artist.py", line 142 in _update_histogram
File "/home/runner/work/jdaviz/jdaviz/.tox/py311-test-alldeps-cov/lib/python3.11/site-packages/glue_jupyter/bqplot/histogram/layer_artist.py", line 153 in update
...
@kecnry would you be able to print out or save the arguments being passed to histogram1d that are causing the segfault?
It seems that it was caused (on our end) by passing arrays of length 1 to the histogram. We can just prevent passing these for now with a workaround, but it would be great if this could either be gracefully handled or raise an error instead of resulting in a segfault.
Forwarding Debian#1026594: Since a few weeks, the package produces a segmentation fault when running the tests:
This happens with both Python3.10.9 and 3.11.1. Other versions:
This happens both when running during the build (log) and when testing with
python3 -m pytest --pyargs fast_histogram
on the installed package (log).