pcbnew crashes when adding module

Bug #860745 reported by Fabio Varesano
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Undecided
Wayne Stambaugh

Bug Description

Pcbnew's KiCAD bzr 3150, on Archlinux fully updated crashes when using the "Add module" feature. Following backtrace. Let me know if you need any other detail.

(gdb) start
Temporary breakpoint 1 at 0x4a9410
Starting program: /usr/bin/pcbnew
[Thread debugging using libthread_db enabled]

Temporary breakpoint 1, 0x00000000004a9410 in main ()
(gdb) continue
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff64487ba in wxArrayString::Copy(wxArrayString const&) () from /usr/lib/libwx_baseu-2.8.so.0
(gdb) backtrace
#0 0x00007ffff64487ba in wxArrayString::Copy(wxArrayString const&) () from /usr/lib/libwx_baseu-2.8.so.0
#1 0x00007ffff644883a in wxArrayString::operator=(wxArrayString const&) () from /usr/lib/libwx_baseu-2.8.so.0
#2 0x00000000005a9e09 in PCB_BASE_FRAME::Select_1_Module_From_List(EDA_DRAW_FRAME*, wxString const&, wxString const&, wxString const&) ()
#3 0x00000000005aa95e in PCB_BASE_FRAME::Load_Module_From_Library(wxString const&, wxDC*) ()
#4 0x00000000005d1978 in PCB_EDIT_FRAME::OnLeftClick(wxDC*, wxPoint const&) ()
#5 0x00000000006b7996 in EDA_DRAW_PANEL::OnMouseEvent(wxMouseEvent&) ()
#6 0x00007ffff64793c5 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) ()
   from /usr/lib/libwx_baseu-2.8.so.0
#7 0x00007ffff647952c in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/libwx_baseu-2.8.so.0
#8 0x00007ffff6479864 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#9 0x00007ffff6479800 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#10 0x00007ffff6c13195 in wxScrollHelperEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#11 0x00007ffff6b18ee8 in ?? () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#12 0x00007ffff37b70d8 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#13 0x00007ffff318e1fe in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#14 0x00007ffff319f08b in ?? () from /usr/lib/libgobject-2.0.so.0
#15 0x00007ffff31a856b in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#16 0x00007ffff31a8952 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#17 0x00007ffff38d0081 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#18 0x00007ffff37b52d3 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#19 0x00007ffff37b5633 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#20 0x00007ffff342a84c in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#21 0x00007ffff2cb529d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#22 0x00007ffff2cb5a78 in ?? () from /usr/lib/libglib-2.0.so.0
#23 0x00007ffff2cb60ba in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#24 0x00007ffff37b4687 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#25 0x00007ffff6b05e88 in wxEventLoop::Run() () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#26 0x00007ffff6b7d4ab in wxAppBase::MainLoop() () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#27 0x00007ffff642a4ab in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
#28 0x00000000004a9422 in main ()
(gdb) quit

Changed in kicad:
status: New → Confirmed
assignee: nobody → Wayne Stambaugh (stambaughw)
Changed in kicad:
status: Confirmed → Fix Committed
Revision history for this message
Fabio Varesano (fabio-varesano) wrote :

Thank you Wayne. I confirm the fixing of the issue. I'm impressed! Thanks!!!

Revision history for this message
Wayne Stambaugh (stambaughw) wrote : Re: [Bug 860745] Re: pcbnew crashes when adding module

On 9/27/2011 6:25 PM, Fabio Varesano wrote:
> Thank you Wayne. I confirm the fixing of the issue. I'm impressed!
> Thanks!!!
>
Your welcome but don't be too impressed. I caused the bug. It was the
classic assignment vs. copy issue when using the C++ = operator. It is
the way wxArrayString is designed. I really should have known better.

Wayne

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

On 9/27/2011 6:25 PM, Fabio Varesano wrote:
> Thank you Wayne. I confirm the fixing of the issue. I'm impressed!
> Thanks!!!
>
By the way Fabio, thank you for the great bug report. As soon as I saw
the stack trace, I knew were I made my mistake. I wish all bug reports
were this good. It would make my job a lot easier.

Thanks,

Wayne

Jon Neal (reportingsjr)
Changed in kicad:
status: Fix Committed → Fix Released
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.