gnome-mplayer crashed with SIGSEGV in g_async_queue_length()

Bug #420546 reported by Caracuri
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-mplayer (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: gnome-mplayer

crashed

ProblemType: Crash
Architecture: i386
Date: Fri Aug 28 15:41:56 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/gnome-mplayer
NonfreeKernelModules: nvidia
Package: gnome-mplayer 0.9.7-1 [modified: usr/bin/gnome-mplayer]
ProcCmdline: /usr/bin/gnome-mplayer --window=132270635 --controlid=8391 --width=1280 --height=564 --autostart=1 --showcontrols=1
ProcEnviron:
 LANGUAGE=it_IT:it:en_GB:en
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-8.28-generic
SegvAnalysis:
 Segfault happened at: 0x4ab6f775 <g_async_queue_length+37>: mov 0x14(%esi),%ecx
 PC (0x4ab6f775) ok
 source "0x14(%esi)" (0x0000001c) not located in a known VMA region (needed readable region)!
 destination "%ecx" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: gnome-mplayer
StacktraceTop:
 g_async_queue_length () from /usr/lib/libglib-2.0.so.0
 g_thread_pool_unprocessed () from /usr/lib/libglib-2.0.so.0
 ?? ()
 ?? ()
 ?? () from /usr/lib/libglib-2.0.so.0
Title: gnome-mplayer crashed with SIGSEGV in g_async_queue_length()
Uname: Linux 2.6.31-8-generic i686
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin netdev plugdev pulse pulse-access sambashare scanner video

Revision history for this message
Caracuri (caracuri) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt (retraced)

StacktraceTop:IA__g_async_queue_length (queue=0x8)
IA__g_thread_pool_unprocessed (pool=0x88c8460)
delete_callback (widget=0x0, event=0x0, data=0x0)
set_quit (data=0x873a460) at gui.c:1169
g_idle_dispatch (source=0x89ad500, callback=0x8,

Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt (retraced)
Changed in gnome-mplayer (Ubuntu):
importance: Undecided → Medium
tags: removed: need-i386-retrace
visibility: private → public
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Can you perhaps give a description of what you were doing that caused the crash? All I can see from the backtrace is that you just launched gnome-mplayer and then quit it.

Changed in gnome-mplayer (Ubuntu):
status: New → Incomplete
Revision history for this message
Kevin DeKorte (kdekorte-gmail) wrote :

I think the reporter has a flag set to crash/abort on warning. I believe the problem is caused when used as a plugin and no metadata was ever parsed. I'll see if I can suppress this warning.

Changed in gnome-mplayer (Ubuntu):
assignee: nobody → Kevin DeKorte (kdekorte-gmail)
status: Incomplete → In Progress
Revision history for this message
Kevin DeKorte (kdekorte-gmail) wrote :

I believe the reporter of this issue has the environment variable

export G_DEBUG=fatal_warnings

set. However, what is happening is that gnome-mplayer is shutting down and trying to gracefully shutdown the threadpool for retrieving metadata. But gtk is not handling a empty/flushed pool correctly and issuing the error.

I put in a workaround to not call this function when running under the control of gecko-mediaplayer

Index: src/gui.c
===================================================================
--- src/gui.c (revision 1526)
+++ src/gui.c (working copy)
@@ -1374,16 +1374,21 @@
     }

     mplayer_shutdown();
- g_thread_pool_stop_unused_threads();
- while (gtk_events_pending() || thread != NULL
- || g_thread_pool_unprocessed(retrieve_metadata_pool)) {
- gtk_main_iteration();
- }
- g_thread_pool_free(retrieve_metadata_pool, TRUE, TRUE);

- if (control_id != 0)
+ if (control_id == 0) {
+ g_thread_pool_stop_unused_threads();
+ while (gtk_events_pending() || thread != NULL
+ || g_thread_pool_unprocessed(retrieve_metadata_pool)) {
+ gtk_main_iteration();
+ }
+ g_thread_pool_free(retrieve_metadata_pool, TRUE, TRUE);
+ } else {
+ while (gtk_events_pending() || thread != NULL) {
+ gtk_main_iteration();
+ }
         dbus_cancel();
-
+ }
+
     dbus_unhook();

Revision history for this message
Kevin DeKorte (kdekorte-gmail) wrote :
Changed in gnome-mplayer (Ubuntu):
assignee: Kevin DeKorte (kdekorte-gmail) → nobody
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-mplayer - 0.9.8-1

---------------
gnome-mplayer (0.9.8-1) unstable; urgency=low

  * New upstream bug-fix only release (LP: #420546)
  * Remove all previous patches, now applied upstream
  * Add --with-flat-volume flag to configure call
  * Add patches/updated_el_translation.patch:
    Update last greek translations from launchpad
  * Add patches/fix_gtk2.14_ftbfs.patch:
    Add GTK2.14 compile defs to gtk_widget_get_window; useful for backports
    Change minimum required libgtk version back to 2.12.0
  * Add README.source since the package uses quilt as a patch management
    system.

 -- Cesare Tirabassi <email address hidden> Wed, 23 Sep 2009 11:48:53 +0100

Changed in gnome-mplayer (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.