pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

getting proper debug information



Hi,

I'm having an issue with textproc/inlyne built locally using cargo.
I'm on 10.99.12 from January 22 on amd64 using Rust-1.84.1

inlyne works fine but it core dumps on closing the program.

Thanks to wiz@ for testing :)

wiz@ doesn't get a core dump using a cargo build from the same checkout using Rust-1.82.0.
But, he uses modular xorg while, I use base x11.

I've built the application using 'cargo build' and not 'cargo build --release' to get debug symbols.
But, the backtrace is useless:

gdb /usr/local/bin/inlyne inlyne.core
GNU gdb (GDB) 15.1
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/inlyne...
[New process 6059]
[New process 2102]
[New process 19735]
[New process 26523]
[New process 13157]
[New process 153]
[New process 26180]
Cannot access memory at address 0xae
Cannot access memory at address 0xa6
Cannot access memory at address 0xa6
Core was generated by `inlyne'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000700e45ffeba7 in ?? ()
[Current thread is 1 (process 6059)]
warning: Unsupported auto-load script at offset 0 in section .debug_gdb_scripts
of file /usr/local/bin/inlyne.
Use `info auto-load python-scripts [REGEXP]' to list them.
(gdb) bt
#0  0x0000700e45ffeba7 in ?? ()
#1  0x0000700e485186ad in ?? ()
#2  0x0000700e482ec220 in ?? ()
#3  0x0000000000000000 in ?? ()

How do I get a proper backtrace that I can use?

Thank you!


Home | Main Index | Thread Index | Old Index