! 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 !
xfdesktop segfaults randomly
Status:
RESOLVED: FIXED
Product:
Xfdesktop
Component:
General

Comments

Description Eric 2014-03-05 10:08:24 CET
Since months, xfdesktop started to segfault randomly. I'm using Arch 64, Xfce 4.10, kernel 3.12.13

Here is a backtrace :

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4a83697 in g_slice_alloc () from /usr/lib/libglib-2.0.so.0
(gdb) bt
#0  0x00007ffff4a83697 in g_slice_alloc () from /usr/lib/libglib-2.0.so.0
#1  0x00007ffff5755e13 in pango_attr_font_desc_new (desc=0x7fffe000cb60)
    at pango-attributes.c:723
#2  0x00007ffff574d71c in pango_layout_get_effective_attributes (
    layout=layout@entry=0x74c180) at pango-layout.c:3834
#3  0x00007ffff576060c in pango_layout_check_lines (layout=0x74c180)
    at pango-layout.c:3924
#4  0x00007ffff5762618 in pango_layout_get_extents_internal (layout=0x74c180, 
    ink_rect=0x0, logical_rect=0x7fffffffd5b0, line_extents=0x0)
    at pango-layout.c:2587
#5  0x00007ffff5762a46 in pango_layout_get_pixel_extents (layout=0x74c180, 
    ink_rect=0x0, logical_rect=0x7fffffffd5b0) at pango-layout.c:2808
#6  0x000000000041ddfe in xfdesktop_icon_view_calculate_icon_text_area (
    text_area=0x7fffffffd630, icon=0x7ec210, icon_view=0x733330)
    at xfdesktop-icon-view.c:2805
#7  xfdesktop_icon_view_update_icon_extents (
    icon_view=icon_view@entry=0x733330, icon=icon@entry=0x7ec210, 
    pixbuf_extents=pixbuf_extents@entry=0x7fffffffd620, 
    text_extents=text_extents@entry=0x7fffffffd630, 
    total_extents=total_extents@entry=0x7fffffffd640)
    at xfdesktop-icon-view.c:2863
#8  0x000000000041df76 in xfdesktop_icon_view_invalidate_icon (
    icon_view=0x733330, icon=0x7ec210, recalc_extents=<optimized out>)
---Type <return> to continue, or q <return> to quit---
    at xfdesktop-icon-view.c:2621
#9  0x00007ffff4d30387 in ?? () from /usr/lib/libgobject-2.0.so.0
#10 0x00007ffff4d48e18 in g_signal_emit_valist ()
   from /usr/lib/libgobject-2.0.so.0
#11 0x00007ffff4d49a72 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#12 0x00007fffefec0d8c in ffi_call_unix64 () from /usr/lib/libffi.so.6
#13 0x00007fffefec06bc in ffi_call () from /usr/lib/libffi.so.6
#14 0x00007ffff4d30df5 in g_cclosure_marshal_generic_va ()
   from /usr/lib/libgobject-2.0.so.0
#15 0x00007ffff4d30387 in ?? () from /usr/lib/libgobject-2.0.so.0
#16 0x00007ffff4d48e18 in g_signal_emit_valist ()
   from /usr/lib/libgobject-2.0.so.0
#17 0x00007ffff4d49a72 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#18 0x00007ffff5430af1 in ?? () from /usr/lib/libgio-2.0.so.0
#19 0x00007ffff4a680e6 in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#20 0x00007ffff4a68438 in ?? () from /usr/lib/libglib-2.0.so.0
#21 0x00007ffff4a6883a in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#22 0x00007ffff62ae9d7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#23 0x00000000004132ff in main (argc=1, argv=0x7fffffffe768) at main.c:406
Comment 1 Eric Koegel editbugs 2014-03-15 20:31:55 CET
This is looking like you've hit on a memory
corruption issue. Can you try debugging it
with:

export G_SLICE=debug-blocks
gdb xfdesktop

