Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Segmentation Fault in pavucontrol -- FIXED
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
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Thu Jan 15, 2015 5:12 am    Post subject: Segmentation Fault in pavucontrol -- FIXED Reply with quote

I'm using pusleautio, and have sound in my browser and in skype, but not in Audacious. Since pavucontrol is giving a segmentation fault, suspicions are there. Runningt strace pavucontrol gives lots of output. I'm just posting the last few lines here. Hoping someone has something to suggest. Thanks,
Fred
Code:
sendmsg(4, {msg_name(0)=NULL, msg_iov(2)=[{"l\1\0\1\0\0\0\0\t\0\0\0\250\0\0\0\1\1o\0.\0\0\0/org/a11"..., 184}, {"", 0}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 184
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8
sendmsg(10, {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\1\24\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=25790, uid=1000, gid=1000}}, msg_flags=0}, MSG_NOSIGNAL) = 20
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8
recvmsg(7, 0x7fffdcbfe0c0, 0)           = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=4, events=POLLIN}, {fd=10, events=POLLIN|POLLOUT}], 4, 0) = 3 ([{fd=6, revents=POLLIN}, {fd=4, revents=POLLIN}, {fd=10, revents=POLLOUT}])
read(6, "\2\0\0\0\0\0\0\0", 16)         = 8
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8
recvmsg(4, {msg_name(0)=NULL, msg_iov(1)=[{"l\2\1\1\10\0\0\0\352\0\0\0005\0\0\0\6\1s\0\5\0\0\0:1.30\0\0\0"..., 2048}], msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 256
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8
recvmsg(4, 0x7fffdcbfe0e0, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8
sendto(10, "L\0\0\0\10L\0\0\0\0L\200\0\0\35x\0\0\1\0\201\261\347\t\233\31Q;\300\354\366i"..., 276, MSG_NOSIGNAL, NULL, 0) = 276
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8
recvmsg(7, 0x7fffdcbfe0c0, 0)           = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=4, events=POLLIN}, {fd=10, events=POLLIN}], 4, 0) = 2 ([{fd=6, revents=POLLIN}, {fd=10, revents=POLLIN}])
read(6, "\7\0\0\0\0\0\0\0", 16)         = 8
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8
recvmsg(10, {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\17\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=3638, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8
recvmsg(7, 0x7fffdcbfe0c0, 0)           = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=4, events=POLLIN}, {fd=10, events=POLLIN}], 4, 0) = 2 ([{fd=6, revents=POLLIN}, {fd=10, revents=POLLIN}])
read(6, "\2\0\0\0\0\0\0\0", 16)         = 8
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8
recvmsg(10, {msg_name(0)=NULL, msg_iov(1)=[{"L\0\0\0\2L\0\0\0\0L\200\0\0\35", 15}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=3638, uid=1000, gid=1000}}, msg_flags=0}, 0) = 15
getuid()                                = 1000
getuid()                                = 1000
uname({sys="Linux", node="mon1", ...})  = 0
readlink("/proc/self/exe", "/usr/bin/pavucontrol", 99) = 20
open("/etc/machine-id", O_RDONLY|O_CLOEXEC) = 11
fcntl(11, F_GETFD)                      = 0x1 (flags FD_CLOEXEC)
fstat(11, {st_mode=S_IFREG|0644, st_size=33, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe5cf896000
read(11, "371d6b998ef3826327b48332000002a3"..., 4096) = 33
close(11)                               = 0
munmap(0x7fe5cf896000, 4096)            = 0
sendto(10, "\0\0\2\10\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 20, MSG_NOSIGNAL, NULL, 0) = 20
sendto(10, "L\0\0\0\tL\0\0\0\1Ptapplication.name\0L\0\0"..., 520, MSG_NOSIGNAL, NULL, 0) = 520
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8
recvmsg(7, 0x7fffdcbfe0c0, 0)           = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=4, events=POLLIN}, {fd=10, events=POLLIN}], 4, 0) = 2 ([{fd=6, revents=POLLIN}, {fd=10, revents=POLLIN}])
read(6, "\2\0\0\0\0\0\0\0", 16)         = 8
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8
recvmsg(7, 0x7fffdcbfe0c0, 0)           = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=4, events=POLLIN}, {fd=10, events=POLLIN}], 4, 0) = 2 ([{fd=6, revents=POLLIN}, {fd=10, revents=POLLIN}])
read(6, "\2\0\0\0\0\0\0\0", 16)         = 8
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8
recvmsg(10, {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\17\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=3638, uid=1000, gid=1000}}, msg_flags=0}, 0) = 20
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8
recvmsg(7, 0x7fffdcbfe0c0, 0)           = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=4, events=POLLIN}, {fd=10, events=POLLIN}], 4, 0) = 2 ([{fd=6, revents=POLLIN}, {fd=10, revents=POLLIN}])
read(6, "\2\0\0\0\0\0\0\0", 16)         = 8
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8
recvmsg(10, {msg_name(0)=NULL, msg_iov(1)=[{"L\0\0\0\2L\0\0\0\1L\0\0\0000", 15}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=3638, uid=1000, gid=1000}}, msg_flags=0}, 0) = 15
open("/usr/share/pavucontrol/pavucontrol.glade", O_RDONLY) = 11
fstat(11, {st_mode=S_IFREG|0644, st_size=77241, ...}) = 0
read(11, "<?xml version=\"1.0\" encoding=\"UT"..., 77241) = 77241
close(11)                               = 0
futex(0x7fe5cd743568, FUTEX_WAKE, 2147483647) = 0
futex(0x7fe5cd743568, FUTEX_WAKE, 2147483647) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=0} ---
+++ killed by SIGSEGV +++
Segmentation fault


