tyler-dodge/BluetoothSMS-PC — Issue #1: Seg Fault when adding device
Author: tyler-dodge
Created: 2012-01-18 15:20:39+00:00
State: open

Here is valgrind's output when adding a device

==7895== Invalid read of size 8
==7895== at 0x40CE70: BlueFrame::onNewDeviceButtonPressed(wxCommandEvent&) (BlueFrame.cpp:34)
==7895== by 0x35014E6B14: wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) (in /usr/lib64/libwx_baseu-2.8.so.0.8.0)
==7895== by 0x35014E6EDE: wxEvtHandler::SearchDynamicEventTable(wxEvent&) (in /usr/lib64/libwx_baseu-2.8.so.0.8.0)
==7895== by 0x35014E6F91: wxEvtHandler::ProcessEvent(wxEvent&) (in /usr/lib64/libwx_baseu-2.8.so.0.8.0)
==7895== by 0x5DF5D10: ??? (in /usr/lib64/libwx_gtk2u_core-2.8.so.0.8.0)
==7895== by 0x350280EA23: g_closure_invoke (in /lib64/libgobject-2.0.so.0.3000.1)
==7895== by 0x3502820ED1: ??? (in /lib64/libgobject-2.0.so.0.3000.1)
==7895== by 0x350282A140: g_signal_emit_valist (in /lib64/libgobject-2.0.so.0.3000.1)
==7895== by 0x350282A2E1: g_signal_emit (in /lib64/libgobject-2.0.so.0.3000.1)
==7895== by 0x32E3091307: ??? (in /usr/lib64/libgtk-x11-2.0.so.0.2400.8)
==7895== by 0x350280EA23: g_closure_invoke (in /lib64/libgobject-2.0.so.0.3000.1)
==7895== by 0x3502820526: ??? (in /lib64/libgobject-2.0.so.0.3000.1)
==7895== Address 0xed033f8 is not stack'd, malloc'd or (recently) free'd
==7895==
==7895== Invalid read of size 1
==7895== at 0x5E9D366: wxWindowBase::CreateBase(wxWindowBase*, int, wxPoint const&, wxSize const&, long, wxValidator const&, wxString const&) (in /usr/lib64/libwx_gtk2u_core-2.8.so.0.8.0)
==7895== by 0x5DC849C: wxWindow::Create(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&) (in /usr/lib64/libwx_gtk2u_core-2.8.so.0.8.0)
==7895== by 0x5EBE445: wxPanel::Create(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&) (in /usr/lib64/libwx_gtk2u_core-2.8.so.0.8.0)
==7895== by 0x40E860: wxPanel::wxPanel(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&) (panelg.h:57)
==7895== by 0x40DEDA: BlueDevice::BlueDevice(wxWindow*) (BlueDevice.cpp:5)
==7895== by 0x40CE81: BlueFrame::onNewDeviceButtonPressed(wxCommandEvent&) (BlueFrame.cpp:34)
==7895== by 0x35014E6B14: wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) (in /usr/lib64/libwx_baseu-2.8.so.0.8.0)
==7895== by 0x35014E6EDE: wxEvtHandler::SearchDynamicEventTable(wxEvent&) (in /usr/lib64/libwx_baseu-2.8.so.0.8.0)
==7895== by 0x35014E6F91: wxEvtHandler::ProcessEvent(wxEvent&) (in /usr/lib64/libwx_baseu-2.8.so.0.8.0)
==7895== by 0x5DF5D10: ??? (in /usr/lib64/libwx_gtk2u_core-2.8.so.0.8.0)
==7895== by 0x350280EA23: g_closure_invoke (in /lib64/libgobject-2.0.so.0.3000.1)
==7895== by 0x3502820ED1: ??? (in /lib64/libgobject-2.0.so.0.3000.1)
==7895== Address 0x1c8 is not stack'd, malloc'd or (recently) free'd
==7895==
==7895==
==7895== Process terminating with default action of signal 11 (SIGSEGV)
==7895== Access not within mapped region at address 0x1C8
==7895== at 0x5E9D366: wxWindowBase::CreateBase(wxWindowBase*, int, wxPoint const&, wxSize const&, long, wxValidator const&, wxString const&) (in /usr/lib64/libwx_gtk2u_core-2.8.so.0.8.0)
==7895== by 0x5DC849C: wxWindow::Create(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&) (in /usr/lib64/libwx_gtk2u_core-2.8.so.0.8.0)
==7895== by 0x5EBE445: wxPanel::Create(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&) (in /usr/lib64/libwx_gtk2u_core-2.8.so.0.8.0)
==7895== by 0x40E860: wxPanel::wxPanel(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&) (panelg.h:57)
==7895== by 0x40DEDA: BlueDevice::BlueDevice(wxWindow*) (BlueDevice.cpp:5)
==7895== by 0x40CE81: BlueFrame::onNewDeviceButtonPressed(wxCommandEvent&) (BlueFrame.cpp:34)
==7895== by 0x35014E6B14: wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) (in /usr/lib64/libwx_baseu-2.8.so.0.8.0)
==7895== by 0x35014E6EDE: wxEvtHandler::SearchDynamicEventTable(wxEvent&) (in /usr/lib64/libwx_baseu-2.8.so.0.8.0)
==7895== by 0x35014E6F91: wxEvtHandler::ProcessEvent(wxEvent&) (in /usr/lib64/libwx_baseu-2.8.so.0.8.0)
==7895== by 0x5DF5D10: ??? (in /usr/lib64/libwx_gtk2u_core-2.8.so.0.8.0)
==7895== by 0x350280EA23: g_closure_invoke (in /lib64/libgobject-2.0.so.0.3000.1)
==7895== by 0x3502820ED1: ??? (in /lib64/libgobject-2.0.so.0.3000.1)