View previous topic :: View next topic |
Author |
Message |
Banana Moderator
Joined: 21 May 2004 Posts: 1727 Location: Germany
|
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22646
|
Posted: Fri Mar 29, 2024 2:55 pm Post subject: |
|
|
I suggest that you try debugging it, and obtaining a backtrace of where it crashes. Once we know that, we can examine the code to understand why it is wrong. |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1727 Location: Germany
|
Posted: Sat Mar 30, 2024 9:31 am Post subject: |
|
|
Thx hu.
Code: | ❯ gdb -q mocp
Reading symbols from mocp...
Reading symbols from /usr/lib/debug//usr/bin/mocp.debug...
(gdb) run
Starting program: /usr/bin/mocp
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
clone_popt_options (opts=opts@entry=0x5555555bb120 <mocp_opts>) at main.c:699
warning: 699 main.c: No such file or directory
(gdb) set logging file backtrace.log
(gdb) set logging on
Warning: 'set logging on', an alias for the command 'set logging enabled', is deprecated.
Use 'set logging enabled on'.
Copying output to backtrace.log.
Copying debug output to backtrace.log.
(gdb) bt
#0 clone_popt_options (opts=opts@entry=0x5555555bb120 <mocp_opts>) at main.c:699
#1 0x00005555555698aa in render_popt_command_line () at main.c:825
#2 0x0000555555562746 in log_popt_command_line () at main.c:1168
#3 main (argc=<optimized out>, argv=<optimized out>) at main.c:1224
(gdb) set logging off
Warning: 'set logging off', an alias for the command 'set logging enabled', is deprecated.
Use 'set logging enabled off'.
Done logging to backtrace.log.
(gdb) quit
A debugging session is active.
Inferior 1 [process 13613] will be killed.
Quit anyway? (y or n) y
~ took 1m58s
❯ ls |
backtrace log: https://delta-labs.org/sp/HBE _________________ Forum Guidelines
PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire |
|
Back to top |
|
|
|