Pcbnew->Edit->Global Deletions causes segmentation fault

Bug #1607430 reported by Maarten
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Critical
Unassigned

Bug Description

1. Start pcbnew (from console)
2. Open design
3. Edit -> Global Deletions -> Enable Tracks -> Ok -> Yes
4. Segmentation fault

Running KiCad on Fedora 24

Version:
kicad-4.0.2-2.fc24.x86_64

Tags: pcbnew

Related branches

Revision history for this message
Maarten (madebr) wrote :

stacktrace created from core dump

Revision history for this message
Nick Østergaard (nickoe) wrote :

Please answer the following questions:
1. Does this also happen in the nightlies?
2. Does this happen for any board or just a specific board 100% of the time?
3. Do you have an example board that exhibits this segfault you can share?

tags: added: pcbnew
Revision history for this message
Maarten (madebr) wrote :

1. The segfault also happens in the current nightly on Fedora 24 (using my pcb layout)
2. It happens all the time on my current lay-out
3. I attached my (partially routed) lay-out showcasing the segfault. The first version of it was created using the kicad version bundled with fedora 22 (2015-mar-04 BZR unknown)-product

Revision history for this message
Nick Østergaard (nickoe) wrote :

I can reproduce the issue on 4.0.2 on archlinux, but not on 6996.

Revision history for this message
Nick Østergaard (nickoe) wrote :

Hmm, I have release build of 6996 where it also crashes, but I shall note that I don't hvae the python scripting stuff enabled there either.

Revision history for this message
Nick Østergaard (nickoe) wrote :

This also appears on 6996 with scripting and release build type. I have been trying to set some breakpoints before the code section, but I don't know why it does not seem to work. It seems to not break even if I set it at the previous frame function and proceedes to the segfault.

Changed in kicad:
status: New → Confirmed
importance: Undecided → Critical
Revision history for this message
Michael Steinberg (decimad) wrote :

The BOARD class would access the first Track of its tracklist no matter if it has any Tracks at all.

Revision history for this message
Michael Steinberg (decimad) wrote :

Fixing the patch after Nick's response.

Revision history for this message
Nick Østergaard (nickoe) wrote :

I can confirm that Michael's v2 patch works now. I do not get the segfualt on global track delete anymore ;), tested on 6996.

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

Thank you Michael, your fix has been committed in revision 7003.

Changed in kicad:
status: Confirmed → Fix Committed
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.