! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
segfaults on startup while initialising stock icons
Status:
RESOLVED: FIXED
Product:
Xfmedia
Component:
general

Comments

Description Schorsch 2004-12-31 00:02:12 CET
Can't start xfmedia.

$starce xfmedia gives (last lines)
fstat64(16, {st_mode=S_IFREG|0644, st_size=500, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x33f2d000
read(16, "play=p\npause=space\nstop=s\nprev-t"..., 4096) = 500
read(16, "", 4096)                      = 0
close(16)                               = 0
munmap(0x33f2d000, 4096)                = 0
access("/home/users/riesebie/.config/xfmedia/keybindings.rc", F_OK) = 0
open("/home/users/riesebie/.config/xfmedia/keybindings.rc", O_RDONLY) = 16
fstat64(16, {st_mode=S_IFREG|0644, st_size=500, ...}) = 0
mmap(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x33f2d000
read(16, "play=p\npause=space\nstop=s\nprev-t"..., 16384) = 500
read(16, "", 16384)                     = 0
close(16)                               = 0
munmap(0x33f2d000, 16384)               = 0
brk(0)                                  = 0x10c8f000
brk(0x10cb0000)                         = 0x10cb0000
uname({sys="Linux", node="aragorn", ...}) = 0
getpid()                                = 22555
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++

Reproducible: Always
Steps to Reproduce:
1. $ xfmedia
2. 
3. 

Actual Results:  
See Details

Expected Results:  
Start properly ;-)

Running Debian ppc packages from http://www.lxtec.de/debarchiv.
Same on i386 running xfce4 from os-cillation.
Comment 1 Brian J. Tarricone (not reading bugmail) 2004-12-31 02:03:18 CET
sorry, but strace output isn't all that useful in this situation.  i need a
backtrace of the crash location from gdb.  you can get an idea of how to do this
at http://gaim.sf.net/gdb.php

also, what xfmedia version are you using?  i really need to add an option to set
version info in the guided bug form...  anyway, feel free to just set the
version field in the info at the top of the bug.
Comment 2 Schorsch 2004-12-31 11:39:18 CET
xfmedia version is 0.6.0

Backtrace:
...(no debugging symbols found)...[New Thread 
32769 (LWP 8237)]
[New Thread 16386 (LWP 8238)]
(no debugging symbols found)...Detaching after fork from child process 8239.
[New Thread 32771 (LWP 8241)]
[New Thread 49156 (LWP 8242)]
(no debugging symbols found)...[New Thread 65541 (LWP 8243)]
[New Thread 81926 (LWP 8244)]
[New Thread 98311 (LWP 8245)]
[New Thread 114696 (LWP 8246)]
[New Thread 131081 (LWP 8247)]
[New Thread 147466 (LWP 8248)]
(no debugging symbols found)...[New Thread 163851 (LWP 8249)]
[New Thread 180236 (LWP 8250)]
[New Thread 196621 (LWP 8251)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 8234)]
0x300bcce0 in pthread_mutex_lock () from /lib/libpthread.so.0
(gdb) bt
#0  0x300bcce0 in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0x0f777f18 in _XUnregisterFilter () from /usr/X11R6/lib/libX11.so.6
#2  0x0f762200 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#3  0x0f73a724 in XGetDefault () from /usr/X11R6/lib/libX11.so.6
#4  0x0f5c559c in _XcursorGetDisplayInfo () from /usr/lib/libXcursor.so.1
#5  0x0f5c5624 in XcursorSupportsARGB () from /usr/lib/libXcursor.so.1
#6  0x0f5c8814 in XcursorNoticeCreateBitmap () from /usr/lib/libXcursor.so.1
#7  0x0f732b8c in _XNoticeCreateBitmap () from /usr/X11R6/lib/libX11.so.6
#8  0x0f7333d8 in XCreatePixmap () from /usr/X11R6/lib/libX11.so.6
#9  0x0fb58094 in gdk_pixmap_new () from /usr/lib/libgdk-x11-2.0.so.0
#10 0x0fb2a328 in gdk_pixbuf_render_pixmap_and_mask_for_colormap () from
/usr/lib/libgdk-x11-2.0.so.0
#11 0x0fe33ea4 in gtk_window_get_decorated () from /usr/lib/libgtk-x11-2.0.so.0
#12 0x0fe34000 in gtk_window_get_decorated () from /usr/lib/libgtk-x11-2.0.so.0
#13 0x0fe35d38 in gtk_window_reshow_with_initial_size () from
/usr/lib/libgtk-x11-2.0.so.0
#14 0x0f998060 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0
#15 0x0f982948 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#16 0x0f9825bc in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#17 0x0f997378 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#18 0x0f9969f0 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#19 0x0f996d3c in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#20 0x0fe24d30 in gtk_widget_realize () from /usr/lib/libgtk-x11-2.0.so.0
#21 0x1003083c in xfmedia_stock_icons_init ()
#22 0x10030990 in xfmedia_squished_stock_icon_load ()
#23 0x10019a28 in xfmedia_mainwin_new ()
#24 0x10018758 in main ()
(gdb)
Comment 3 Brian J. Tarricone (not reading bugmail) 2005-01-15 04:08:41 CET
(In reply to comment #2)

> #20 0x0fe24d30 in gtk_widget_realize () from /usr/lib/libgtk-x11-2.0.so.0
> #21 0x1003083c in xfmedia_stock_icons_init ()

these 2 are the important lines.  since you don't have xfmedia with debugging
symbols compiled in, i can't really tell what's going on, since i don't call
gtk_widget_realize() from xfmedia_stock_icons_init().  if you can recompile
xfmedia passing --enable-debug=yes to configure, i might be able to figure this
out, but probably not otherwise.  also make sure that the xfmedia binary is not
getting stripped (only relevant if you're building through some kind of package
manager).

Comment 4 Schorsch 2005-01-15 21:49:32 CET
(In reply to comment #3)
[...]
>  if you can recompile
> xfmedia passing --enable-debug=yes to configure, i might be able to figure this
> out, but probably not otherwise.  also make sure that the xfmedia binary is not
> getting stripped (only relevant if you're building through some kind of package
> manager).
Ok

Here is the backtraceStarting program: /usr/local/bin/xfmedia
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 2694)]
[New Thread 32769 (LWP 2695)]
[New Thread 16386 (LWP 2696)]
DBG[gtkxine.c:1228] gtk_xine_realize(): creating audio driver
[New Thread 32771 (LWP 2699)]
[New Thread 49156 (LWP 2700)]
DBG[gtkxine.c:1238] gtk_xine_realize(): creating video XWindow
DBG[gtkxine.c:1257] gtk_xine_realize(): calling XInitThreads()
DBG[gtkxine.c:1265] gtk_xine_realize(): opening a new XDisplay
DBG[gtkxine.c:1275] gtk_xine_realize(): locking display
[New Thread 65541 (LWP 2701)]
DBG[gtkxine.c:1313] gtk_xine_realize(): unlocking display
DBG[gtkxine.c:1327] gtk_xine_realize(): creating stream
[New Thread 81926 (LWP 2702)]
[New Thread 98311 (LWP 2703)]
DBG[gtkxine.c:1332] gtk_xine_realize(): creating xine event queue
[New Thread 114696 (LWP 2704)]
[New Thread 131081 (LWP 2705)]
DBG[main.c:409] main(): about to realize...
DBG[main.c:411] main():     realize done
DBG[mainwin.c:284] xfmedia_mainwin_new(): setting up gtx signals
DBG[mainwin.c:298] xfmedia_mainwin_new():   done
[New Thread 147466 (LWP 2706)]
[New Thread 163851 (LWP 2707)]
[New Thread 180236 (LWP 2708)]
[New Thread 196621 (LWP 2709)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 2694)]
0x0f476ce0 in pthread_mutex_lock () from /lib/libpthread.so.0
(gdb) bt
#0  0x0f476ce0 in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0x0f7a6f0c in _XUnregisterFilter () from /usr/X11R6/lib/libX11.so.6
#2  0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#3  0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#4  0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#5  0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#6  0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#7  0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#8  0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#9  0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#10 0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#11 0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#12 0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#13 0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#14 0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#15 0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#16 0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#17 0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#18 0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#19 0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#20 0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#21 0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#22 0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#23 0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#24 0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#25 0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#26 0x0f7911f4 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
Previous frame inner to this frame (corrupt stack?)



 