and posting that backtrace once it crashes?
This might help us figure out what's going on.
Comment 2 Eric 2014-03-16 10:59:51 CET
(In reply to Eric Koegel from comment #1)
> This is looking like you've hit on a memory
> corruption issue. Can you try debugging it
> with:
> 
> export G_SLICE=debug-blocks
> gdb xfdesktop
> 
> and posting that backtrace once it crashes?
> This might help us figure out what's going on.

Hello and thank you,

Did what you told me. Waiting for xfdesktop to crash...

Eric
Comment 3 Eric 2014-03-16 13:18:01 CET
Received from gdb those messages : 

Program received signal SIGABRT, Aborted.
0x00007ffff4490389 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007ffff4490389 in raise () from /usr/lib/libc.so.6
#1  0x00007ffff4491788 in abort () from /usr/lib/libc.so.6
#2  0x00007ffff4a3a855 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff4a82c3b in ?? () from /usr/lib/libglib-2.0.so.0
#4  0x00007ffff4a82ee6 in ?? () from /usr/lib/libglib-2.0.so.0
#5  0x00007ffff4a3ad8c in ?? () from /usr/lib/libglib-2.0.so.0
#6  0x00007ffff4a83d29 in g_slice_free1 () from /usr/lib/libglib-2.0.so.0
#7  0x00007ffff5f2cf28 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#8  0x00007ffff5f2d0aa in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#9  0x00007ffff5f2d31c in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#10 0x00007ffff5f0f597 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#11 0x00007ffff5f0fe18 in gdk_window_process_all_updates ()
   from /usr/lib/libgdk-x11-2.0.so.0
#12 0x00007ffff5f0fe79 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#13 0x00007ffff5eef6b7 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#14 0x00007ffff4a680e6 in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#15 0x00007ffff4a68438 in ?? () from /usr/lib/libglib-2.0.so.0
#16 0x00007ffff4a6883a in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#17 0x00007ffff62ae9d7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#18 0x0000000000412c90 in main ()

Dunno if it van help you...

Eric
Comment 4 Eric 2014-03-16 16:42:10 CET
Hello,

Here it is : 

Program received signal SIGSEGV, Segmentation fault.
pango_attr_list_get_iterator (list=list@entry=0xa63760)
    at pango-attributes.c:1629
1629	pango-attributes.c: Aucun fichier ou dossier de ce type.
(gdb) backtrace
#0  pango_attr_list_get_iterator (list=list@entry=0xa63760)
    at pango-attributes.c:1629
#1  0x00007ffff5757f72 in itemize_state_init (
    state=state@entry=0x7fffffffcbe0, context=<optimized out>, 
    text=text@entry=0x7ffff576ca7f "…", base_dir=PANGO_DIRECTION_LTR, 
    start_index=start_index@entry=0, length=3, attrs=attrs@entry=0xa63760, 
    cached_iter=cached_iter@entry=0x0, desc=desc@entry=0x0)
    at pango-context.c:926
#2  0x00007ffff57597d7 in pango_itemize_with_base_dir (
    context=<optimized out>, base_dir=<optimized out>, 
    text=text@entry=0x7ffff576ca7f "…", start_index=start_index@entry=0, 
    length=<optimized out>, attrs=attrs@entry=0xa63760, 
    cached_iter=cached_iter@entry=0x0) at pango-context.c:1586
#3  0x00007ffff57598ee in pango_itemize (context=<optimized out>, 
    text=text@entry=0x7ffff576ca7f "…", start_index=start_index@entry=0, 
    length=<optimized out>, attrs=attrs@entry=0xa63760, 
    cached_iter=cached_iter@entry=0x0) at pango-context.c:1663
#4  0x00007ffff57504cc in itemize_text (text=text@entry=0x7ffff576ca7f "…", 
    attrs=attrs@entry=0xa63760, state=<optimized out>) at ellipsize.c:278
#5  0x00007ffff575069b in shape_ellipsis (state=0x7fffffffd240)
    at ellipsize.c:343
