Stream: general

Topic: Invalid memory reference


view this post on Zulip Ludea (Mar 17 2025 at 10:14):

Re @bjorn3
I am back to you from my issue with cranelift.
I run RUST_BACKTRACE=1 cargo build but get same error message

view this post on Zulip bjorn3 (Mar 17 2025 at 10:24):

You need to use a debugger like gdb to get backtraces when a segfault happens. RUST_BACKTRACE only works with panics.

view this post on Zulip Ludea (Mar 17 2025 at 10:28):

How to use gdb while I don't have a binary to debug?

view this post on Zulip bjorn3 (Mar 17 2025 at 10:29):

gdb --args rustc ... where rustc ... is the command that was reported as crashing.

view this post on Zulip Ludea (Mar 17 2025 at 10:33):

Reading symbols from rustc... (No debugging symbols found in rustc)

view this post on Zulip bjorn3 (Mar 17 2025 at 10:43):

Maybe termux has a separate package for rustc debug symbols?

view this post on Zulip Ludea (Mar 17 2025 at 11:20):

Seems they don't provide it :s

view this post on Zulip Ludea (Mar 17 2025 at 13:01):

Maybe there is another way to debug?

view this post on Zulip Ludea (Mar 22 2025 at 17:57):

Now cranelift codegen is available on Android host.
But we get rustc-logs.txt

view this post on Zulip bjorn3 (Mar 22 2025 at 18:27):

Could be that stacker is incompatible with Android or the hacks that termux uses to keep running on modern Android versions.

view this post on Zulip bjorn3 (Mar 22 2025 at 18:28):

(Stacker is a crate used by rustc to extend the stack when it almost gets a stackoverflow)


Last updated: Apr 06 2025 at 20:03 UTC