! 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 !
segfault upon launch - after setting up gtx signals (attached gdb info)
Status:
RESOLVED: FIXED
Severity:
critical
Product:
Xfmedia
Component:
general

Comments

Description Douglas Breault Jr. 2005-09-04 04:56:21 CEST
xfmedia will not launch. compiling with debug doesn't point to any useful
information, so I pasted some gdb output below in additional information. I'm
not sure what I am doing honestly, so if you need more information please let me
know and I will be more than happy to comply.

xfmedia 0.5.0 launches. Under versions 0.7.0 and 0.8.0 I experience the same
problem.

Reproducible: Always
Steps to Reproduce:
1. Launch xfmedia as any user
Actual Results:  
Segmentation fault without reason

Expected Results:  
The player to launch


DBG[gtkxine.c:1314] gtk_xine_realize(): creating video XWindow
DBG[gtkxine.c:1333] gtk_xine_realize(): calling XInitThreads()
DBG[gtkxine.c:1341] gtk_xine_realize(): opening a new XDisplay
DBG[gtkxine.c:1351] gtk_xine_realize(): locking display
[New Thread -1244464208 (LWP 16938)]
DBG[gtkxine.c:1389] gtk_xine_realize(): unlocking display
DBG[gtkxine.c:1404] gtk_xine_realize(): creating stream
[New Thread -1256957008 (LWP 16939)]
[New Thread -1267237968 (LWP 16940)]
DBG[gtkxine.c:1409] gtk_xine_realize(): creating xine event queue
[New Thread -1275630672 (LWP 16941)]
[New Thread -1284023376 (LWP 16942)]
DBG[main.c:516] main(): about to realize...
DBG[main.c:518] main():     realize done
DBG[mainwin.c:442] xfmedia_mainwin_new(): setting up gtx signals
DBG[mainwin.c:460] xfmedia_mainwin_new():   done
[New Thread -1296655440 (LWP 16943)]
[New Thread -1305326672 (LWP 16944)]
[New Thread -1317819472 (LWP 16945)]
[New Thread -1328100432 (LWP 16946)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1209047360 (LWP 16930)]
---Type <return> to continue, or q <return> to quit---
0x47d11f64 in pthread_mutex_lock () from /lib/tls/libpthread.so.0
(gdb) p mwin->video_window
No symbol "mwin" in current context.
(gdb) p mwin->tooltips
No symbol "mwin" in current context.
Comment 1 Douglas Breault Jr. 2005-09-04 05:02:20 CEST
The tail-end of an strace as was suggested:

