Segmentation fault (core dumped)

sbaragnaus
2014-03-01
2014-03-24
  • sbaragnaus

    sbaragnaus - 2014-03-01

    Hi,
    after an update of my system (Chakra Linux with kernel 3.12.6-6, 64bit), which ships python2 2.7.6 I'm unable to launch dispcalGUI. This is the command-line output:

    $ dispcalGUI
    Linux #1 SMP PREEMPT Sat Feb 1 00:04:58 UTC 2014 (chakra  )
    Python 2.7.6 (default, Feb  9 2014, 21:54:41) 
    [GCC 4.8.1 20130725 (prerelease)]
    wxPython 2.8.12.1 (gtk2-unicode)
    Segmentation fault(core dumped)
    

    Is this a dispcalGUI related error or it's Chakra Linux bug?

    Thanks

     
  • Florian Hoech

    Florian Hoech - 2014-03-01

    Probably their bug, as Python code can't really segfault. But you'd have to run a backtrace to be sure where it is segfaulting, e.g.:

    $ gdb --args python2 /usr/bin/dispcalGUI
    run
    

    Then when it crashes

    bt
    

    and

    py-bt
    
     
  • sbaragnaus

    sbaragnaus - 2014-03-01
    (gdb) run
    Starting program: /usr/bin/python2 /usr/bin/dispcalGUI
    warning: Could not load shared library symbols for linux-vdso.so.1.
    Do you need "set solib-search-path" or "set sysroot"?
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/libthread_db.so.1".
    Traceback (most recent call last):
      File "/usr/share/gdb/auto-load/usr/lib/libgobject-2.0.so.0.3800.2-gdb.py", line 9, in <module>
    from gobject import register
      File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
    ImportError: No module named backtrace
    dispcalGUI 1.7.5.7 2014-02-10T00:15:21.539532Z
    Linux #1 SMP PREEMPT Sat Feb 1 00:04:58 UTC 2014 (chakra  )
    Python 2.7.6 (default, Feb  9 2014, 21:54:41) 
    [GCC 4.8.1 20130725 (prerelease)]
    wxPython 2.8.12.1 (gtk2-unicode)
    
    Program received signal SIGSEGV, Segmentation fault.
    0x00007ffff7adac45 in do_warn () from /usr/lib/libpython2.7.so.1.0
    

    then

    (gdb) bt
    #0  0x00007ffff7adac45 in do_warn () from /usr/lib/libpython2.7.so.1.0
    #1  0x00007ffff7adb39d in PyErr_WarnEx () from /usr/lib/libpython2.7.so.1.0
    #2  0x00007fffe45b7f15 in ?? () from /usr/lib/python2.7/site-packages/gi/_gobject/_gobject.so
    #3  0x00007ffff0e4ec29 in g_logv () from /usr/lib/libglib-2.0.so.0
    #4  0x00007ffff0e4ee32 in g_log () from /usr/lib/libglib-2.0.so.0
    #5  0x00007ffff1114daf in g_object_class_install_property () from /usr/lib/libgobject-2.0.so.0
    #6  0x00007ffff19b64ab in ?? () from /usr/lib/libgtk-x11-2.0.so.0
    #7  0x00007ffff18ae725 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
    #8  0x00007ffff112d00e in g_type_class_ref () from /usr/lib/libgobject-2.0.so.0
    #9  0x00007ffff1115d72 in g_object_newv () from /usr/lib/libgobject-2.0.so.0
    #10 0x00007ffff11164bc in g_object_new () from /usr/lib/libgobject-2.0.so.0
    #11 0x00007ffff2af44cd in wxSystemSettingsNative::GetFont(wxSystemFont) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
    #12 0x00007ffff2b8cd82 in wxStockGDI::GetFont(wxStockGDI::Item) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
    #13 0x00007ffff2b8cca9 in wxStockGDI::GetFont(wxStockGDI::Item) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
    #14 0x00007fffe661fd92 in ?? () from /usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/_gdi_.so
    #15 0x00007ffff7af9e94 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
    #16 0x00007ffff7afa800 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
    #17 0x00007ffff7af8d0e in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
    #18 0x00007ffff7af8db2 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
    #19 0x00007ffff7afa800 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
    #20 0x00007ffff7a8a5d0 in function_call () from /usr/lib/libpython2.7.so.1.0
    #21 0x00007ffff7a66913 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
    #22 0x00007ffff7a750fd in instancemethod_call () from /usr/lib/libpython2.7.so.1.0
    #23 0x00007ffff7a66913 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
    #24 0x00007ffff7af46a7 in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.7.so.1.0
    #25 0x00007ffff321cece in wxPyApp::_BootstrapApp() () from /usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/_core_.so
    #26 0x00007ffff325466d in ?? () from /usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/_core_.so
    #27 0x00007ffff7af9e94 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
    #28 0x00007ffff7afa800 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
    #29 0x00007ffff7af8d0e in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
    #30 0x00007ffff7afa800 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
    #31 0x00007ffff7a8a6ad in function_call () from /usr/lib/libpython2.7.so.1.0
    #32 0x00007ffff7a66913 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
    #33 0x00007ffff7a750fd in instancemethod_call () from /usr/lib/libpython2.7.so.1.0
    #34 0x00007ffff7a66913 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
    #35 0x00007ffff7aba7e7 in slot_tp_init () from /usr/lib/libpython2.7.so.1.0
    #36 0x00007ffff7ab955f in type_call () from /usr/lib/libpython2.7.so.1.0
    #37 0x00007ffff7a66913 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
    #38 0x00007ffff7af7203 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
    #39 0x00007ffff7afa800 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
    #40 0x00007ffff7af8d0e in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
    #41 0x00007ffff7afa800 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
    #42 0x00007ffff7af8d0e in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
    #43 0x00007ffff7afa800 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
    #44 0x00007ffff7afa902 in PyEval_EvalCode () from /usr/lib/libpython2.7.so.1.0
    #45 0x00007ffff7b133ff in run_mod () from /usr/lib/libpython2.7.so.1.0
    #46 0x00007ffff7b144de in PyRun_FileExFlags () from /usr/lib/libpython2.7.so.1.0
    #47 0x00007ffff7b15649 in PyRun_SimpleFileExFlags () from /usr/lib/libpython2.7.so.1.0
    #48 0x00007ffff7b25dfd in Py_Main () from /usr/lib/libpython2.7.so.1.0
    #49 0x00007ffff7475bc5 in __libc_start_main () from /lib/libc.so.6
    #50 0x0000000000400711 in _start ()
    

    Unfortunately:

    (gdb) py-bt
    Undefined command: "py-bt".  Try "help".
    

    I hope this helps.

     
  • Florian Hoech

    Florian Hoech - 2014-03-01

    Hi, thanks, that helps. It would probably be ok to report this for your distro, but I'd ask you to hold off a little while until I get some feedback from the wxPython mailinglist (it's probably something in wxPython that is broken).

    What you can try in the meantime is edit /usr/lib/python2.7/site-packages/dispcalGUI/colord.py and change the following lines

    try:
        from gi.repository import Colord
        from gi.repository import Gio
    except ImportError:
        Colord = None
        Gio = None
    else:
        cancellable = Gio.Cancellable.new();
    

    to

    Colord = None
    Gio = None
    

    I'm not sure this will do anything, and it will break profile installation with colord, but it seems worth a try.

     
  • Florian Hoech

    Florian Hoech - 2014-03-15

    Hi, any update? Did you find time to try this?

     
  • sbaragnaus

    sbaragnaus - 2014-03-16

    Yes, after editing that file dispcalGUI starts.

     
    Last edit: sbaragnaus 2014-03-16
  • Florian Hoech

    Florian Hoech - 2014-03-24

    Thanks for the feedback. I have changed the code so that the problematic library is no longer needed. No functionality will be lost if using a recent version of Argyll CMS and colord. The latest development snapshot contains the change, please try it if you'd like.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks