SIGSEGV, Segmentation fault.

Bug #1792037 reported by Francisco Leite on 2018-09-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Critical
Jeff Young

Bug Description

Application: kicad
Version: 6.0.0-rc1-unknown, release build
Libraries:
    wxWidgets 3.0.2
    libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
Platform: Linux 4.4.0-75-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=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=OFF

build: https://jenkins.simonrichter.eu/job/linux-kicad-eeschema_gal-head/8/

This is c5d3bd7c83ea7c4d1c4d4bec1d30fd9cfa2a0591 from Jeff's repo with branch tom-eeschema-gal-aug27

sigsegv happens when I try to add a trace in a board.

debug:

(gdb) run
Starting program: /home/leite/install/bin/kicad
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
14:43:09: Debug: Checking template path '/home/leite/install/share/kicad/template' exists
14:43:09: Debug: Checking template path '/usr/share/kicad/template' exists
[New Thread 0x7fffe7fcc700 (LWP 13948)]
[New Thread 0x7fffe77cb700 (LWP 13949)]
[New Thread 0x7fffe6fca700 (LWP 13950)]
14:43:17: Debug: Adding duplicate image handler for 'PNG file'
14:43:17: Debug: Adding duplicate image handler for 'JPEG file'
14:43:17: Debug: Adding duplicate image handler for 'TIFF file'
14:43:17: Debug: Adding duplicate image handler for 'GIF file'
14:43:17: Debug: Adding duplicate image handler for 'PNM file'
14:43:17: Debug: Adding duplicate image handler for 'PCX file'
14:43:17: Debug: Adding duplicate image handler for 'IFF file'
14:43:17: Debug: Adding duplicate image handler for 'Windows icon file'
14:43:17: Debug: Adding duplicate image handler for 'Windows cursor file'
14:43:17: Debug: Adding duplicate image handler for 'Windows animated cursor file'
14:43:17: Debug: Adding duplicate image handler for 'TGA file'
14:43:17: Debug: Adding duplicate image handler for 'XPM file'
[New Thread 0x7fffd27ed700 (LWP 13956)]
[New Thread 0x7fffd1fec700 (LWP 13957)]
[New Thread 0x7fffd17eb700 (LWP 13958)]
[New Thread 0x7fffd0fea700 (LWP 13959)]
[New Thread 0x7fffd07e9700 (LWP 13960)]
[New Thread 0x7fffcffe8700 (LWP 13961)]
[New Thread 0x7fffcf7e7700 (LWP 13962)]
14:43:18: Debug: Loading project '/home/leite/Templates/mosquito/mosquito.pro' settings.

Thread 1 "kicad" received signal SIGSEGV, Segmentation fault.
0x00007fffe587b904 in ROUTER_PREVIEW_ITEM::ViewBBox() const () from /home/leite/install/bin/_pcbnew.kiface
(gdb) backtrace
#0 0x00007fffe587b904 in ROUTER_PREVIEW_ITEM::ViewBBox() const () from /home/leite/install/bin/_pcbnew.kiface
#1 0x00007fffe5982fdd in KIGFX::VIEW_GROUP::ViewBBox() const () from /home/leite/install/bin/_pcbnew.kiface
#2 0x00007fffe5973012 in KIGFX::VIEW_RTREE::Insert(KIGFX::VIEW_ITEM*) () from /home/leite/install/bin/_pcbnew.kiface
#3 0x00007fffe597231a in KIGFX::VIEW::updateLayers(KIGFX::VIEW_ITEM*) () from /home/leite/install/bin/_pcbnew.kiface
#4 0x00007fffe5971875 in KIGFX::VIEW::invalidateItem(KIGFX::VIEW_ITEM*, int) () from /home/leite/install/bin/_pcbnew.kiface
#5 0x00007fffe59726e0 in KIGFX::VIEW::UpdateItems() () from /home/leite/install/bin/_pcbnew.kiface
#6 0x00007fffe5a3f046 in EDA_DRAW_PANEL_GAL::onPaint(wxPaintEvent&) () from /home/leite/install/bin/_pcbnew.kiface
#7 0x00007ffff65851fe in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#8 0x00007ffff670b6e7 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#9 0x00007ffff670bace in wxEvtHandler::SearchDynamicEventTable(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#10 0x00007ffff670bb5f in wxEvtHandler::TryHereOnly(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#11 0x00007ffff670bc13 in wxEvtHandler::ProcessEventLocally(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#12 0x00007ffff670bc75 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#13 0x00007ffff670c6fa in wxEvtHandler::ProcessPendingEvents() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#14 0x00007ffff6587317 in wxAppConsoleBase::ProcessPendingEvents() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#15 0x00007ffff6e49ac2 in wxApp::DoIdle() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#16 0x00007ffff6e49bb3 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#17 0x00007ffff3d6404a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007ffff3d643f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007ffff3d64712 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007ffff4ad1697 in IA__gtk_main () at /build/gtk+2.0-jJZIsQ/gtk+2.0-2.24.30/gtk/gtkmain.c:1282
#21 0x00007ffff6e69ed5 in wxGUIEventLoop::DoRun() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#22 0x00007ffff65c7353 in wxEventLoopBase::Run() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#23 0x00007ffff658c666 in wxAppConsoleBase::MainLoop() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#24 0x0000000000481f01 in APP_KICAD::OnRun() ()
#25 0x00007ffff6618f70 in wxEntry(int&, wchar_t**) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#26 0x00000000004808c9 in main ()
(gdb)

Tags: gal Edit Tag help
description: updated
Changed in kicad:
importance: Undecided → Critical
tags: added: gal
Jeff Young (jeyjey) wrote :

Fixed in Tom's branch of my repo.

Changed in kicad:
status: New → In Progress
assignee: nobody → Jeff Young (jeyjey)
milestone: none → 5.1.0
Francisco Leite (xxleite) wrote :

I can confirm that it is working now, thanks Jeff!

Changed in kicad:
status: In Progress → Fix Committed
Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers