Crash clearing all DRC markers

Bug #1773863 reported by Reece Pollack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Critical
Maciej Suminski

Bug Description

Ran several DRC checks including checking all tracks. Clicked on "Clear all markers" and KiCad crashed. No corruption of files, but the .kicad_pcb-bak file hadn't been written at all during the 20-30 minute session.

I am unable to reproduce the problem. The only additional information I can offer is this entry from the system logs:

kernel: kicad[26240]: segfault at 200000006b ip 000000200000006b sp 00007ffff56b5b28 error 14

The segfault address is the same as the instruction pointer, which looks to be a call via a corrupt pointer to me.

Built from sources derived from the following Git commit:
    2cb65f9 Make the Simulator error strings translatable

Application: kicad
Version: (5.0.0-rc2-39-g4cac861), debug build
Libraries:
    wxWidgets 3.0.2
    libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.11 libidn/1.32 librtmp/2.3
Platform: Linux 4.13.0-41-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.58.0
    OpenCASCADE Community Edition: 6.8.0
    Curl: 7.47.0
    Compiler: GCC 5.4.0 with C++ ABI 1009

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_ACTION_MENU=OFF
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Revision history for this message
Jeff Young (jeyjey) wrote :

I tried a bit on OSX to reproduce this, with no luck.

Application: kicad
Version: (5.0.0-rc2-49-gd03e92a3a-dirty), debug build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.54.0 LibreSSL/2.0.20 zlib/1.2.11 nghttp2/1.24.0
Platform: Mac OS X (Darwin 17.5.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
    wxWidgets: 3.0.4 (UTF-8,STL containers,compatible with 2.8)
    Boost: 1.66.0
    Curl: 7.57.0
    Compiler: Clang 9.1.0 with C++ ABI 1002

Build settings:
    USE_WX_GRAPHICS_CONTEXT=ON
    USE_WX_OVERLAY=ON
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=OFF
    KICAD_SCRIPTING_WXPYTHON=OFF
    KICAD_SCRIPTING_ACTION_MENU=OFF
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=OFF
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Changed in kicad:
importance: Undecided → Critical
Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Reece, I have found out that pcbnew indeed crashes when one selects a DRC marker on the board (selecting a marker in the dialog's list will not lead to a crash) and execute 'Delete All Markers'.

Do you think this is what you might have done? If not, is there a chance of getting the board that originally triggered the crash?

Changed in kicad:
assignee: nobody → Maciej Suminski (orsonmmz)
milestone: none → 5.0.0-rc3
Revision history for this message
Maciej Suminski (orsonmmz) wrote :

I have just pushed a fix for the problem described in my previous message. I have not marked the bug as fixed, as it is not clear whether this was the actual issue.

Changed in kicad:
status: New → Incomplete
Revision history for this message
Reece Pollack (reece-pollack) wrote :

It's quite probable that the scenario you describe is exactly what happened. I can't say absolutely, because I'm actually trying to lay out a board rather than deliberately testing KiCad, and I'm not entirely sure what I did. My bug reports generally represent my best recollection. Maybe I should set up a camera over my shoulder so I can watch the instant replay when something bad happens...

That said, I've confirmed that Pcbnew no longer crashes when removing all markers while a marker is selected. I think we can call this one fixed.

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

Great, I am marking the bug as fixed. I understand that most people simply work using KiCad and I do not expect to always receive all details, no worries. Thank you for reporting back.

Changed in kicad:
status: Incomplete → 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.