← Back to team overview

kicad-developers team mailing list archive

bug on move-drag_pads.cpp, unable to reproduce

 

On current testing

It get's into segfault because is trying to get/set pos0 on a NULL pad,

I know it's quite useless without a sequence to reproduce it, but may be
the backtrace could help us to get
an idea of where does it come from, and then I can file a serious bug... :-?


how to reproduce:

0) Open pcbnew on a blank board
1) Open library editor
2) Set grid to 0.100
3) Create component WE-HCC-1210
4) Create SMD pad
5) Move around, put edges
6) click where? ? ????

The backtrace is this:

Program received signal SIGSEGV, Segmentation fault.
0x08410b71 in PCB_BASE_FRAME::PlacePad (this=0x91d0600, aPad=0x8e4ad68,
    DC=0xbfffe6e0)
    at /home/ajo/work/kicad.scripting/pcbnew/move-drag_pads.cpp:384
384    s_CurrentSelectedPad->SetY0( dY + s_CurrentSelectedPad->GetPos0().y
);
(gdb) print s_CurrentSelectedPad
$1 = (D_PAD *) 0x0
(gdb) backtrace
#0  0x08410b71 in PCB_BASE_FRAME::PlacePad (this=0x91d0600, aPad=0x8e4ad68,
    DC=0xbfffe6e0)
    at /home/ajo/work/kicad.scripting/pcbnew/move-drag_pads.cpp:384
#1  0x08407da0 in FOOTPRINT_EDIT_FRAME::OnLeftClick (this=0x91d0600,
    DC=0xbfffe6e0, MousePos=...)
    at /home/ajo/work/kicad.scripting/pcbnew/modedit_onclick.cpp:47
#2  0x0874dc58 in EDA_DRAW_PANEL::OnMouseEvent (this=0x91d1648, event=...)
    at /home/ajo/work/kicad.scripting/common/drawpanel.cpp:980
#3  0x00682038 in wxAppConsole::HandleEvent(wxEvtHandler*, void
(wxEvtHandler::*)(wxEvent&), wxEvent&) const ()
   from /usr/lib/i386-linux-gnu/libwx_baseu-2.8.so.0
#4  0x0071178a in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase
const&, wxEvtHandler*, wxEvent&) ()
   from /usr/lib/i386-linux-gnu/libwx_baseu-2.8.so.0
#5  0x0071190b in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) ()
   from /usr/lib/i386-linux-gnu/libwx_baseu-2.8.so.0
#6  0x00711cc1 in wxEvtHandler::ProcessEvent(wxEvent&) ()
   from /usr/lib/i386-linux-gnu/libwx_baseu-2.8.so.0
#7  0x00711c51 in wxEvtHandler::ProcessEvent(wxEvent&) ()
   from /usr/lib/i386-linux-gnu/libwx_baseu-2.8.so.0
#8  0x005402c9 in wxScrollHelperEvtHandler::ProcessEvent(wxEvent&) ()




-- 

Miguel Angel Ajo Pelayo
http://www.nbee.es
+34 636 52 25 69
skype: ajoajoajo