Python debugger segfaults with tvm

FWIW, this seems to be what’s needed to get this ignored test working in the Rust bindings:

(in rust/tvm/src/python.rs)

    #[ignore]
    #[test]
    fn test_run() -> Result<()> {
        load().unwrap();
        Ok(())
    }
}

This is significant. Without this fix, a large part of the Rust bindings won’t work (specifically, actually compiling and running code from Rust won’t work!)

I’m not sure if this is known already, or where it would be good to document this fact. cc @jroesch

Sorry to bump an old thread, but this seems important enough to mention. THANK YOU SO MUCH @junrushao !!! Great sleuthing on this :male_detective:

1 Like