Comment 5 Brian J. Tarricone (not reading bugmail) 2005-01-16 00:21:48 CET
unfortunately that's a different backtrace and isn't really useful.  i really
need a trace of all active threads, since i don't think the segfault is actually
occurring in the thread you've displayed.  'thread apply all bt' should be the
command to do that.
Comment 6 Schorsch 2005-01-16 01:21:15 CET
(In reply to comment #5)
> unfortunately that's a different backtrace and isn't really useful.  i really
> need a trace of all active threads, since i don't think the segfault is actually
> occurring in the thread you've displayed.  'thread apply all bt' should be the
> command to do that.
Ok, here we go:

(gdb) thread apply all bt

Thread 14 (Thread 196621 (LWP 13438)):
#0  0x0f47872c in __pthread_sigsuspend () from /lib/libpthread.so.0
#1  0x0f478464 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
#2  0x0f475034 in pthread_cond_wait@GLIBC_2.0 () from /lib/libpthread.so.0
#3  0x0f6e5f58 in _x_config_change_opt () from /usr/lib/libxine.so.1
#4  0x0f6e5f58 in _x_config_change_opt () from /usr/lib/libxine.so.1
#5  0x0f6e5f58 in _x_config_change_opt () from /usr/lib/libxine.so.1
#6  0x0f6e5f58 in _x_config_change_opt () from /usr/lib/libxine.so.1
#7  0x0f6e5f58 in _x_config_change_opt () from /usr/lib/libxine.so.1
Previous frame inner to this frame (corrupt stack?)
#0  0x0f476ce0 in pthread_mutex_lock () from /lib/libpthread.so.0
Comment 7 Brian J. Tarricone (not reading bugmail) 2005-01-16 02:19:03 CET
sounds like a problem with libxine.  are you able to use another xine frontend,
such as xine-ui, gxine, or totem?
Comment 8 Brian J. Tarricone (not reading bugmail) 2005-01-23 10:18:39 CET
bur[n]er in #xfce also sees this:

#0  0xb78e17f1 in pthread_mutex_lock () from /lib/tls/libpthread.so.0
#1  0xb7a45181 in _XUnregisterFilter () from /usr/X11R6/lib/libX11.so.6
#2  0xb7a30299 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#3  0xb7a0fc96 in XGetDefault () from /usr/X11R6/lib/libX11.so.6
#4  0xb774e2fb in _XcursorGetDisplayInfo () from /usr/lib/libXcursor.so.1
#5  0xb774e39f in XcursorSupportsARGB () from /usr/lib/libXcursor.so.1
#6  0xb7750d2c in XcursorNoticeCreateBitmap () from /usr/lib/libXcursor.so.1
#7  0xb7a09e33 in _XNoticeCreateBitmap () from /usr/X11R6/lib/libX11.so.6
#8  0xb7a0a3cd in XCreatePixmap () from /usr/X11R6/lib/libX11.so.6
#9  0xb7c69221 in gdk_pixmap_new () from /usr/lib/libgdk-x11-2.0.so.0
#10 0xb7c3e70a in gdk_pixbuf_render_pixmap_and_mask_for_colormap () from
/usr/lib/libgdk-x11-2.0.so.0
#11 0xb7ecdc75 in gtk_window_get_decorated () from /usr/lib/libgtk-x11-2.0.so.0
#12 0xb7ecde5f in gtk_window_get_decorated () from /usr/lib/libgtk-x11-2.0.so.0
#13 0xb7ecf8a6 in gtk_window_reshow_with_initial_size () from
/usr/lib/libgtk-x11-2.0.so.0
#14 0xb7b873b6 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0
#15 0xb7b75949 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#16 0xb7b756b6 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#17 0xb7b86721 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#18 0xb7b85f4c in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#19 0xb7b861e6 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#20 0xb7ebfbff in gtk_widget_realize () from /usr/lib/libgtk-x11-2.0.so.0
#21 0x0807ad33 in xfmedia_stock_icons_init ()
#22 0x0807ae8b in xfmedia_squished_stock_icon_load ()
#23 0x08061cec in xfmedia_mainwin_new ()
#24 0x08060025 in main ()

forgot to ask if he's on PPC or not.
Comment 9 Brian J. Tarricone (not reading bugmail) 2005-01-26 00:15:49 CET
*** Bug 744 has been marked as a duplicate of this bug. ***
Comment 10 Brian J. Tarricone (not reading bugmail) 2005-02-23 07:32:57 CET
*** Bug 801 has been marked as a duplicate of this bug. ***
Comment 11 Andrew Conkling 2005-04-07 11:18:15 CEST
Isn't this fixed in 0.7x?
Comment 12 Brian J. Tarricone (not reading bugmail) 2005-04-07 16:00:04 CEST
I don't know.  I was never able to reproduce it.  Reporter, is it gone in 0.7.x?

Bug #638

Reported by:
Schorsch
Reported on: 2004-12-31
Last modified on: 2010-12-24
Duplicates (2):
  • 744 xfmedia crashes immediately
  • 801 Xfmedia won't start

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
3 users

Version

Attachments

Additional information