<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body smarttemplateinserted="true">
    <div id="smartTemplate4-template"><br>
      <div style="font-family:Helvetica, Tahoma, Arial; font-size:10pt;
        color:#000066;"><br>
        Dear all,<br>
        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.<br>
        <br>
        Thanks to all.<br>
        Nicola<br>
        <br>
      </div>
    </div>
    <br>
    <div id="smartTemplate4-quoteHeader"><br>
      <br>
      <font face="MathJax_Typewriter, Courier, Courier New"
        color="black">------ Original Message ------<br>
        From: Bernhard Übelacker <a class="moz-txt-link-rfc2396E" href="mailto:bernhardu@mailbox.org"><bernhardu@mailbox.org></a><br>
        To: Andriy Grytsenko <a class="moz-txt-link-rfc2396E" href="mailto:andrej@rep.kiev.ua"><andrej@rep.kiev.ua></a> <br>
        CC: <a class="moz-txt-link-abbreviated" href="mailto:914150@bugs.debian.org">914150@bugs.debian.org</a>, <a class="moz-txt-link-abbreviated" href="mailto:brambil@gmail.com">brambil@gmail.com</a>, <a class="moz-txt-link-abbreviated" href="mailto:cedric321@gmx.fr">cedric321@gmx.fr</a>,
        <a class="moz-txt-link-abbreviated" href="mailto:jfp@clearfield.com">jfp@clearfield.com</a> <br>
        Date: Sun, 17 Mar 2019 18:39:10 +0100<br>
        M-ID: <a class="moz-txt-link-rfc2396E" href="mailto:4c5de5b3-be31-3373-8fe5-909d64197397@mailbox.org"><4c5de5b3-be31-3373-8fe5-909d64197397@mailbox.org></a><br>
        Subject: Re: Bug#914150: pcmanfm: SIGSEGV, Segmentation fault on
        opening folder<br>
      </font><br>
    </div>
    <blockquote type="cite"
      cite="mid:4c5de5b3-be31-3373-8fe5-909d64197397@mailbox.org">
      <pre class="moz-quote-pre" wrap="">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=<optimized out>, buf=0x7f030c8a347c "<?xml version=\"1\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.0//EN\" \<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\">"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\"</a>>\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\" \<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\">"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\"</a>>\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\" \<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\">"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\"</a>>\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=0x56381882c5e0) 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] <a class="moz-txt-link-freetext" href="https://gitlab.gnome.org/GNOME/librsvg/commit/f5608502581207921b3b9e8adc53be7430945ade">https://gitlab.gnome.org/GNOME/librsvg/commit/f5608502581207921b3b9e8adc53be7430945ade</a>
[2] <a class="moz-txt-link-freetext" href="https://gitlab.gnome.org/GNOME/librsvg/issues/405">https://gitlab.gnome.org/GNOME/librsvg/issues/405</a>
</pre>
    </blockquote>
    <div class="moz-signature"><br>
      <div style="float:left"><font rowspace="2" size="5"
          face="Webdings" color="#009900">P</font></div>
      <div><font size="2" face="Helvetica, Tahoma, Arial"
          color="#009900">Please consider the enviroment before
          printing.<br>
          Pensa all'ambiente prima di stampare.</font><br>
        <font size="2" face="MathJax_Typewriter, Ubuntu Mono, Roboto
          Mono, Courier New, FreeMono" color="#808080">----<br>
          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.</font>
      </div>
    </div>
  </body>
</html>