Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#21146 - gstreamer based music players segfault

Attached to Project: Arch Linux
Opened by John (graysky) - Friday, 08 October 2010, 10:17 GMT
Last edited by Jan de Groot (JGC) - Tuesday, 07 December 2010, 13:01 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Recently, a number of python based music players including exaile, banshee, and rbox refuses to play music files and crash in a segfault.

$ exaile
INFO : Loading Exaile 0.3.2.0...
INFO : Loading settings...
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
INFO : Loading plugins...
INFO : Loading collection...
INFO : Loading devices...
INFO : Loading interface...
INFO : Loading main window...
INFO : Connecting main window events...
INFO : Loading panels...
INFO : Connecting panel events...
INFO : Done loading main window...
INFO : Playing file:///media/data/DM/file.flac
Segmentation fault[/code]

Also tried rhythmbox with the same results:

$ rhythmbox

(rhythmbox:5663): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
Segmentation fault[/code]

Finally, banshee crashes as well:
[code]$ banshee-1
[Info 20:04:45.641] Running Banshee 1.6.1: [source-tarball (linux-gnu, x86_64) @ 2010-06-13 18:19:30 UTC]
[Warn 20:04:46.239] Cannot connect to NetworkManager or Wicd - An available, working network connection will be assumed
[Info 20:04:46.274] All services are started 0.502216
[Warn 20:04:46.811] Forcefully breaking out of RCS loop b/c change in total_width less than 1.0
[Info 20:04:46.854] nereid Client Started
System.ApplicationException: Could not find org.freedesktop.Avahi
at Mono.Zeroconf.Providers.AvahiDBus.DBusManager.Initialize () [0x00000] in <filename unknown>:0
at Mono.Zeroconf.Providers.AvahiDBus.ZeroconfProvider.Initialize () [0x00000] in <filename unknown>:0
at Mono.Zeroconf.Providers.ProviderFactory.GetProviders () [0x00000] in <filename unknown>:0
System.DllNotFoundException: libnss_mdns-0.2.so
at (wrapper managed-to-native) Mono.Zeroconf.Providers.Bonjour.Native:DNSServiceCreateConnection (Mono.Zeroconf.Providers.Bonjour.ServiceRef&)
at Mono.Zeroconf.Providers.Bonjour.Zeroconf.Initialize () [0x00000] in <filename unknown>:0
at Mono.Zeroconf.Providers.Bonjour.ZeroconfProvider.Initialize () [0x00000] in <filename unknown>:0
at Mono.Zeroconf.Providers.ProviderFactory.GetProviders () [0x00000] in <filename unknown>:0
[Warn 20:04:47.082] Failed to start DAAP client - System.Exception: No Zeroconf providers could be found or initialized. Necessary daemon may not be running. (in `Mono.Zeroconf')
at Mono.Zeroconf.Providers.ProviderFactory.GetProviders () [0x00000] in <filename unknown>:0
at Mono.Zeroconf.Providers.ProviderFactory.get_DefaultProvider () [0x00000] in <filename unknown>:0
at Mono.Zeroconf.Providers.ProviderFactory.get_SelectedProvider () [0x00000] in <filename unknown>:0
at Mono.Zeroconf.ServiceBrowser..ctor () [0x00000] in <filename unknown>:0
at Daap.ServiceLocator.Start () [0x00000] in <filename unknown>:0
at Banshee.Daap.DaapService.ThreadedInitialize () [0x00000] in <filename unknown>:0
[Warn 20:04:58.326] Forcefully breaking out of RCS loop b/c change in total_width less than 1.0
[Warn 20:04:59.561] Forcefully breaking out of RCS loop b/c change in total_width less than 1.0
Stacktrace:


Native stacktrace:

Segmentation fault

I know there is a great python rebuild underway, but I do not have any testing repo enabled. Running x86_64 with Gnome (seems like this behavior started happening after 2.32 got pulled down).

I can use vlc or xmms to play all sorts of files (mp3, flac, etc.) with no problems so it's definitely pointing to a python problem I think...

Additional info:
* package version(s): system is up-to-date
* logs: Only relavant debug info is a one-liner from dmesg:

source:src[3549]: segfault at ffffffffffffffff ip ffffffffffffffff sp 00007f38113d8828 error 14

Steps to reproduce:
Load a python based music app and attempt to play a flac file. On my x86_64 system a segfault occurs.
This task depends upon

Closed by  Jan de Groot (JGC)
Tuesday, 07 December 2010, 13:01 GMT
Reason for closing:  Works for me
Comment by Rémy Oudompheng (remyoudompheng) - Friday, 08 October 2010, 10:46 GMT
Could you provide a backtrace using gdb for example, when running rhythmbox ?
Comment by Rémy Oudompheng (remyoudompheng) - Friday, 08 October 2010, 10:52 GMT
Your problem with banshee seems totally unrelated, and is probably due to a version bump of nss-mdns, please file a bug report for mono-zeroconf (rebuild needed).
Comment by Ionut Biru (wonder) - Friday, 08 October 2010, 11:56 GMT
fixed mono-zeroconf in 0.9.0-2
Comment by John (graysky) - Friday, 08 October 2010, 13:39 GMT
Glad to:

$ gdb rhythmbox
GNU gdb (GDB) 7.2
Copyright (C) 2010 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-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/rhythmbox...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/rhythmbox
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffeb99d710 (LWP 6858)]
[New Thread 0x7fffea3c5710 (LWP 6859)]

(rhythmbox:6855): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
[New Thread 0x7fffe0d62710 (LWP 6860)]
[Thread 0x7fffe0d62710 (LWP 6860) exited]
[New Thread 0x7fffe0d62710 (LWP 6861)]
[New Thread 0x7fffd405e710 (LWP 6862)]
[Thread 0x7fffd405e710 (LWP 6862) exited]
[New Thread 0x7fffd405e710 (LWP 6863)]
[New Thread 0x7fffd3711710 (LWP 6864)]
[Thread 0x7fffd3711710 (LWP 6864) exited]
[Thread 0x7fffea3c5710 (LWP 6859) exited]
[New Thread 0x7fffea3c5710 (LWP 6865)]
[New Thread 0x7fffd3711710 (LWP 6866)]
[Thread 0x7fffea3c5710 (LWP 6865) exited]
[New Thread 0x7fffea3c5710 (LWP 6869)]
[New Thread 0x7fffddb78710 (LWP 6870)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe0d62710 (LWP 6861)]
0xffffffffffffffff in ?? ()
(gdb) bt
#0 0xffffffffffffffff in ?? ()
#1 0x00007fffd2accd7e in ?? () from /usr/lib/gstreamer-0.10/libgstaudioconvert.so
#2 0x00007fffd2ac701d in ?? () from /usr/lib/gstreamer-0.10/libgstaudioconvert.so
#3 0x00007fffd2ac3418 in ?? () from /usr/lib/gstreamer-0.10/libgstaudioconvert.so
#4 0x00007ffff41c8ba3 in ?? () from /usr/lib/libgstbase-0.10.so.0
#5 0x00007ffff41c92bc in ?? () from /usr/lib/libgstbase-0.10.so.0
#6 0x00007ffff6bf613d in ?? () from /usr/lib/libgstreamer-0.10.so.0
#7 0x00007ffff6bf71d6 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#8 0x00007ffff6bf613d in ?? () from /usr/lib/libgstreamer-0.10.so.0
#9 0x00007ffff6bf71d6 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#10 0x00007ffff41c930a in ?? () from /usr/lib/libgstbase-0.10.so.0
#11 0x00007ffff6bf613d in ?? () from /usr/lib/libgstreamer-0.10.so.0
#12 0x00007ffff6bf71d6 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#13 0x00007ffff6bf613d in ?? () from /usr/lib/libgstreamer-0.10.so.0
#14 0x00007ffff6bf71d6 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#15 0x00007ffff6bf613d in ?? () from /usr/lib/libgstreamer-0.10.so.0
#16 0x00007ffff6bf71d6 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#17 0x00007ffff41c930a in ?? () from /usr/lib/libgstbase-0.10.so.0
#18 0x00007ffff6bf613d in ?? () from /usr/lib/libgstreamer-0.10.so.0
#19 0x00007ffff6bf71d6 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#20 0x00007ffff41c930a in ?? () from /usr/lib/libgstbase-0.10.so.0
#21 0x00007ffff6bf613d in ?? () from /usr/lib/libgstreamer-0.10.so.0
#22 0x00007ffff6bf71d6 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#23 0x00007ffff41c930a in ?? () from /usr/lib/libgstbase-0.10.so.0
#24 0x00007ffff6bf613d in ?? () from /usr/lib/libgstreamer-0.10.so.0
#25 0x00007ffff6bf71d6 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#26 0x00007ffff6bf613d in ?? () from /usr/lib/libgstreamer-0.10.so.0
#27 0x00007ffff6bf71d6 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#28 0x00007fffddb98b0f in ?? () from /usr/lib/gstreamer-0.10/libgstcoreelements.so
---Type <return> to continue, or q <return> to quit---
#29 0x00007ffff6bf613d in ?? () from /usr/lib/libgstreamer-0.10.so.0
#30 0x00007ffff6bf71d6 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#31 0x00007ffff6bf613d in ?? () from /usr/lib/libgstreamer-0.10.so.0
#32 0x00007ffff6bf71d6 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#33 0x00007fffd2cf809d in ?? () from /usr/lib/gstreamer-0.10/libgstplaybin.so
#34 0x00007ffff6bf613d in ?? () from /usr/lib/libgstreamer-0.10.so.0
#35 0x00007ffff6bf71d6 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#36 0x00007ffff6bf613d in ?? () from /usr/lib/libgstreamer-0.10.so.0
#37 0x00007ffff6bf71d6 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#38 0x00007ffff6bf613d in ?? () from /usr/lib/libgstreamer-0.10.so.0
#39 0x00007ffff6bf71d6 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#40 0x00007fffd2487b84 in ?? () from /usr/lib/gstreamer-0.10/libgstflac.so
#41 0x00007fffd226694d in read_frame_ () from /usr/lib/libFLAC.so.8
#42 0x00007fffd2266ce0 in FLAC__stream_decoder_process_single () from /usr/lib/libFLAC.so.8
#43 0x00007fffd2486970 in ?? () from /usr/lib/gstreamer-0.10/libgstflac.so
#44 0x00007ffff6c1f046 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#45 0x00007ffff62a96e4 in ?? () from /usr/lib/libglib-2.0.so.0
#46 0x00007ffff62a6ff6 in ?? () from /usr/lib/libglib-2.0.so.0
#47 0x00007ffff5c89cb0 in start_thread () from /lib/libpthread.so.0
#48 0x00007ffff59f49fd in clone () from /lib/libc.so.6
#49 0x0000000000000000 in ?? ()
Comment by John (graysky) - Friday, 08 October 2010, 17:23 GMT
I just installed Arch x86_64 on a new partition of the same machine. After installing gnome and exaile with the plugins I can confirm this segfault issue is present on the virgin install as well. Can't play ogg, mp3, or flac. Similar errors in the shell and via dmesg. Interestingly, my Arch i686 (same machine, different partition) plays everything just fine!

$ exaile
INFO : Loading Exaile 0.3.2.0...
INFO : Loading settings...
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
INFO : Loading plugins...
INFO : Loading collection...
INFO : Loading devices...
INFO : Loading interface...
INFO : Loading main window...
INFO : Connecting main window events...
INFO : Loading panels...
INFO : Connecting panel events...
INFO : Done loading main window...
INFO : Playing file:///media/data/file.flac

From dmesg:
flacdec0:sink[5237]: segfault at ffffffffffffffff ip ffffffffffffffff sp 00007f681cfa0998 error 14
Comment by Rémy Oudompheng (remyoudompheng) - Friday, 08 October 2010, 17:33 GMT
It seems unrelated to python: can you try totem on x86_64 ?
Comment by John (graysky) - Friday, 08 October 2010, 18:28 GMT
Totem seems to play flac files okay but not mp3 files... first I loaded a flac then an mp3

$ totem

(totem:14975): Gtk-CRITICAL **: IA__gtk_tree_view_scroll_to_cell: assertion `tree_view->priv->tree != NULL' failed

** (totem:14975): WARNING **: chapters: failed to load CMML file file:///dev/shm/2.cmml: Error opening file: No such file or directory

** (totem:14975): WARNING **: chapters: failed to load CMML file file:///dev/shm/1.cmml: Error opening file: No such file or directory
Segmentation fault
Comment by John (graysky) - Friday, 08 October 2010, 20:34 GMT
Sorry, here is the trace...

$ gdb totem
GNU gdb (GDB) 7.2
Copyright (C) 2010 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-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/totem...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/totem
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffec146710 (LWP 7926)]
[New Thread 0x7fffe9c45710 (LWP 7927)]
[New Thread 0x7fffe901f710 (LWP 7928)]
[Thread 0x7fffe901f710 (LWP 7928) exited]
[New Thread 0x7fffe901f710 (LWP 7930)]
[Thread 0x7fffe901f710 (LWP 7930) exited]
[New Thread 0x7fffe901f710 (LWP 8017)]
[New Thread 0x7fffdb710710 (LWP 8018)]
[New Thread 0x7fffdad05710 (LWP 8019)]

