|
| 1 | +--- |
| 2 | +source: tests/test_backtrace.rs |
| 3 | +expression: traceback |
| 4 | +--- |
| 5 | +Traceback (most recent call last): |
| 6 | + File "[RUST_CORE]/ops/function.rs", line 250, in core::ops::function::FnOnce::call_once |
| 7 | + File "[RUST_CORE]/ops/function.rs", line 250, in <test_backtrace::test_rust_frames_in_backtrace::{closure#0} as core::ops::function::FnOnce<()>>::call_once |
| 8 | + extern "rust-call" fn call_once(self, args: Args) -> Self::Output; |
| 9 | + File "./tests/test_backtrace.rs", line 7, in test_backtrace::test_rust_frames_in_backtrace::{closure#0} |
| 10 | + fn test_rust_frames_in_backtrace() { |
| 11 | + File "./tests/test_backtrace.rs", line 16, in test_backtrace::test_rust_frames_in_backtrace |
| 12 | + Python::attach(|py| { |
| 13 | + File "./src/marker.rs", line 415, in <pyo3::marker::Python>::attach::<test_backtrace::test_rust_frames_in_backtrace::{closure#0}, ()> |
| 14 | + f(guard.python()) |
| 15 | + File "./tests/test_backtrace.rs", line 22, in test_backtrace::test_rust_frames_in_backtrace::{closure#0} |
| 16 | + .run( |
| 17 | + File "./src/marker.rs", line 641, in <pyo3::marker::Python>::run |
| 18 | + code.run(globals, locals).map(|obj| { |
| 19 | + File "./src/types/code.rs", line 139, in <pyo3::instance::Bound<pyo3::types::code::PyCode> as pyo3::types::code::PyCodeMethods>::run |
| 20 | + .assume_owned_or_err(self.py()) |
| 21 | + File "./src/ffi_ptr_ext.rs", line 43, in <*mut pyo3_ffi::object::PyObject as pyo3::ffi_ptr_ext::FfiPtrExt>::assume_owned_or_err |
| 22 | + unsafe { Bound::from_owned_ptr_or_err(py, self) } |
| 23 | + File "./src/instance.rs", line 385, in <pyo3::instance::Bound<pyo3::types::any::PyAny>>::from_owned_ptr_or_err |
| 24 | + None => Err(PyErr::fetch(py)), |
| 25 | + File "./src/err/mod.rs", line 354, in <pyo3::err::PyErr>::fetch |
| 26 | + PyErr::take(py).unwrap_or_else(failed_to_fetch) |
| 27 | + File "./src/err/mod.rs", line 302, in <pyo3::err::PyErr>::take |
| 28 | + let mut backtrace = backtrace::Backtrace::new(); |
| 29 | + File "[backtrace-0.3.76]/capture.rs", line 259, in backtrace::capture::Backtrace::new |
| 30 | + let mut bt = Self::create(Self::new as usize); |
| 31 | + File "[backtrace-0.3.76]/capture.rs", line 294, in backtrace::capture::Backtrace::create |
| 32 | + trace(|frame| { |
| 33 | + File "[backtrace-0.3.76]/backtrace/mod.rs", line 53, in backtrace::backtrace::trace |
| 34 | + unsafe { trace_unsynchronized(cb) } |
| 35 | + File "[backtrace-0.3.76]/backtrace/mod.rs", line 66, in backtrace::backtrace::trace_unsynchronized |
| 36 | + unsafe { trace_imp(&mut cb) } |
| 37 | + File "[backtrace-0.3.76]/backtrace/libunwind.rs", line 117, in backtrace::backtrace::libunwind::trace |
| 38 | + uw::_Unwind_Backtrace(trace_fn, addr_of_mut!(cb).cast()); |
| 39 | + File "<string>", line 4, in <module> |
| 40 | + File "<string>", line 2, in python_func |
| 41 | + File "./tests/test_backtrace.rs", line 11, in test_backtrace::test_rust_frames_in_backtrace::__pyfunction_produce_err_result |
| 42 | + #[pyfunction] |
| 43 | + File "./tests/test_backtrace.rs", line 13, in test_backtrace::test_rust_frames_in_backtrace::produce_err_result |
| 44 | + Err(PyValueError::new_err("Error result")) |
| 45 | + File "./src/exceptions.rs", line 31, in <pyo3::exceptions::PyValueError>::new_err::<&str> |
| 46 | + $crate::PyErr::new::<$name, A>(args) |
| 47 | + File "./src/err/mod.rs", line 133, in <pyo3::err::PyErr>::new::<pyo3::exceptions::PyValueError, &str> |
| 48 | + let backtrace = backtrace::Backtrace::new_unresolved(); |
| 49 | + File "[backtrace-0.3.76]/capture.rs", line 289, in backtrace::capture::Backtrace::new_unresolved |
| 50 | + Self::create(Self::new_unresolved as usize) |
| 51 | + File "[backtrace-0.3.76]/capture.rs", line 294, in backtrace::capture::Backtrace::create |
| 52 | + trace(|frame| { |
| 53 | + File "[backtrace-0.3.76]/backtrace/mod.rs", line 53, in backtrace::backtrace::trace |
| 54 | + unsafe { trace_unsynchronized(cb) } |
| 55 | + File "[backtrace-0.3.76]/backtrace/mod.rs", line 66, in backtrace::backtrace::trace_unsynchronized |
| 56 | + unsafe { trace_imp(&mut cb) } |
| 57 | + File "[backtrace-0.3.76]/backtrace/libunwind.rs", line 117, in backtrace::backtrace::libunwind::trace |
| 58 | + uw::_Unwind_Backtrace(trace_fn, addr_of_mut!(cb).cast()); |
0 commit comments