← Back to team overview

kicad-developers team mailing list archive

Re: Kicad-from-scratch: Segfault after unarchiving active project.

 

Hi Clemens,

If you build your own Kicad, you can try the patch attached to the below bug report.

Cheers,
Jeff.

> On 16 Feb 2018, at 13:00, Jeff Young <jeff@xxxxxxxxx> wrote:
> 
> Thanks, Clemens.  I can reproduce this easily.
> 
> Logged as: https://bugs.launchpad.net/kicad/+bug/1749955 <https://bugs.launchpad.net/kicad/+bug/1749955>
> 
> Cheers,
> Jeff.
> 
> 
>> On 16 Feb 2018, at 12:14, Clemens Koller <cko@xxxxxxxxx <mailto:cko@xxxxxxxxx>> wrote:
>> 
>> Attaching debug information of GDB session:
>> 
>> -----8<-----
>> [...]
>> [New Thread 0x7fffe6711700 (LWP 24139)]
>> [Thread 0x7fffe6711700 (LWP 24139) exited]
>> SetProjectFullName: old:'' new:'/home/admin/share/project/kicad/project/test9/test9.pro'
>> 13:10:42: Debug: FileWatcherReset: watched paths:
>> 13:10:42: Debug:  /home/admin/share/project/kicad/project/test9/
>> 
>> [Thread 0x7fffe6f12700 (LWP 24135) exited]
>> [New Thread 0x7fffe6f12700 (LWP 24149)]
>> [New Thread 0x7fffe6711700 (LWP 24150)]
>> [New Thread 0x7fffd5c56700 (LWP 24151)]
>> [Thread 0x7fffe6f12700 (LWP 24149) exited]
>> [Thread 0x7fffe6711700 (LWP 24150) exited]
>> [New Thread 0x7fffe6711700 (LWP 24152)]
>> [Thread 0x7fffd5c56700 (LWP 24151) exited]
>> 
>> Thread 1 "kicad" received signal SIGSEGV, Segmentation fault.
>> 0x00005555555fc6da in TREEPROJECT_ITEM::GetType (this=0x0) at /home/admin/share/project/kicad/kicad-dev/kicad.git/kicad/treeproject_item.h:56
>> 56	    TreeFileType GetType() const                { return m_Type; }
>> (gdb) bt
>> #0  0x00005555555fc6da in TREEPROJECT_ITEM::GetType() const (this=0x0) at /home/admin/share/project/kicad/kicad-dev/kicad.git/kicad/treeproject_item.h:56
>> #1  0x00005555555ffbfb in TREEPROJECTFILES::OnCompareItems(wxTreeItemId const&, wxTreeItemId const&) (this=0x555555abd1d0, item1=..., item2=...)
>>    at /home/admin/share/project/kicad/kicad-dev/kicad.git/kicad/treeprojectfiles.cpp:95
>> #2  0x00007ffff6f1830d in  () at /usr/lib/libwx_gtk2u_core-3.0.so.0
>> #3  0x00007ffff35a07a6 in msort_with_tmp.part () at /usr/lib/libc.so.6
>> #4  0x00007ffff35a09f6 in qsort_r () at /usr/lib/libc.so.6
>> #5  0x00007ffff6f17386 in wxGenericTreeCtrl::SortChildren(wxTreeItemId const&) () at /usr/lib/libwx_gtk2u_core-3.0.so.0
>> #6  0x00005555555faa28 in TREE_PROJECT_FRAME::OnFileSystemEvent(wxFileSystemWatcherEvent&) (this=0x555555a21c60, event=...)
>>    at /home/admin/share/project/kicad/kicad-dev/kicad.git/kicad/tree_project_frame.cpp:995
>> #7  0x00007ffff6575d4e in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0
>> #8  0x00007ffff657616b in wxEvtHandler::SearchDynamicEventTable(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0
>> #9  0x00007ffff6576200 in wxEvtHandler::TryHereOnly(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0
>> #10 0x00007ffff65762b4 in wxEvtHandler::ProcessEventLocally(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0
>> #11 0x00007ffff6576316 in wxEvtHandler::ProcessEvent(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0
>> #12 0x00007ffff656dd6e in  () at /usr/lib/libwx_baseu-3.0.so.0
>> #13 0x00007ffff6573802 in  () at /usr/lib/libwx_baseu-3.0.so.0
>> #14 0x00007ffff657435c in  () at /usr/lib/libwx_baseu-3.0.so.0
>> #15 0x00007ffff6569665 in  () at /usr/lib/libwx_baseu-3.0.so.0
>> #16 0x00007ffff6cbe03d in  () at /usr/lib/libwx_gtk2u_core-3.0.so.0
>> #17 0x00007ffff1fa7ca6 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
>> #18 0x00007ffff1fa8081 in  () at /usr/lib/libglib-2.0.so.0
>> #19 0x00007ffff1fa83b2 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
>> #20 0x00007ffff3058df3 in gtk_main () at /usr/lib/libgtk-x11-2.0.so.0
>> #21 0x00007ffff6cbc866 in wxGUIEventLoop::DoRun() () at /usr/lib/libwx_gtk2u_core-3.0.so.0
>> #22 0x00007ffff642b784 in wxEventLoopBase::Run() () at /usr/lib/libwx_baseu-3.0.so.0
>> #23 0x00007ffff63f2247 in wxAppConsoleBase::MainLoop() () at /usr/lib/libwx_baseu-3.0.so.0
>> #24 0x00005555555e003f in APP_KICAD::OnRun() (this=0x555555988100) at /home/admin/share/project/kicad/kicad-dev/kicad.git/kicad/kicad.cpp:233
>> #25 0x00007ffff647f578 in wxEntry(int&, wchar_t**) () at /usr/lib/libwx_baseu-3.0.so.0
>> #26 0x00005555555deab5 in main(int, char**) (argc=1, argv=0x7fffffffe458) at /home/admin/share/project/kicad/kicad-dev/kicad.git/kicad/kicad.cpp:265
>> -----8<-----
>> 
>> I hope it's useful.
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp


Follow ups

References