DNXie opened a new issue #20079:
URL: https://github.com/apache/incubator-mxnet/issues/20079
## Description
`mxnet.ndarray.histogram` crashes(segfault and abort) when `range` contains
large value
## To Reproduce
(If you developed your own code, please provide a short script that
reproduces the error. For existing examples, please provide link.)
### Input1
~~~python
import mxnet
mxnet.ndarray.histogram(a=mxnet.nd.ones((1, 1, 1, 1)), range=(-2e+307,
1e+307))
~~~
Error Message:
~~~python
Segmentation fault: 11
Stack trace:
[bt] (0)
/root/miniconda3/lib/python3.7/site-packages/mxnet/libmxnet.so(+0x3c27360)
[0x7ff147964360]
terminate called after throwing an instance of 'std::system_error'
what(): Resource deadlock avoided
Aborted (core dumped)
~~~
### Input2:
~~~python
import mxnet
mxnet.ndarray.histogram(a=mxnet.nd.ones((2, 2, 1, 1)), range=(-2e+307,
1e+307))
~~~
Error Message:
~~~python
Segmentation fault: 11
Segmentation fault: 11
Segmentation fault: 11
Segmentation fault: 11
Stack trace:
[bt] (0)
/root/miniconda3/lib/python3.7/site-packages/mxnet/libmxnet.so(+0x3c27360)
[0x7f14a4c70360]
Stack trace:
[bt] (0)
/root/miniconda3/lib/python3.7/site-packages/mxnet/libmxnet.so(+0x3c27360)
[0x7f14a4c70360]
Stack trace:
[bt] (0)
/root/miniconda3/lib/python3.7/site-packages/mxnet/libmxnet.so(+0x3c27360)
[0x7f14a4c70360]
free(): corrupted unsorted chunks
Stack trace:
[bt] (0)
/root/miniconda3/lib/python3.7/site-packages/mxnet/libmxnet.so(+0x3c27360)
[0x7f14a4c70360]
Segmentation fault (core dumped)
~~~
## Environment
OS: ubuntu 18.04
Python: 3.7.6
pip: 20.0.2
numpy: 1.18.5
mxnet: 1.8.0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]