BZR4873 - pcbnew crashes when saving board
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Critical
|
Maciej Suminski |
Bug Description
This issue was introduced after 4865, which still works fine.
Reproduce:
* Change layer settings in gerber creation dialogue [plot] (e.g. deselect a layer for export)
* Save board
Result:
* fatal crash
* board file gets deleted from disk
---
Program received signal SIGSEGV, Segmentation fault.
0x00007fffdc603cae in BOARD::
(gdb) backtrace
#0 0x00007fffdc603cae in BOARD::
#1 0x00007fffdc615094 in BOARD::
#2 0x00007fffdc3b3102 in PCB_EDIT_
#3 0x00007fffdc3b4c8e in PCB_EDIT_
#4 0x00007ffff687a566 in wxEvtHandler:
from /usr/lib64/
#5 0x00007ffff687aa03 in wxEventHashTabl
from /usr/lib64/
#6 0x00007ffff687aaf7 in wxEvtHandler:
#7 0x00007fffdc717e82 in EDA_BASE_
#8 0x00007ffff687aa80 in wxEvtHandler:
#9 0x00007ffff703fc49 in wxWindowBase:
#10 0x00007ffff79b4623 in wxAuiToolBar:
#11 0x00007ffff687a566 in wxEvtHandler:
from /usr/lib64/
#12 0x00007ffff687aa03 in wxEventHashTabl
from /usr/lib64/
#13 0x00007ffff687aaf7 in wxEvtHandler:
#14 0x00007ffff6f47ee4 in ?? () from /usr/lib64/
#15 0x00007ffff50609d5 in ?? () from /usr/lib64/
#16 0x00007ffff4a34318 in g_closure_invoke () from /usr/lib64/
#17 0x00007ffff4a45cad in ?? () from /usr/lib64/
#18 0x00007ffff4a4d689 in g_signal_
#19 0x00007ffff4a4dc72 in g_signal_emit () from /usr/lib64/
#20 0x00007ffff5170864 in ?? () from /usr/lib64/
#21 0x00007ffff505f184 in gtk_propagate_event () from /usr/lib64/
#22 0x00007ffff505f53b in gtk_main_do_event () from /usr/lib64/
#23 0x00007ffff4ccfa8c in ?? () from /usr/lib64/
#24 0x00007ffff4217316 in g_main_
#25 0x00007ffff4217668 in ?? () from /usr/lib64/
#26 0x00007ffff4217a6a in g_main_loop_run () from /usr/lib64/
#27 0x00007ffff505e627 in gtk_main () from /usr/lib64/
#28 0x00007ffff6f3528a in wxEventLoop::Run() () from /usr/lib64/
#29 0x00007ffff6fc2aac in wxAppBase:
#30 0x000000000042679b in _start ()
---
From time-to-time I also get error messages like this (also fatal)
*** Error in `pcbnew': corrupted double-linked list: 0x0000000004ade7a0 ***
I'm not 100% sure yet, but the error seems to occur if there are more netclasses than just the "Default" one.
Changed in kicad: | |
importance: | Undecided → Critical |
Changed in kicad: | |
status: | New → Triaged |
assignee: | nobody → Maciej Sumiński (orsonmmz) |
status: | Triaged → In Progress |
Changed in kicad: | |
status: | In Progress → Fix Committed |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
Now I'm pretty certain that's it.
Adding a 2nd netclass to an old board that didn't show any issues before makes it go berserk too. The same thing happens after adding another NC to a new (empty) board.