Segfault when closing sub application - Log remains active
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Unknown
|
Bug Description
I had libedit, eeschema, pcbnew and modedit all open. I saved the schematic and closed libedit then eeschema by clicking the "X" button on the window bar.
Here is the backtrace. pcbnew and modedit remained open as was the main KiCad window.
#0 0x00007ffff73d943f in wxLog::
(gdb) bt
#0 0x00007ffff73d943f in wxLog::
#1 0x00007ffff73411b9 in wxAppConsoleBas
#2 0x00007ffff78f41e4 in wxAppBase:
#3 0x00007ffff782f9e5 in wxApp::DoIdle() () at /usr/lib/
#4 0x00007ffff782fad3 in () at /usr/lib/
#5 0x00007ffff5908dd8 in g_main_
#6 0x00007ffff59091c8 in () at /usr/lib/
#7 0x00007ffff59094c2 in g_main_loop_run () at /usr/lib/
#8 0x00007ffff5f19b15 in gtk_main () at /usr/lib/
#9 0x00007ffff784c1d5 in wxGUIEventLoop:
#10 0x00007ffff737d48d in wxEventLoopBase
#11 0x00007ffff7346616 in wxAppConsoleBas
#12 0x0000555555611ea0 in APP_KICAD::OnRun() (this=0x5555558
#13 0x00007ffff73c7cf9 in wxEntry(int&, wchar_t**) () at /usr/lib/
#14 0x00005555556108dd in main(int, char**) (argc=1, argv=0x7fffffff
Application: KiCad
Version: (5.1.0-
Libraries:
wxWidgets 3.0.4
libcurl/7.64.0 OpenSSL/1.1.1c zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 librtmp/2.3
Platform: Linux 4.19.0-5-amd64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,
Boost: 1.67.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.64.0
Compiler: GCC 8.3.0 with C++ ABI 1013
Build settings:
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=ON
tags: | added: eeschema |
Changed in kicad: | |
importance: | Undecided → Critical |
milestone: | none → 6.0.0-rc1 |
Changed in kicad: | |
importance: | Critical → Unknown |
status: | Expired → Fix Released |
Possibly related. Again on closing. This time closing pcbnew. Logging seems to be held open past the pointer expiration. Possibly only when running in debug.
Thread 1 "kicad" received signal SIGSEGV, Segmentation fault. SetActiveTarget (wxLog* ) () from /usr/lib/ x86_64- linux-gnu/ libwx_baseu- 3.0.so. 0 SetActiveTarget (wxLog* ) () at /usr/lib/ x86_64- linux-gnu/ libwx_baseu- 3.0.so. 0 x86_64- linux-gnu/ libwx_baseu- 3.0.so. 0 python3/ dist-packages/ wx/_core. cpython- 37m-x86_ 64-linux- gnu.so x86_64- linux-gnu/ libpython3. 7m.so.1. 0 x86_64- linux-gnu/ libpython3. 7m.so.1. 0 x86_64- linux-gnu/ libpython3. 7m.so.1. 0 honScripting( ) () at ../../pcbnew/ swig/python_ scripting. cpp:317 :OnKifaceEnd( ) (this=0x7fffd67 852a0 <PCB::kiface>) at ../../pcbnew/ pcbnew. cpp:375 54f40 <Kiway>) at ../../common/ kiway.cpp: 522 :OnPgmExit( ) (this=0x5555558 55360 <program>) at ../../kicad/ kicad.cpp: 170 ee530) at ../../kicad/ kicad.cpp: 247 x86_64- linux-gnu/ libwx_baseu- 3.0.so. 0 e108) at ../../kicad/ kicad.cpp: 292
0x00007ffff73d53be in wxLog::
(gdb) bt
#0 0x00007ffff73d53be in wxLog::
#1 0x00007ffff73c6878 in wxEntryCleanup() () at /usr/lib/
#2 0x00007fffd46aa322 in () at /usr/lib/
#3 0x00007fffebd23ad4 in PyCFunction_Call () at /usr/lib/
#4 0x00007fffebba3e2d in () at /usr/lib/
#5 0x00007fffebc25577 in Py_FinalizeEx () at /usr/lib/
#6 0x00007fffd58a09d9 in pcbnewFinishPyt
#7 0x00007fffd525fcd4 in PCB::IFACE:
#8 0x000055555566d306 in KIWAY::OnKiwayEnd() (this=0x5555558
#9 0x0000555555610862 in PGM_KICAD:
#10 0x0000555555611e6e in APP_KICAD::OnExit() (this=0x5555558
#11 0x00007ffff73c7d09 in wxEntry(int&, wchar_t**) () at /usr/lib/
#12 0x00005555556108dd in main(int, char**) (argc=1, argv=0x7fffffff