kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #33964
Re: Kicad-from-scratch: Segfault after unarchiving active project.
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.
Regards,
Clemens
On 2018-02-16 12:51, Clemens Koller wrote:
> Some more KiCad-from-scratch testing on Arch Linux:
>
> Setup:
> KiCad Version: (2018-02-16 revision 3c9a5b096)-master, release build
> There is an previously archived project in some working directory .../test9/test9.zip next to the project files test9.pro
> (as well as an empty schematics and layout, ...)
>
> How to reproduce:
> - KiCad: Open Project -> ...test9/test9.pro.
> - Filemanager: delete all files of the project except the previously archived test9/test9.zip
> - KiCad: When KiCad comes to front, the project tree gets reduced to test9.pro (some refresh on focus? ok, cool).
> - KiCad: When hitting Refresh, the project tree shows an additional "Empty project" branch below test9.pro (different refresh?, well, ok).
> - KiCad: File -> Unarchive Project -> select test9.zip -> Open -> Target Directory -> test9 (keep current) -> Open -> Crash :-(
>
>
> [13603.796230] kicad[14646]: segfault at 10 ip 00005647994c4655 sp 00007ffc39fea080 error 4 in kicad[56479942b000+16e000]
>
> Is there a bug report filed already?
> More debug information needed? (debug build just up)
>
> Regards,
>
> Clemens
>
>
>
>
>
> _______________________________________________
> 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