open("/usr/share/fonts/lfpfonts-var/fonts.cache-1", O_RDONLY) = 9
stat64("/usr/share/fonts/lfpfonts-var", {st_mode=S_IFDIR|0755, st_size=7944,
...}) = 0
stat64("/usr/share/fonts/lfpfonts-var/fonts.cache-1", {st_mode=S_IFREG|0644,
st_size=23563, ...}) = 0
close(9)                                = 0
stat64("/usr/share/fonts/lfpfonts-var", {st_mode=S_IFDIR|0755, st_size=7944,
...}) = 0
open("/usr/share/fonts/urw-fonts/fonts.cache-1", O_RDONLY) = 9
stat64("/usr/share/fonts/urw-fonts", {st_mode=S_IFDIR|0755, st_size=2592, ...}) = 0
stat64("/usr/share/fonts/urw-fonts/fonts.cache-1", {st_mode=S_IFREG|0644,
st_size=25881, ...}) = 0
fstat64(9, {st_mode=S_IFREG|0644, st_size=25881, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb1bf5000
read(9, "\"p052024l.pfb\" 0 \"URW Palladio L"..., 131072) = 25881
read(9, "", 131072)                     = 0
close(9)                                = 0
munmap(0xb1bf5000, 131072)              = 0
open("/usr/share/fonts/cyrillic/fonts.cache-1", O_RDONLY) = 9
stat64("/usr/share/fonts/cyrillic", {st_mode=S_IFDIR|0755, st_size=2848, ...}) = 0
stat64("/usr/share/fonts/cyrillic/fonts.cache-1", {st_mode=S_IFREG|0644,
st_size=0, ...}) = 0
fstat64(9, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb1bf5000
read(9, "", 131072)                     = 0
close(9)                                = 0
munmap(0xb1bf5000, 131072)              = 0
open("/usr/share/fonts/default/ghostscript/fonts.cache-1", O_RDONLY) = 9
stat64("/usr/share/fonts/default/ghostscript", {st_mode=S_IFDIR|0755,
st_size=3128, ...}) = 0
stat64("/usr/share/fonts/default/ghostscript/fonts.cache-1",
{st_mode=S_IFREG|0644, st_size=24346, ...}) = 0
fstat64(9, {st_mode=S_IFREG|0644, st_size=24346, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb1bf5000
read(9, "\"p052024l.pfb\" 0 \"URW Palladio L"..., 131072) = 24346
brk(0x8cda000)                          = 0x8cda000
read(9, "", 131072)                     = 0
close(9)                                = 0
munmap(0xb1bf5000, 131072)              = 0
open("/usr/share/fonts/encodings/large/fonts.cache-1", O_RDONLY) = 9
stat64("/usr/share/fonts/encodings/large", {st_mode=S_IFDIR|0755, st_size=712,
...}) = 0
stat64("/usr/share/fonts/encodings/large/fonts.cache-1", {st_mode=S_IFREG|0644,
st_size=0, ...}) = 0
fstat64(9, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb1bf5000
read(9, "", 131072)                     = 0
close(9)                                = 0
munmap(0xb1bf5000, 131072)              = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


Seems to be a font issue? I can include more if necessary.

Comment 2 Brian J. Tarricone (not reading bugmail) 2005-09-04 05:36:13 CEST
Actually, straces are usually pretty useless for debugging.  I need a backtrace
from gdb at the point of the crash.  Just type 'bt' when it crashes and drops
you to the gdb prompt.
Comment 3 Douglas Breault Jr. 2005-09-04 16:10:08 CEST
(In reply to comment #2)
> Actually, straces are usually pretty useless for debugging.  I need a backtrace
> from gdb at the point of the crash.  Just type 'bt' when it crashes and drops
> you to the gdb prompt.

This is the gdb backtrace from xfmedia 0.8.0 with debug enabeled.

(gdb) bt
#0  0x48c6bf64 in pthread_mutex_lock () from /lib/tls/libpthread.so.0
#1  0x48aa1fb1 in _XLockMutex () from /usr/lib/libX11.so.6
#2  0x48a8ce79 in XrmQGetResource () from /usr/lib/libX11.so.6
#3  0x48a6c787 in XGetDefault () from /usr/lib/libX11.so.6
#4  0x48cd5736 in _XftDefaultInitDouble () from /usr/lib/libXft.so.2
#5  0x48cd5872 in _XftDefaultInit () from /usr/lib/libXft.so.2
#6  0x48cd59e8 in _XftDefaultGet () from /usr/lib/libXft.so.2
#7  0x48cd5ac6 in XftDefaultGetInteger () from /usr/lib/libXft.so.2
#8  0x48cd5155 in _XftDisplayInfoGet () from /usr/lib/libXft.so.2
#9  0x48cd54f8 in XftDefaultHasRender () from /usr/lib/libXft.so.2
#10 0x48cd5f0f in XftDefaultSubstitute () from /usr/lib/libXft.so.2
#11 0x48d8f933 in _pango_xft_font_map_get_renderer ()
   from /usr/lib/libpangoxft-1.0.so.0
#12 0x48d9d3e3 in _pango_fc_font_map_remove ()
   from /usr/lib/libpangoft2-1.0.so.0
#13 0x48d9d48b in _pango_fc_font_map_remove ()
   from /usr/lib/libpangoft2-1.0.so.0
#14 0x48d9d5f9 in _pango_fc_font_map_remove ()
   from /usr/lib/libpangoft2-1.0.so.0
#15 0x490f1d4a in pango_font_map_load_font () from /usr/lib/libpango-1.0.so.0
#16 0x490ef133 in pango_context_load_font () from /usr/lib/libpango-1.0.so.0
#17 0x490f895f in pango_layout_line_get_x_ranges ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/libpango-1.0.so.0
#18 0x490f8e72 in pango_layout_line_get_extents ()
   from /usr/lib/libpango-1.0.so.0
#19 0x490f60da in pango_layout_get_cursor_pos ()
   from /usr/lib/libpango-1.0.so.0
#20 0x490f627b in pango_layout_get_cursor_pos ()
   from /usr/lib/libpango-1.0.so.0
#21 0x490f64c7 in pango_layout_get_extents () from /usr/lib/libpango-1.0.so.0
#22 0x48f03d23 in gtk_label_get () from /usr/lib/libgtk-x11-2.0.so.0
#23 0x48cb6353 in g_cclosure_marshal_VOID__BOXED ()
   from /usr/lib/libgobject-2.0.so.0
#24 0x48ca3f99 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#25 0x48ca3d06 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#26 0x48cb4df1 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#27 0x48cb4618 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#28 0x48cb49b6 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#29 0x48f610de in gtk_size_group_remove_widget ()
   from /usr/lib/libgtk-x11-2.0.so.0
#30 0x48f61458 in gtk_size_group_remove_widget ()
   from /usr/lib/libgtk-x11-2.0.so.0
#31 0x4900833c in gtk_widget_size_request () from /usr/lib/libgtk-x11-2.0.so.0
#32 0x48eaed73 in gtk_event_box_set_above_child ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/libgtk-x11-2.0.so.0
#33 0x48cb6353 in g_cclosure_marshal_VOID__BOXED ()
   from /usr/lib/libgobject-2.0.so.0
#34 0x48ca3f99 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#35 0x48ca3d06 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#36 0x48cb4df1 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#37 0x48cb4618 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#38 0x48cb49b6 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#39 0x48f610de in gtk_size_group_remove_widget ()
   from /usr/lib/libgtk-x11-2.0.so.0
#40 0x48f61458 in gtk_size_group_remove_widget ()
   from /usr/lib/libgtk-x11-2.0.so.0
#41 0x4900833c in gtk_widget_size_request () from /usr/lib/libgtk-x11-2.0.so.0
#42 0x48edba87 in gtk_hbox_new () from /usr/lib/libgtk-x11-2.0.so.0
#43 0x48cb6353 in g_cclosure_marshal_VOID__BOXED ()
   from /usr/lib/libgobject-2.0.so.0
#44 0x48ca3f99 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#45 0x48ca3d06 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#46 0x48cb4df1 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#47 0x48cb4618 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#48 0x48cb49b6 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#49 0x48f610de in gtk_size_group_remove_widget ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/libgtk-x11-2.0.so.0
#50 0x48f61458 in gtk_size_group_remove_widget ()
   from /usr/lib/libgtk-x11-2.0.so.0
#51 0x4900833c in gtk_widget_size_request () from /usr/lib/libgtk-x11-2.0.so.0
#52 0x48eaed73 in gtk_event_box_set_above_child ()
   from /usr/lib/libgtk-x11-2.0.so.0
#53 0x48cb6353 in g_cclosure_marshal_VOID__BOXED ()
   from /usr/lib/libgobject-2.0.so.0
#54 0x48ca3f99 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#55 0x48ca3d06 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#56 0x48cb4df1 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#57 0x48cb4618 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#58 0x48cb49b6 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#59 0x48f610de in gtk_size_group_remove_widget ()
   from /usr/lib/libgtk-x11-2.0.so.0
#60 0x48f61458 in gtk_size_group_remove_widget ()
   from /usr/lib/libgtk-x11-2.0.so.0
#61 0x4900833c in gtk_widget_size_request () from /usr/lib/libgtk-x11-2.0.so.0
#62 0x490008b0 in gtk_vbox_new () from /usr/lib/libgtk-x11-2.0.so.0
#63 0x48cb6353 in g_cclosure_marshal_VOID__BOXED ()
   from /usr/lib/libgobject-2.0.so.0
#64 0x48ca3f99 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#65 0x48ca3d06 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#66 0x48cb4df1 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#67 0x48cb4618 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#68 0x48cb49b6 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#69 0x48f610de in gtk_size_group_remove_widget ()
   from /usr/lib/libgtk-x11-2.0.so.0
#70 0x48f61458 in gtk_size_group_remove_widget ()
   from /usr/lib/libgtk-x11-2.0.so.0
#71 0x4900833c in gtk_widget_size_request () from /usr/lib/libgtk-x11-2.0.so.0
#72 0x490161b3 in gtk_window_reshow_with_initial_size ()
   from /usr/lib/libgtk-x11-2.0.so.0
#73 0x48cb6353 in g_cclosure_marshal_VOID__BOXED ()
   from /usr/lib/libgobject-2.0.so.0
#74 0x48ca3f99 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#75 0x48ca3d06 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#76 0x48cb4df1 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#77 0x48cb4618 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#78 0x48cb49b6 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#79 0x48f610de in gtk_size_group_remove_widget ()
   from /usr/lib/libgtk-x11-2.0.so.0
#80 0x48f61458 in gtk_size_group_remove_widget ()
   from /usr/lib/libgtk-x11-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#81 0x4900833c in gtk_widget_size_request () from /usr/lib/libgtk-x11-2.0.so.0
#82 0x49016049 in gtk_window_reshow_with_initial_size ()
   from /usr/lib/libgtk-x11-2.0.so.0
#83 0x48cb5a96 in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#84 0x48ca3f99 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#85 0x48ca3d06 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#86 0x48cb4df1 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#87 0x48cb4618 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#88 0x48cb48c6 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#89 0x49007bcf in gtk_widget_realize () from /usr/lib/libgtk-x11-2.0.so.0
#90 0x08062294 in ?? ()
#91 0x08ac9928 in ?? ()
#92 0x08087893 in _IO_stdin_used ()
#93 0x0806b660 in ?? ()
#94 0x0856d9b0 in ?? ()
#95 0x00000000 in ?? ()
#96 0x00000000 in ?? ()
#97 0x48a1f820 in _IO_2_1_stdout_ () from /lib/tls/libc.so.6
#98 0x08bdf168 in ?? ()
#99 0x080dc630 in ?? ()
#100 0x08b5d688 in ?? ()
---Type <return> to continue, or q <return> to quit---
#101 0x080cff28 in ?? ()
#102 0x08ac96a8 in ?? ()
#103 0x08acb0e8 in ?? ()
#104 0x080cc478 in ?? ()
#105 0x08ac98c8 in ?? ()
#106 0x08bdbdc0 in ?? ()
#107 0x08ad0290 in ?? ()
#108 0x08af9b98 in ?? ()
#109 0x08afa390 in ?? ()
#110 0x08acb060 in ?? ()
#111 0x08ac9928 in ?? ()
#112 0x0856d9b0 in ?? ()
#113 0xbfd51708 in ?? ()
#114 0x00000010 in ?? ()
#115 0x00000010 in ?? ()
#116 0x00000008 in ?? ()
#117 0x00000008 in ?? ()
#118 0x080d4c58 in ?? ()
#119 0x00000050 in ?? ()
#120 0x080dc4a8 in ?? ()
#121 0xbfd51788 in ?? ()
#122 0x0805e6da in ?? ()
---Type <return> to continue, or q <return> to quit---
#123 0x080dc4a8 in ?? ()
#124 0x080d4c58 in ?? ()
#125 0x00000000 in ?? ()
#126 0x48a1f820 in _IO_2_1_stdout_ () from /lib/tls/libc.so.6
#127 0x080867e7 in _IO_stdin_used ()
#128 0x48a20168 in ?? () from /lib/tls/libc.so.6
#129 0x00000000 in ?? ()
#130 0x00000000 in ?? ()
#131 0x00000000 in ?? ()
#132 0x0177ff8e in ?? ()
#133 0x080c63f8 in ?? ()
#134 0x00000001 in ?? ()
#135 0x00000000 in ?? ()
#136 0x080d4c58 in ?? ()
#137 0xbfd52fee in ?? ()
#138 0x73ea24b1 in ?? ()
#139 0x00000000 in ?? ()
#140 0xffffffff in ?? ()
#141 0x00000000 in ?? ()
#142 0x00000000 in ?? ()
#143 0x00000000 in ?? ()
#144 0x00000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#145 0xbfd51788 in ?? ()
#146 0x48a20168 in ?? () from /lib/tls/libc.so.6
#147 0x48904fb4 in ?? () from /lib/ld-linux.so.2
#148 0x48a1eff4 in ?? () from /lib/tls/libc.so.6
#149 0x080846c0 in ?? ()
#150 0x48a1eff4 in ?? () from /lib/tls/libc.so.6
#151 0x48904c80 in _dl_argv_internal () from /lib/ld-linux.so.2
#152 0x08084660 in ?? ()
#153 0xbfd517e8 in ?? ()
#154 0x4891d0d2 in __libc_start_main () from /lib/tls/libc.so.6
Previous frame inner to this frame (corrupt stack?)
Comment 4 Brian J. Tarricone (not reading bugmail) 2005-09-04 22:21:34 CEST
Let me guess: gtk 2.8.x?
Comment 5 Douglas Breault Jr. 2005-09-04 23:04:32 CEST
(In reply to comment #4)
> Let me guess: gtk 2.8.x?

Clearlooks 0.6.2 for the engine and gtk+ 2.6.8 for the library running under
xfce 4.2.2
Comment 6 Brian J. Tarricone (not reading bugmail) 2005-09-04 23:41:00 CEST
Strange.  I've heard of a vaguely similar crash relating to cairo when using gtk
2.8.  I guess it isn't related after all.  In any case, I have no idea what the
problem could be, sorry.
Comment 7 Douglas Breault Jr. 2005-09-05 01:42:14 CEST
I keep fluxbox on every machine I own as a backup window manager. So I decided
to fire it up for a bit tonight. I started xfce-mcs-manager and then later got
the crazy idea of trying to run xfmedia. It ran.

So it runs in fluxbox, with mcs-manager running, but not in xfce.
Comment 8 Brian J. Tarricone (not reading bugmail) 2005-10-03 22:16:09 CEST
Could you try with xfmedia 0.9.1?  I fixed that gtk-2.8-related bug there, and I
still have a feeling it's triggered by the same condition, even though you're
not using 2.8.
Comment 9 Douglas Breault Jr. 2005-10-04 20:13:58 CEST
0.9.1 is fine for me. I did NOT try 0.9.0 since the ebuild does not exist in
portage for gentoo, but I got the 0.9.1 ebuild from bugs.gentoo.org, and all is
good.

Thank you for the resolution.

Bug #1138

Reported by:
Douglas Breault Jr.
Reported on: 2005-09-04
Last modified on: 2005-10-04

People

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

Version

Attachments

Additional information