PCBNew — DRC crash : segfault when checking footprints against schematic

Bug #1831370 reported by Antoine Pintout
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Committed
Critical
Seth Hillbrand

Bug Description

PCBNew : using the DRC tool with "Test footprints against schematic" leads to a segmentation fault.

I have not been able to come with steps to reproduce. Instead I stripped down the project where this crash happened to the bare minimum. I included it in this report.

The crash also happens with others projects.

The schematic is empty but the crash also happens with the original complete schematic.
If any one of the footprints on the board is deleted, the crash does not happen anymore.

With this project :
— Open it with KiCad
– Open the board file with PCBNew
– Open Design Rules Checker
— Check "Test footprints against schematic"
– Click "Run DRC"
– KiCad crash with :

Thread 1 "kicad" received signal SIGSEGV, Segmentation fault.
DRC::<lambda(const MODULE*, const MODULE*)>::operator() (__closure=<optimised out>, b=0x55555a0a3f40, a=0x555562575340)
    at ./kicad/pcbnew/drc.cpp:1481

Version info :

Application: Pcbnew
Version: 6.0.0-unknown-6c93ccc~86~ubuntu18.04.1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.58.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3
Platform: Linux 4.15.0-51-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.22
    Boost: 1.65.1
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.58.0
    Compiler: GCC 7.4.0 with C++ ABI 1011

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

Tags: drc pcbnew
description: updated
tags: added: drc pcbnew
Revision history for this message
Antoine Pintout (procsynth) wrote :

It's weird. I'm not able the reproduce the crash anymore on the sample project I joined here, some of my other projects are working again, but my current one and some other still crash PCBNew.

I joined to this message a complete project.

Seth Hillbrand (sethh)
Changed in kicad:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Seth Hillbrand (sethh)
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision 63fb408478f8cccb73ddf15ecab3893c9bfc5afc
https://git.launchpad.net/kicad/patch/?id=63fb408478f8cccb73ddf15ecab3893c9bfc5afc

Changed in kicad:
status: In Progress → Fix Committed
Changed in kicad:
milestone: none → 6.0.0-rc1
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.