Comment 0 for bug 1831370

Revision history for this message
Antoine Pintout (procsynth) wrote :

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 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