Dear all,
reading this e-mail I made a test: removing meteoCNS from the folder... now pcmanFM works. It was an SVG file, I tried opening it but probably now is corrupt. I can send it by e-mail, if someone want it for debugging porpouse.

Thanks to all.
Nicola




------ Original Message ------
From: Bernhard Übelacker <bernha...@mailbox.org>
To: Andriy Grytsenko <and...@rep.kiev.ua>
CC: 914...@bugs.debian.org, bram...@gmail.com, cedric...@gmx.fr, j...@clearfield.com
Date: Sun, 17 Mar 2019 18:39:10 +0100
M-ID: <4c5de5b3-be31-3373-8fe5-909d64197...@mailbox.org>
Subject: Re: Bug#914150: pcmanfm: SIGSEGV, Segmentation fault on opening folder

Hello Andriy Grytsenko,
tried to reproduce but could not find the file "meteoCNS" anywhere on the net.

Instead found following file that triggers the same crash stacktrace:

    openclipart-svg: /usr/share/openclipart/svg/recreation/religion/christianity/coat_of_arms_of_anglica_01.svg

Navigating pcmanfm to a directory containing that file I get this stack:

    (gdb) bt
    #0  0x00007f03218f42c0 in ?? () from /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
    #1  0x00007f03254c212d in ?? () from /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
    #2  0x00007f03254c2bd8 in gdk_pixbuf_loader_write () from /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
    #3  0x00007f03254c0668 in gdk_pixbuf_get_file_info () from /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
    #4  0x00007f0325b86a06 in ?? () from /usr/lib/x86_64-linux-gnu/libfm-gtk.so.4
    #5  0x00007f0325326a0c in ?? () from /usr/lib/x86_64-linux-gnu/libfm.so.4
    #6  0x00007f0325327628 in ?? () from /usr/lib/x86_64-linux-gnu/libfm.so.4
    #7  0x00007f032503c425 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
    #8  0x00007f0324e27fa3 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
    #9  0x00007f0324d5882f in clone () from /lib/x86_64-linux-gnu/libc.so.6

And with debug symbols installed:

    (gdb) bt
    #0  gdk_pixbuf__svg_image_load_increment (data="" out>, buf=0x7f030c8a347c "<?xml version=\"1\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.0//EN\" \"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\">\r\n<svg viewBox=\"50 -1 500 594\" width=\"100%\">\n  <metadata>"..., size=4096, error=0x0) at io-svg.c:134
    #1  0x00007f03254c212d in gdk_pixbuf_loader_load_module (loader=loader@entry=0x7f031423b520, image_type=image_type@entry=0x0, error=error@entry=0x0) at ../gdk-pixbuf/gdk-pixbuf-loader.c:426
    #2  0x00007f03254c2bd8 in gdk_pixbuf_loader_eat_header_write (error=0x0, count=4096, buf=0x7f0321053a30 "<?xml version=\"1\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.0//EN\" \"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\">\r\n<svg viewBox=\"50 -1 500 594\" width=\"100%\">\n  <metadata>"..., loader=0x7f031423b520) at ../gdk-pixbuf/gdk-pixbuf-loader.c:489
    #3  gdk_pixbuf_loader_write (loader=loader@entry=0x7f031423b520, buf=buf@entry=0x7f0321053a30 "<?xml version=\"1\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.0//EN\" \"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\">\r\n<svg viewBox=\"50 -1 500 594\" width=\"100%\">\n  <metadata>"..., count=4096, error=error@entry=0x0) at ../gdk-pixbuf/gdk-pixbuf-loader.c:535
    #4  0x00007f03254c0668 in gdk_pixbuf_get_file_info (filename=filename@entry=0x7f030c6dde90 "/tmp/svg/coat_of_arms_of_anglica_01.svg", width=width@entry=0x7f0321054a70, height=height@entry=0x7f0321054a74) at ../gdk-pixbuf/gdk-pixbuf-io.c:1934
    #5  0x00007f0325b86a06 in read_image_from_file (filename=0x7f030c6dde90 "/tmp/svg/coat_of_arms_of_anglica_01.svg") at gtk/fm-thumbnail.c:142
    #6  0x00007f0325326a0c in generate_thumbnails_with_builtin (task=task@entry=0x563818d3cdc0) at base/fm-thumbnail-loader.c:979
    #7  0x00007f0325327628 in generate_thumbnails (task=0x563818d3cdc0) at base/fm-thumbnail-loader.c:812
    #8  load_thumbnail_thread (user_data=<optimized out>) at base/fm-thumbnail-loader.c:488
    #9  0x00007f032503c425 in g_thread_proxy (data="" at ../../../glib/gthread.c:784
    #10 0x00007f0324e27fa3 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
    #11 0x00007f0324d5882f in clone () from /lib/x86_64-linux-gnu/libc.so.6


That exact line got touched by upstream in commit [1]
pointing to upstream bug report [2]:

    133             if (!rsvg_handle_write (context->handle, buf, size, error)) {
    134                     g_clear_pointer(error, g_error_free);
    135                     rsvg_propagate_error (error, _("Error writing"), ERROR_WRITING);


I think the error reported by Nicola in message #18 and #36
is a distinct error and the one reported by jfp in message #5
seems to be solved by the upload of libfm in message #31.

Therefore I would propose to
- reassign this bug 914150 to libfm/1.3.0-1
- clone it and reassign the clone to librsvg2-common/2.44.10-1
- and close this bug 914150

What do you think?


Kind regards,
Bernhard

[1] https://gitlab.gnome.org/GNOME/librsvg/commit/f5608502581207921b3b9e8adc53be7430945ade
[2] https://gitlab.gnome.org/GNOME/librsvg/issues/405

P
Please consider the enviroment before printing.
Pensa all'ambiente prima di stampare.

----
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. Any views expressed in this message are those of the individual sender. This footer also confirms that this email message has been scanned for the presence of computer viruses.

Reply via email to