IRC channel logs

2025-08-28.log

back to list of logs

<almuhs>hi. I'm trying to debug my translator, but gdb doesn't find the symbols for many libraries
<almuhs> https://paste.debian.net/1393829/
<almuhs>where can i find this symbols?
<almuhs>the translator remains stopped until I open the destination file, and then it shows this panic
<almuhs> https://paste.debian.net/1393835/
<almuhs>It shows "null pointer dereference occurred", but the backtrace lacks many symbols, so I don't know why that pointer is null
<dholovati>ls
<azert>almuhs: did you try installing the hurd-dbg package?
<azert>or perhaps hurd-dbgsym
<almuhs>azert: yes, it's installed
<azert>almuhs: how do you compile your translator?
<azert>do you use cargo?
<azert>cargo build
<azert>almuhs: rustc -C debuginfo=2 -C opt-level=0 file.rs
<almuhs>i have some of this options in my Cargo.toml https://gitlab.com/AlmuHS/hurd-translator-in-rust/-/blob/main/Caesar_Encryption_Translator/caesar-rust/caesar/Cargo.toml?ref_type=heads
<almuhs>i added these options, but continue the problem
<almuhs>the error is in trivfs_S_io_seek(), in the updating of newp. Here
<almuhs> https://gitlab.com/AlmuHS/hurd-translator-in-rust/-/blob/main/Caesar_Encryption_Translator/caesar-rust/caesar/src/main.rs?ref_type=heads#L227
<almuhs>But without the previous calls, I can't know why newp is NULL