Menu

#263 yad --html gives segmentation fault

New
High
Defect
2015-09-29
2015-09-24
Sagar DV
No

I have tried the following command on bash and it always gives segmentation fault error.

yad --html --uri="http://www.google.com" --browser

I dont what im doing wrong here.

Discussion

  • Victor Ananjevsky

    can you show the output of 'ldd which yad' and make and send me a core file for this segfault?

     
  • Sagar DV

    Sagar DV - 2015-09-25

    The output for ldd $(which yad):

    linux-vdso.so.1 =>  (0x00007ffc67b58000)
        libgtk-x11-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 (0x00007f9f1349c000)
        libgdk-x11-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0 (0x00007f9f131e9000)
        libpangocairo-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 (0x00007f9f12fdc000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0 (0x00007f9f12dbb000)
        libcairo.so.2 => /usr/lib/x86_64-linux-gnu/libcairo.so.2 (0x00007f9f12ab0000)
        libpango-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0 (0x00007f9f12863000)
        libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f9f12612000)
        libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f9f1230a000)
        libwebkitgtk-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libwebkitgtk-1.0.so.0 (0x00007f9f102ce000)
        libsoup-2.4.so.1 => /usr/lib/x86_64-linux-gnu/libsoup-2.4.so.1 (0x00007f9f1000e000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9f0fdf0000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9f0fa2b000)
        libgmodule-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007f9f0f827000)
        libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f9f0f4f2000)
        libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f9f0f2ec000)
        libatk-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0 (0x00007f9f0f0ca000)
        libgio-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007f9f0ed57000)
        libpangoft2-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 (0x00007f9f0eb42000)
        libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f9f0e906000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9f0e600000)
        libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f9f0e3f6000)
        libXinerama.so.1 => /usr/lib/x86_64-linux-gnu/libXinerama.so.1 (0x00007f9f0e1f3000)
        libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007f9f0dfe3000)
        libXrandr.so.2 => /usr/lib/x86_64-linux-gnu/libXrandr.so.2 (0x00007f9f0ddd9000)
        libXcursor.so.1 => /usr/lib/x86_64-linux-gnu/libXcursor.so.1 (0x00007f9f0dbcf000)
        libXcomposite.so.1 => /usr/lib/x86_64-linux-gnu/libXcomposite.so.1 (0x00007f9f0d9cc000)
        libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f9f0d7c9000)
        libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f9f0d5b7000)
        libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f9f0d314000)
        libpixman-1.so.0 => /usr/lib/x86_64-linux-gnu/libpixman-1.so.0 (0x00007f9f0d06b000)
        libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f9f0ce45000)
        libxcb-shm.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f9f0cc42000)
        libxcb-render.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f9f0ca39000)
        libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f9f0c81a000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f9f0c601000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f9f0c3f9000)
        libthai.so.0 => /usr/lib/x86_64-linux-gnu/libthai.so.0 (0x00007f9f0c1f0000)
        libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f9f0bfe8000)
        libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f9f0bdaa000)
        libjavascriptcoregtk-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-1.0.so.0 (0x00007f9f0b4f3000)
        libenchant.so.1 => /usr/lib/x86_64-linux-gnu/libenchant.so.1 (0x00007f9f0b2e7000)
        libharfbuzz-icu.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz-icu.so.0 (0x00007f9f0b0e4000)
        libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f9f0ae8f000)
        libgeoclue.so.0 => /usr/lib/x86_64-linux-gnu/libgeoclue.so.0 (0x00007f9f0ac79000)
        libgstapp-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libgstapp-1.0.so.0 (0x00007f9f0aa6c000)
        libgstaudio-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libgstaudio-1.0.so.0 (0x00007f9f0a822000)
        libgstfft-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libgstfft-1.0.so.0 (0x00007f9f0a618000)
        libgstpbutils-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libgstpbutils-1.0.so.0 (0x00007f9f0a3f2000)
        libgstvideo-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libgstvideo-1.0.so.0 (0x00007f9f0a1ac000)
        libgstbase-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0 (0x00007f9f09f54000)
        libgstreamer-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0 (0x00007f9f09c50000)
        libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f9f099fb000)
        libsecret-1.so.0 => /usr/lib/x86_64-linux-gnu/libsecret-1.so.0 (0x00007f9f097ad000)
        libxslt.so.1 => /usr/lib/x86_64-linux-gnu/libxslt.so.1 (0x00007f9f09570000)
        libxml2.so.2 => /usr/lib/x86_64-linux-gnu/libxml2.so.2 (0x00007f9f0920a000)
        libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007f9f08fa4000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9f08da0000)
        libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f9f08ae7000)
        libicui18n.so.52 => /usr/lib/x86_64-linux-gnu/libicui18n.so.52 (0x00007f9f086e0000)
        libicuuc.so.52 => /usr/lib/x86_64-linux-gnu/libicuuc.so.52 (0x00007f9f08367000)
        libwebp.so.5 => /usr/lib/x86_64-linux-gnu/libwebp.so.5 (0x00007f9f0810f000)
        libXt.so.6 => /usr/lib/x86_64-linux-gnu/libXt.so.6 (0x00007f9f07ea9000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f9f07ba5000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f9f13ad9000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f9f0798f000)
        libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f9f0776c000)
        libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f9f07551000)
        libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f9f07327000)
        libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f9f07123000)
        libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f9f06f1d000)
        libdatrie.so.1 => /usr/lib/x86_64-linux-gnu/libdatrie.so.1 (0x00007f9f06d16000)
        libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f9f06afa000)
        libdbus-glib-1.so.2 => /usr/lib/x86_64-linux-gnu/libdbus-glib-1.so.2 (0x00007f9f068d3000)
        libgsttag-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libgsttag-1.0.so.0 (0x00007f9f0669b000)
        liborc-0.4.so.0 => /usr/lib/x86_64-linux-gnu/liborc-0.4.so.0 (0x00007f9f06419000)
        libgcrypt.so.11 => /lib/x86_64-linux-gnu/libgcrypt.so.11 (0x00007f9f06199000)
        liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f9f05f77000)
        libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007f9f05d50000)
        libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f9f05b4e000)
        libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f9f05937000)
        libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f9f05732000)
        libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007f9f0552f000)
        libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007f9f0532c000)
        libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f9f05126000)
        libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007f9f04f24000)
        libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f9f04d1e000)
        libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f9f04b12000)
        libicudata.so.52 => /usr/lib/x86_64-linux-gnu/libicudata.so.52 (0x00007f9f032a5000)
        libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007f9f0309d000)
        libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007f9f02e81000)
        libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f9f02c3c000)
        libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f9f02a37000)
        libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f9f02832000)
    

    I didnt understand the part of core file thing. Can you explain me on how to do that ??

     
  • francis

    francis - 2015-09-29

    I have the same problem. The output of the program is:

    yad --html --browser --uri=file://Guia_de_estilo_codigo.html --width=1000 --height=1000
    No bp log location saved, using default.
    [000:000] Cpu: 6.58.9, x4, 2901Mhz, 3777MB
    [000:000] Computer model: Not available
    [000:000] Browser XEmbed support present: 1
    [000:000] Browser toolkit is Gtk2.
    [000:000] Using Gtk2 toolkit
    [000:000] Warning(optionsfile.cc:30): Load: Could not open file, err=2
    [000:000] No bp log location saved, using default.
    [000:001] Cpu: 6.58.9, x4, 2901Mhz, 3777MB
    [000:001] Computer model: Not available
    [000:001] Browser XEmbed support present: 1
    [000:001] Browser toolkit is Gtk2.
    [000:001] Using Gtk2 toolkit
    No bp log location saved, using default.
    [000:000] Cpu: 6.58.9, x4, 2901Mhz, 3777MB
    [000:000] Computer model: Not available
    Vector smash protection is enabled.
    [000:006] Warning(optionsfile.cc:30): Load: Could not open file, err=2
    [000:006] No bp log location saved, using default.
    [000:006] Cpu: 6.58.9, x4, 2901Mhz, 3777MB
    [000:007] Computer model: Not available
    Segmentation fault (core dumped)
    

    and the core file looks like:

    GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
    Copyright (C) 2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-linux-gnu".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.
    For help, type "help".
    Type "apropos word" to search for commands related to "word"...
    Reading symbols from yad...(no debugging symbols found)...done.
    [New LWP 31939]
    [New LWP 31942]
    [New LWP 31940]
    [New LWP 31943]
    [New LWP 31941]
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
    Core was generated by `yad --html --browser --uri=file://Guia_de_estilo_codigo.html --width=1000 --hei'.
    Program terminated with signal SIGSEGV, Segmentation fault.
    #0  __strchr_sse2 () at ../sysdeps/x86_64/multiarch/../strchr.S:32
    32  ../sysdeps/x86_64/multiarch/../strchr.S: No such file or directory.
    Traceback (most recent call last):
      File "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py", line 63, in <module>
        from libstdcxx.v6.printers import register_libstdcxx_printers
    ImportError: No module named 'libstdcxx'
    (gdb) wher 
    #0  __strchr_sse2 () at ../sysdeps/x86_64/multiarch/../strchr.S:32
    #1  0x00007f776515854b in g_param_spec_pool_lookup ()
       from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
    #2  0x00007f77651539b6 in g_object_set_valist ()
       from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
    #3  0x00007f7765154397 in g_object_set () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
    #4  0x0000000000420588 in ?? ()
    #5  0x000000000041f678 in ?? ()
    #6  0x000000000040eb12 in ?? ()
    #7  0x00007f7762576ec5 in __libc_start_main (main=0x40e6f0, argc=6, argv=0x7fff85de58e8, 
        init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, 
        stack_end=0x7fff85de58d8) at libc-start.c:287
    #8  0x000000000040ed4e in ?? ()
    
     
  • Victor Ananjevsky

    can you check the latest svn? i think, i found and fix this bug

     
    • francis

      francis - 2015-09-29

      I don't have now a core file but an empty window is created.

       
      • Victor Ananjevsky

        this is because you specify malformed uri. in your command-line --uri=file://Guia_de_estilo_codigo.html is whong

        must be --uri=file://full/path/to/Guia_de_estilo_codigo.html or --uri=Guia_de_estilo_codigo.html

         
  • francis

    francis - 2015-09-29

    I tried full path to the file and also --uri=http://www.google.com with no succeed. In fact I used without problems "yad --html" in old scripts than don't work now.

     
    • Victor Ananjevsky

      is there any output of yad with errors?

       
  • francis

    francis - 2015-09-29

    There is no output error. It seems that the option '--html' has disapared in my compilation.

    /usr/local/bin/yad --help
    Usage:
      yad [OPTION...] - Yet another dialoging program
    
    Help Options:
      -h, --help                                     Show help options
      --help-all                                     Show all help options
      --help-general                                 Show general options
      --help-calendar                                Show calendar options
      --help-color                                   Show color selection options
      --help-dnd                                     Show drag-n-drop options
      --help-entry                                   Show text entry options
      --help-file                                    Show file selection options
      --help-font                                    Show font selection options
      --help-form                                    Show form options
      --help-icons                                   Show icons box options
      --help-list                                    Show list options
      --help-multi-progress                          Show multi progress bars options
      --help-notebook                                Show notebook dialog options
      --help-notification                            Show notification icon options
      --help-paned                                   Show paned dialog options
      --help-print                                   Show print dialog options
      --help-progress                                Show progress options
      --help-scale                                   Show scale options
      --help-text                                    Show text information options
      --help-filter                                  Show file filter options
      --help-misc                                    Show miscellaneous options
      --help-gtk                                     Show GTK+ Options
    
    Application Options:
      --rest=FILENAME                                Load extra arguments from file
      --calendar                                     Display calendar dialog
      --color                                        Display color selection dialog
      --color-selection                              Alias for --color
      --dnd                                          Display drag-n-drop box
      --entry                                        Display text entry or combo-box dialog
      --file                                         Display file selection dialog
      --file-selection                               Alias for --file
      --font                                         Display font selection dialog
      --font-selection                               Alias for --font
      --form                                         Display form dialog
      --icons                                        Display icons box dialog
      --list                                         Display list dialog
      --multi-progress                               Display multi progress bars dialog
      --notebook                                     Display notebook dialog
      --notification                                 Display notification
      --paned                                        Display paned dialog
      --print                                        Display printing dialog
      --progress                                     Display progress indication dialog
      --scale                                        Display scale dialog
      --text-info                                    Display text information dialog
      --display=DISPLAY                              X display to use
    
     
    • Victor Ananjevsky

      add --enable-html option to ./configure. this dialog disabled by default, because it use additional library

       
  • francis

    francis - 2015-09-29

    After installing webkit-1.0-dev all works fine.

    thanks a lot.

     

Log in to post a comment.