** (totem:7923): WARNING **: chapters: failed to load CMML file file:///media/data/music.cmml: Error opening file: No such file or directory
[New Thread 0x7fffda0cd710 (LWP 8020)]
[Thread 0x7fffda0cd710 (LWP 8020) exited]
[New Thread 0x7fffda0cd710 (LWP 8022)]
[New Thread 0x7fffd8a1a710 (LWP 8023)]
[New Thread 0x7fffd3fff710 (LWP 8024)]
[New Thread 0x7fffd37fe710 (LWP 8025)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd37fe710 (LWP 8025)]
0xffffffffffffffff in ?? ()
(gdb) bt
#0 0xffffffffffffffff in ?? ()
#1 0x00007fffd96c7f3c in ?? () from /usr/lib/gstreamer-0.10/libgstaudioconvert.so
#2 0x00007fffd96c109c in ?? () from /usr/lib/gstreamer-0.10/libgstaudioconvert.so
#3 0x00007fffd96bd418 in ?? () from /usr/lib/gstreamer-0.10/libgstaudioconvert.so
#4 0x00007ffff2d4cba3 in ?? () from /usr/lib/libgstbase-0.10.so.0
#5 0x00007ffff2d4d2bc in ?? () from /usr/lib/libgstbase-0.10.so.0
#6 0x00007ffff4ba713d in ?? () from /usr/lib/libgstreamer-0.10.so.0
#7 0x00007ffff4ba81d6 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#8 0x00007fffea2978d6 in ?? () from /usr/lib/gstreamer-0.10/libgstcoreelements.so
#9 0x00007ffff4bd0046 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#10 0x00007ffff427a6e4 in ?? () from /usr/lib/libglib-2.0.so.0
#11 0x00007ffff4277ff6 in ?? () from /usr/lib/libglib-2.0.so.0
#12 0x00007ffff69b0cb0 in start_thread () from /lib/libpthread.so.0
#13 0x00007ffff358a9fd in clone () from /lib/libc.so.6
#14 0x0000000000000000 in ?? ()
Comment by Rémy Oudompheng (remyoudompheng) - Saturday, 09 October 2010, 08:51 GMT
I am renaming this task: the segfault in totem and the backtraces seem to indicate that the problem comes from gstreamer rather than python.
Comment by John (graysky) - Saturday, 16 October 2010, 19:48 GMT
Is anyone able to reproduce this error or is it just me?
Comment by Schafwoller (schafwoller) - Saturday, 06 November 2010, 22:48 GMT
I can reproduce this error. When I mount the /tmp directory with default settings ('none /tmp tmpfs defaults 0 0') everything works. When I mount the /tmp directory with 'none /tmp tmpfs rw,noexec,nosuid,nodev,size=200000000 0 0' then the error occurs.
Comment by John (graysky) - Sunday, 07 November 2010, 00:29 GMT
Very interesting find. I too keep some more restrictive settings on my tmp:

none /tmp tmpfs nodev,nosuid,nodiratime,noatime,noexec,size=2000M,mode=1777 0 0

Loading...