Last edited by Fred Krogh on Fri Jan 16, 2015 1:50 am; edited 1 time in total
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1791

PostPosted: Thu Jan 15, 2015 1:52 pm    Post subject: Reply with quote

Just a hunch, but you may want to look into this bug report (it's silimar to the error I was having). https://bugs.gentoo.org/530170

That bug report has a patch and an updated ebuild included, that may very well fix your problem too. Sadly, it seems the devs has completely forgotten about this bug report, and accept the patch that upstream already accepted (yes I followed the chain of ppl accepting it, and it's accepted by RH). If you need help using the updated ebuild & patch, I'll try to help you on that. Maybe I'll see about prodding someone on irc tonight, about maybe looking at the bug report and maybe fix this issue.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Thu Jan 15, 2015 3:38 pm    Post subject: Reply with quote

Thanks for the suggestion. I decided to try the patch route. I deleted all the text in the patch down to the first line that started with diff and saved that file in /etc/portage/patches/media-sound/pavucontrol-2.0/pavucontrol-segfault.patch. The emerge showed no sign of using the patch, so I think I missed something,. I have done patches before for nvidia-drivers, but my experience with patches is limited. Anyway after the emerge it still gets a segmentation fault.

I then tried storing the ebuild in /var/db/pkg/media-sound/pavucontrol-2..0-r1. But emerge is picking up pavucontrol-2.0. So perhaps I didn't store the new ebuild properly?
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Thu Jan 15, 2015 8:27 pm    Post subject: Reply with quote

I just changed the audio setting in audacious use ALSA Ouput, and sound there is back. I'd still like to have pavuconrol working as I have found it very useful.
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1791

PostPosted: Thu Jan 15, 2015 10:42 pm    Post subject: Reply with quote

Well, my experience using that patch, and also looking at other patches for pulseaudio, the text in the patch file is ignored; so you don't need to do anything with it. As far as the ebuild, I don't think putting the ebuild in /var/db/pkg/media-sound would do anything, as from my understanding portage is only going to check the normal tree and any overlays.

For me, I placed the ebuild in
Code:
/usr/portage/media-sound/pavucontrol/
, made the files directory and placed the patch in there. Afterwards, I ran
Code:
ebuild pavucontrol-2.0-r1.ebuild digest
(I ran this command while in /usr/portage/media-sound/pavucontrol/, if you are not, use the full path to the ebuild). Once all that is done, you can just run
Code:
emerge -u pavucontrol
and it should update pavucontrol to use the updated ebuild & patch.

Note: Placing the ebuild in the normal portage tree is only a temporary thing, portage will remove it when you next sync. For more permanent fix, place it in a overlay. Alternatively, you could always replace the pavucontrol-2.0 ebuild with the 2.0-r1 (renamed as 2.0), which will cause the fix to be applied when you recompile it and stay (portage doesn't normally do checksum of installed packages, so it'll only see the same version and ignore it). Also running ebuild digest on the ebuild is a necessary step, to update the package's metadata.
Back to top
View user's profile Send private message
comprookie2000
Retired Dev
Retired Dev


Joined: 25 Jul 2004
Posts: 925
Location: Sun City Center, Florida

PostPosted: Thu Jan 15, 2015 10:56 pm    Post subject: Reply with quote

Hi Fred,
Set up a local overlay, its fun and once you do it you will use it at times.
https://wiki.gentoo.org/wiki/Overlay/Local_overlay

Once you create the directory /usr/local/portage/media-sound/pavucontrol and then add your new ebuild to that, then you will create the directory to hold the patch.
Code:

mkdir /usr/local/portage/media-sound/pavucontrol/files


Add the patch to the files directory

Then you need to tell portage about the ebuild and patch

Code:

cd /usr/local/portage/media-sound/
repoman manifest
emerge -av1 media-sound/pavucontrol

_________________
http://dev.gentoo.org/~dabbott/
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Fri Jan 16, 2015 1:50 am    Post subject: Reply with quote

Thanks, I now have pauvcontrol working.
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