Kicad crashes after changing pad net name and undo in pcbnew

Bug #1323525 reported by miceuz
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Medium
Unassigned

Bug Description

I use BZR 4888 version of kicad.

To reproduce:
- open kicad
- open pcb in pcbnew
- hit 'E' on a pad
- change netname to GND
- press enter
- press Ctrl-Z for undo
- move the mouse pointer

Both pcbnew and kicad crash with segmentation fault.

Revision history for this message
miceuz (mic-j) wrote :

I use 64bit Linux. Kicad is built locally

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Hi miceuz,

I am not able to reproduce the bug. Can you confirm that it happens every time and/or on every board you load?

Regards,
Orson

Revision history for this message
miceuz (mic-j) wrote :

Yes, I can confirm it happens everytime on at least two board layouts. Will try on a different system now.

Revision history for this message
miceuz (mic-j) wrote :
Changed in kicad:
status: New → Confirmed
assignee: nobody → Maciej Sumiński (orsonmmz)
Revision history for this message
Maciej Suminski (orsonmmz) wrote :

It crashes in function Magnetize() (pcbnew/magnetic_track_functions.cpp:123) trying to access currItem, that is probably invalid as it have been changed by SwapData() function during undo operation (pcbnew/board_undo_redo.cpp:537).
The brute way is to call SetCurItem( NULL ) in undo/redo functions or check if the pointer that we are going to replace is stored as current item and if so - fix the current item pointer. I am going to leave the decision to the main developers.

Changed in kicad:
assignee: Maciej Sumiński (orsonmmz) → nobody
Blair Bonnett (bcb)
Changed in kicad:
importance: Undecided → Medium
Revision history for this message
Nick Østergaard (nickoe) wrote :

I cannot confirm this bug in 5392 in either the legacy render or GAL. Can OP verify?

Revision history for this message
miceuz (mic-j) wrote :

I can't reproduce it on 5402, so the ticked can be closed.

Changed in kicad:
status: Confirmed → Fix Committed
Jon Neal (reportingsjr)
Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.