#6  update_ellipsis_shape (state=state@entry=0x7fffffffd240) at ellipsize.c:462
#7  0x00007ffff5750b88 in find_initial_span (state=0x7fffffffd240)
---Type <return> to continue, or q <return> to quit---
    at ellipsize.c:551
#8  _pango_layout_line_ellipsize (line=line@entry=0xa80cf0, 
    attrs=<optimized out>, goal_width=goal_width@entry=81920)
    at ellipsize.c:740
#9  0x00007ffff5760caf in pango_layout_line_postprocess (
    wrapped=<optimized out>, state=<optimized out>, line=<optimized out>)
    at pango-layout.c:5361
#10 process_line (state=0x7fffffffd450, layout=0x755b90) at pango-layout.c:3762
#11 pango_layout_check_lines (layout=<optimized out>) at pango-layout.c:4027
#12 0x00007ffff5762618 in pango_layout_get_extents_internal (layout=0x755b90, 
    ink_rect=0x0, logical_rect=0x7fffffffd600, line_extents=0x0)
    at pango-layout.c:2587
#13 0x00007ffff5762a46 in pango_layout_get_pixel_extents (layout=0x755b90, 
    ink_rect=0x0, logical_rect=0x7fffffffd600) at pango-layout.c:2808
#14 0x000000000041cee6 in ?? ()
#15 0x000000000041dbda in ?? ()
#16 0x00007ffff4d30387 in ?? () from /usr/lib/libgobject-2.0.so.0
#17 0x00007ffff4d48e18 in g_signal_emit_valist ()
   from /usr/lib/libgobject-2.0.so.0
#18 0x00007ffff4d49a72 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#19 0x00007fffefebcd8c in ffi_call_unix64 () from /usr/lib/libffi.so.6
#20 0x00007fffefebc6bc in ffi_call () from /usr/lib/libffi.so.6
#21 0x00007ffff4d30df5 in g_cclosure_marshal_generic_va ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/libgobject-2.0.so.0
#22 0x00007ffff4d30387 in ?? () from /usr/lib/libgobject-2.0.so.0
#23 0x00007ffff4d48e18 in g_signal_emit_valist ()
   from /usr/lib/libgobject-2.0.so.0
#24 0x00007ffff4d49a72 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#25 0x00007ffff5430af1 in ?? () from /usr/lib/libgio-2.0.so.0
#26 0x00007ffff4a680e6 in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#27 0x00007ffff4a68438 in ?? () from /usr/lib/libglib-2.0.so.0
#28 0x00007ffff4a6883a in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#29 0x00007ffff62ae9d7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#30 0x0000000000412c90 in main ()
(gdb)
Comment 5 Eric 2014-03-18 08:19:17 CET
Hello,

IMPORTANT : If I choose in settings to put no icons on the desktop, xfdesktop stops segfaulting...

Hope it will help you

Thank you in advance,

Eric
Comment 6 Eric Koegel editbugs 2014-03-19 18:24:33 CET
It still crashes at pango, interesting. What version
of pango do you have installed?

pkg-config --modversion pango

Should pull up that info. Maybe you can try a couple
settings to narrow down what causes crashes like trying
with minimized icons and opening a couple calculator
apps, minimizing them, and waiting for a crash? Also
when you display file icons, do you the home, filesystem,
or trash icons?
Comment 7 Eric 2014-03-19 19:16:56 CET
Hello,

I have pango 1.36.2 installed.

I display both home, filesystem and trash icons. Been on #xfce-dev those days where I've been told to try what you say.

I've choosen to display no icons at all, and then xfdesktop stopped segfaulting.

I let you know that I posted another bug report for random Thunar crash (too... ) 

https://bugzilla.xfce.org/show_bug.cgi?id=10753

Thank you
Comment 8 Eric 2014-03-24 17:55:21 CET
Just like the bug 10753, was caused by my conky files. Modifing them made the bug vanish.

Bug #10729

Reported by:
Eric
Reported on: 2014-03-05
Last modified on: 2014-03-24

People

Assignee:
Eric Koegel
CC List:
1 user

Version

Version:
4.10.0

Attachments

Additional information