Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
segmentation fault with mocp. How to find out why?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1727
Location: Germany

PostPosted: Fri Mar 29, 2024 11:09 am    Post subject: segmentation fault with mocp. How to find out why? Reply with quote

I'm using https://packages.gentoo.org/packages/media-sound/moc for a long time now and after the re-emerge of world from the profile update it gets a segmentation fault right after the start.

Code:
❯ mocp
Segmentation fault


Code:
[   71.267631] mocp[3682]: segfault at 55cb3e9f0000 ip 000055cb3e8fe400 sp 00007fff3b2161b0 error 4 in mocp[55cb3e8f5000+3f000] likely on CPU 4 (core 4, socket 0)


Code:
media-sound/moc-2.6_alpha3-r6::gentoo  USE="aac alsa cache debug flac mad magic musepack unicode vorbis wavpack -curl -ffmpeg -jack -libsamplerate -modplug -oss -sid -sndfile -sndio -speex -timidity -tremor" 0 KiB


how and where to look to get this solved?


emerge info: https://delta-labs.org/sp/HaY
complete dmesg: https://delta-labs.org/sp/CSc
installed info about mocp: https://delta-labs.org/sp/Cy4
_________________
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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22642

PostPosted: Fri Mar 29, 2024 2:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1727
Location: Germany

PostPosted: Sat Mar 30, 2024 9:31 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum