#584 pcmanfm-1.0 segfault in fm_file_info_is_image

1.0.1
closed-fixed
nobody
libfm (241)
7
2014-08-14
2012-08-15
No

pcmanfm segfaults while trying to increase the limit size for previews.

step to reproduce:
- open pcmanfm
- go in preferences -> display
- try to increase the value of the last option either with manual changing or arrows

Program received signal SIGSEGV, Segmentation fault.
fm_file_info_is_image (fi=fi@entry=0x2) at base/fm-file-info.c:769
769 if (!strncmp("image/", fi->mime_type->type, 6))
(gdb) bt
#0 fm_file_info_is_image (fi=fi@entry=0x2) at base/fm-file-info.c:769
#1 0x00007ffff4ba1746 in on_thumbnail_max_changed (cfg=0x6a6000, user_data=0x92f180) at gtk/fm-folder-model.c:1348
#2 0x00007ffff5704bb7 in ?? () from /usr/lib64/libgobject-2.0.so.0
#3 0x00007ffff571d0b6 in g_signal_emit_valist () from /usr/lib64/libgobject-2.0.so.0
#4 0x00007ffff571d902 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#5 0x00007ffff5704bb7 in ?? () from /usr/lib64/libgobject-2.0.so.0
#6 0x00007ffff571d0b6 in g_signal_emit_valist () from /usr/lib64/libgobject-2.0.so.0
#7 0x00007ffff571d902 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#8 0x00007ffff731cbc1 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#9 0x00007ffff57048f0 in g_closure_invoke () from /usr/lib64/libgobject-2.0.so.0
#10 0x00007ffff57158e0 in ?? () from /usr/lib64/libgobject-2.0.so.0
#11 0x00007ffff571d6e7 in g_signal_emit_valist () from /usr/lib64/libgobject-2.0.so.0
#12 0x00007ffff571d902 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#13 0x00007ffff71f295a in gtk_adjustment_value_changed () from /usr/lib64/libgtk-x11-2.0.so.0
#14 0x00007ffff731ccf9 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#15 0x00007ffff731e3df in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#16 0x00007ffff732060e in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#17 0x00007ffff72ae3d9 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#18 0x00007ffff57048f0 in g_closure_invoke () from /usr/lib64/libgobject-2.0.so.0
#19 0x00007ffff5715660 in ?? () from /usr/lib64/libgobject-2.0.so.0
#20 0x00007ffff571d38b in g_signal_emit_valist () from /usr/lib64/libgobject-2.0.so.0
#21 0x00007ffff571d902 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#22 0x00007ffff73c5b8e in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#23 0x00007ffff72ac774 in gtk_propagate_event () from /usr/lib64/libgtk-x11-2.0.so.0
#24 0x00007ffff72acacb in gtk_main_do_event () from /usr/lib64/libgtk-x11-2.0.so.0
#25 0x00007ffff6f2005c in ?? () from /usr/lib64/libgdk-x11-2.0.so.0
#26 0x00007ffff541dc35 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#27 0x00007ffff541df68 in ?? () from /usr/lib64/libglib-2.0.so.0
#28 0x00007ffff541e362 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#29 0x00007ffff72abad7 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
#30 0x000000000040fa5a in main (argc=1, argv=0x7fffffffe3d8) at pcmanfm.c:228

operating system: slackware64-current (slackware 14.0-rc1)
glib-2.32.4 / gtk+2-2.24.10

libfm-0.1.17 and pcmanfm-0.9.10 function properly, this behaviour start with 1.0rc1.

Discussion

  • Hi Matteo, just commenting that I have libfm/pcmanfm from git (before the 1.0 release but I checked and there were no commits after me building them and the release) on Fedora 17 32-bit (glib 1:1.2.10-36, gtk2 2.24.11-1) and I can change the value for 'Do not generate thumbnails for files exceeding this size' fine.

     
    • milestone: --> 1.0.1
    • priority: 5 --> 7
     
  • We hope this issue is completely fixed in the Git repository recently.
    Check it out when it's possible for you and if the bug still exists then reopen the report, please.
    Thank you very much.

     
    • status: open --> closed-fixed
     
  • To shamuayka: this happens only if there are thumbnails in progress (i.e. in really big folders with images that aren't loaded yet). Fixed that few moments ago.