Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

random_uniform causes VM to crash #9131

Closed
marfago opened this issue Dec 19, 2017 · 6 comments · Fixed by #9681
Closed

random_uniform causes VM to crash #9131

marfago opened this issue Dec 19, 2017 · 6 comments · Fixed by #9681

Comments

@marfago
Copy link

marfago commented Dec 19, 2017

The code nd.random_uniform(3) crashes with

[19:51:29] /Users/travis/build/dmlc/mxnet-distro/mxnet-build/dmlc-core/include/dmlc/logging.h:308: [19:51:29] src/operator/random/./sample_op.h:294: Check failed: param.high >= param.low (1 vs. 3) low must be less or equal to high in uniform distribution

caused by

libc++abi.dylib: terminating with uncaught exception of type dmlc::Error: [19:51:29] src/engine/./threaded_engine.h:359: [19:51:29] src/operator/random/./sample_op.h:294: Check failed: param.high >= param.low (1 vs. 3) low must be less or equal to high in uniform distribution

Experienced with mxnet 1.0.0 on macOS Sierra and python 3.6.3

@reminisce
Copy link
Contributor

@marfago
Copy link
Author

marfago commented Dec 19, 2017

I think that crashing the VM because of wrong parameters should not be the right behavior. The expected one should be a python exception.

@reminisce
Copy link
Contributor

Agree that crashing the vm is not a desired behavior. Need to add exception handling in frontend.

@eric-haibin-lin
Copy link
Member

@anirudh2290 is working on general exception handling.

@marfago
Copy link
Author

marfago commented Dec 20, 2017

#9154

@anirudh2290
Copy link
Member

#7335

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants