You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling .unwrap() on a PyResult causes a segfault.
🌍 Environment
Your operating system and version: Ubuntu 18.10
Your python version: 3.6.7
How did you install python (e.g. apt or pyenv)? Did you use a virtualenv?: apt
Your rust version (rustc --version): rustc 1.38.0-nightly (83e4eed16 2019-07-14)
Are you using the latest pyo3 version? Have you tried using latest master (replace version = "0.x.y" with git = "https://github.com/PyO3/pyo3")? yes
💥 Reproducing
use pyo3::PyResult;use std::net::TcpListener;fnconnect() -> PyResult<bool>{TcpListener::bind("127.0.0.1:80")?;Ok(true)}fnmain(){connect().unwrap();}
The text was updated successfully, but these errors were encountered:
I guess some kind of initialization for the exception type is missing. The following panics as expected:
use pyo3::prelude::*;fnfails() -> PyResult<(u32)>{Ok("not an integer".parse::<u32>()?)}fnmain(){// Removing these lines causes a segfaultlet gil = Python::acquire_gil();let _py = gil.python();fails().unwrap();}
Calling .unwrap() on a
PyResult
causes a segfault.🌍 Environment
rustc --version
): rustc 1.38.0-nightly (83e4eed16 2019-07-14)version = "0.x.y"
withgit = "https://github.com/PyO3/pyo3")?
yes💥 Reproducing
The text was updated successfully, but these errors were encountered: