← Back to team overview

kicad-developers team mailing list archive

Re: Segfault when running DRC

 

Does not crash when run under Valgrind, instead gives this error:

==32723== Invalid read of size 8
==32723==    at 0x5D00EC0: wxCursor::GetCursor() const (cursor.cpp:287)
==32723==    by 0x5D20A8D: wxWindow::GTKUpdateCursor(bool, bool)
(window.cpp:3752)
==32723==    by 0x5D002A0: UpdateCursors(wxWindow*, bool)
(cursor.cpp:331)
==32723==    by 0x5D00F42: SetGlobalCursor(wxCursor const&)
(cursor.cpp:350)
==32723==    by 0x5D0109C: wxEndBusyCursor() (cursor.cpp:376)
==32723==    by 0x1D3FCCDB:
DIALOG_DRC_CONTROL::OnStartdrcClick(wxCommandEvent&)
(dialog_drc.cpp:172)
==32723==    by 0x65F92DE:
wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&,
wxEvent&) const (appbase.cpp:623)
==32723==    by 0x6750FF1:
wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&,
wxEvtHandler*, wxEvent&) (event.cpp:1384)
==32723==    by 0x67513A5:
wxEvtHandler::SearchDynamicEventTable(wxEvent&) (event.cpp:1743)
==32723==    by 0x6751445: wxEvtHandler::TryHereOnly(wxEvent&)
(event.cpp:1577)
==32723==    by 0x6751502: wxEvtHandler::ProcessEventLocally(wxEvent&)
(event.h:3671)
==32723==    by 0x6751564: wxEvtHandler::ProcessEvent(wxEvent&)
(event.cpp:1487)
==32723==  Address 0x7feffdee8 is not stack'd, malloc'd or (recently)
free'd


On Fri, 2014-08-15 at 21:19 -0400, Andrew Zonenberg wrote:
> Happens every time I run DRC on this board. I don't want to change the
> design for fear of not being able to reproduce it.
> 
> This is with the Codelite packages of wx3.0.1 and BZR 5073 kicad on
> Debian 7.
> 
> Program received signal SIGSEGV, Segmentation fault.
> IA__gdk_cursor_ref (cursor=cursor@entry=0xf2e66c318c48348)
> at /tmp/buildd/gtk+2.0-2.24.10/gdk/gdkcursor.c:57
> 57	/tmp/buildd/gtk+2.0-2.24.10/gdk/gdkcursor.c: No such file or
> directory.
> (gdb) bt
> #0  IA__gdk_cursor_ref (cursor=cursor@entry=0xf2e66c318c48348)
> at /tmp/buildd/gtk+2.0-2.24.10/gdk/gdkcursor.c:57
> #1  0x00007ffff47cc691 in IA__gdk_window_set_cursor (window=0xbe3120,
> cursor=0xf2e66c318c48348) at /tmp/buildd/gtk
> +2.0-2.24.10/gdk/gdkwindow.c:8199
> #2  0x00007ffff6b8897f in wxWindow::GTKUpdateCursor (this=0x8273f0,
> isBusyOrGlobalCursor=<optimized out>, isRealize=false)
> at ../src/gtk/window.cpp:3761
> #3  0x00007ffff6b682a1 in UpdateCursors (win=win@entry=0x8273f0,
> isBusyOrGlobalCursor=<optimized out>) at ../src/gtk/cursor.cpp:331
> #4  0x00007ffff6b68f43 in SetGlobalCursor (cursor=...)
> at ../src/gtk/cursor.cpp:350
> #5  0x00007ffff6b6909d in wxEndBusyCursor ()
> at ../src/gtk/cursor.cpp:376
> #6  0x00007fffe26f4cdc in DIALOG_DRC_CONTROL::OnStartdrcClick
> (this=0x3645700, event=...)
> at /nfs/home/azonenberg/Documents/local/programming/3rdparty/kicad/pcbnew/dialogs/dialog_drc.cpp:172
> #7  0x00007ffff627c2df in wxAppConsoleBase::CallEventHandler
> (this=0x7b29e0, handler=0x3645700, functor=..., event=...)
> at ../src/common/appbase.cpp:623
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp

-- 
Andrew Zonenberg
PhD student, security group
Computer Science Department
Rensselaer Polytechnic Institute
http://colossus.cs.rpi.edu/~azonenberg/

Attachment: signature.asc
Description: This is a digitally signed message part


Follow ups

References