It looks like the 'new' statement at 1031 failed, but is unchecked.
Note also that m_pWizard is 0x0 as passed to the AddCompilerPage routine.
(gdb) f 0
#0 0x63c427a0 in Wizards::operator[] (this=0x3f1ea60, uiIndex=3131961357)
at c:/Usr/Proj/cbBeta/trunk/src/plugins/scriptedwizard/wiz.h:51
51 WX_DECLARE_OBJARRAY(WizardInfo, Wizards);
(gdb) l
46 wxBitmap templatePNG;
47 wxBitmap wizardPNG;
48 wxString xrc;
49 };
50
51 WX_DECLARE_OBJARRAY(WizardInfo, Wizards);
52 WX_DEFINE_ARRAY(wxWizardPageSimple*, WizPages);
53
54 class Wiz : public cbWizardPlugin
55 {
(gdb) f 1
#1 0x63c2197f in Wiz::AddCompilerPage (this=0x3f1ea30, compilerID=@0x3ffd628,
validCompilerIDs=@0x40d5610, allowCompilerChange=true,
allowConfigChange=true)
at c:/Usr/Proj/cbBeta/trunk/src/plugins/scriptedwizard/wiz.cpp:1031
1031 m_pWizCompilerPanel = new WizCompilerPanel(compilerID, validCompiler
IDs, m_pWizard, m_Wizards[m_LaunchIndex].wizardPNG, allowCompilerChange, allowCo
nfigChange);
(gdb) l
1026
1027 void Wiz::AddCompilerPage(const wxString& compilerID, const wxString& va
lidCompilerIDs, bool allowCompilerChange, bool allowConfigChange)
1028 {
1029 if (m_pWizCompilerPanel)
1030 return; // already added
1031 m_pWizCompilerPanel = new WizCompilerPanel(compilerID, validCompiler
IDs, m_pWizard, m_Wizards[m_LaunchIndex].wizardPNG, allowCompilerChange, allowCo
nfigChange);
1032 if (!m_pWizCompilerPanel->SkipPage())
1033 m_Pages.Add(m_pWizCompilerPanel);
1034 else
1035 {
(gdb) p m_pWizCompilerPanel
[b]$1 = (class WizCompilerPanel *) 0x0[/b]
(gdb) p compilerID
$2 = (const wxString &) @0x3ffd628: {<wxStringBase> = {
static npos = 4294967295, m_pchData = 0x1061324c}, <No data fields>}
(gdb) p validCompilerIDs
$3 = (const wxString &) @0x40d5610: {<wxStringBase> = {
static npos = 4294967295, m_pchData = 0x41a91a4}, <No data fields>}
(gdb) p m_pWizard
$4 = (struct wxWizard *) 0x0
(gdb) p m_Wizards[m_LaunchIndex].wizardPNG
Program received signal SIGSEGV, Segmentation fault.
0x63c427a0 in Wizards::operator[] (this=0x3f1ea60, uiIndex=3131961357)
at c:/Usr/Proj/cbBeta/trunk/src/plugins/scriptedwizard/wiz.h:51
51 WX_DECLARE_OBJARRAY(WizardInfo, Wizards);
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on"
Evaluation of the expression containing the function (Wizards::operator[](unsign
ed int) const) will be abandoned.
(gdb) p allowCompilerChange
No symbol "allowCompilerChange" in current context.
(gdb)
Program received signal SIGSEGV, Segmentation fault.
0x63c427a0 in Wizards::operator[] (this=0x3f1ea60, uiIndex=3131961357)
at c:/Usr/Proj/cbBeta/trunk/src/plugins/scriptedwizard/wiz.h:51
51 WX_DECLARE_OBJARRAY(WizardInfo, Wizards);
Current language: auto; currently c++
(gdb) bt
#0 0x63c427a0 in Wizards::operator[] (this=0x3f1ea60, uiIndex=3131961357)
at c:/Usr/Proj/cbBeta/trunk/src/plugins/scriptedwizard/wiz.h:51
#1 0x63c2197f in Wiz::AddCompilerPage (this=0x3f1ea30, compilerID=@0x3ffd628,
validCompilerIDs=@0x40d5610, allowCompilerChange=true,
allowConfigChange=true)
at c:/Usr/Proj/cbBeta/trunk/src/plugins/scriptedwizard/wiz.cpp:1031
#2 0x63c3d6d7 in SqPlus::ReturnSpecialization<void>::Call<Wiz, wxString const&,
wxString const&, bool, bool> (callee=@0x3f1ea30, func=
{__pfn = &Wiz::AddCompilerPage(wxString const&, wxString const&, bool, boo
l), __delta = 0}, v=0x1125620, index=2)
at include/scripting/sqplus/sqplus.h:1024
#3 0x63c3f6e5 in SqPlus::Call<Wiz, void, wxString const&, wxString const&, bool
, bool> (callee=@0x3f1ea30, func=
{__pfn = &Wiz::AddCompilerPage(wxString const&, wxString const&, bool, boo
l), __delta = 0}, v=0x1125620, index=2)
at include/scripting/sqplus/sqplus.h:1163
#4 0x63c3ee0e in SqPlus::DirectCallInstanceMemberFunction<Wiz, void (Wiz::*)(wx
String const&, wxString const&, bool, bool)>::Dispatch (v=0x1125620)
at include/scripting/sqplus/sqplus.h:1244
#5 0x6197c9ba in SQVM::CallNative (this=0x1125620, nclosure=0x412a180,
nargs=5, stackbase=187, tailcall=false, retval=@0x1125678,
suspend=@0x22e84f)
at c:/Usr/Proj/cbBeta/trunk/src/sdk/scripting/squirrel/sqvm.cpp:1108
---Type <return> to continue, or q <return> to quit---
#6 0x61979407 in SQVM::Execute (this=0x1125620, closure=@0x1125c98,
target=185, nargs=1, stackbase=185, outres=@0x22e9d8, raiseerror=1,
et=ET_CALL)
at c:/Usr/Proj/cbBeta/trunk/src/sdk/scripting/squirrel/sqvm.cpp:748
#7 0x6197e457 in SQVM::Call (this=0x1125620, closure=@0x1125c98, nparams=1,
stackbase=185, outres=@0x22e9d8, raiseerror=1)
at c:/Usr/Proj/cbBeta/trunk/src/sdk/scripting/squirrel/sqvm.cpp:1373
#8 0x6196889e in sq_call (v=0x1125620, params=1, retval=1, raiseerror=1)
at c:/Usr/Proj/cbBeta/trunk/src/sdk/scripting/squirrel/sqapi.cpp:906
#9 0x6195a140 in SquirrelVM::RunScript (o=@0x22eb88, _this=0x0)
at c:/Usr/Proj/cbBeta/trunk/src/sdk/scripting/sqplus/SquirrelVM.cpp:127
#10 0x6190d8bd in ScriptingManager::LoadBuffer (this=0x10c3d30,
buffer=@0x22ec68, debugName=@0x22ec58)
at c:/Usr/Proj/cbBeta/trunk/src/sdk/scriptingmanager.cpp:175
#11 0x0044eb1f in ScriptConsole::OnbtnExecuteClick (this=0x4151078,
event=@0x22eeb8) at c:/Usr/Proj/cbBeta/trunk/src/src/scriptconsole.cpp:131
#12 0x100c70d5 in wxEvtHandler::ProcessEventIfMatches ()
from c:\usr\bin\wxmsw28u_gcc_custom.dll
#13 0x100c8321 in wxEvtHandler::SearchDynamicEventTable ()
from c:\usr\bin\wxmsw28u_gcc_custom.dll
#14 0x100c83d8 in wxEvtHandler::ProcessEvent ()
from c:\usr\bin\wxmsw28u_gcc_custom.dll
#15 0x1025551b in wxWindowBase::TryParent ()
---Type <return> to continue, or q <return> to quit---
from c:\usr\bin\wxmsw28u_gcc_custom.dll
#16 0x100c83ae in wxEvtHandler::ProcessEvent ()
from c:\usr\bin\wxmsw28u_gcc_custom.dll
#17 0x1025551b in wxWindowBase::TryParent ()
from c:\usr\bin\wxmsw28u_gcc_custom.dll
#18 0x100c83ae in wxEvtHandler::ProcessEvent ()
from c:\usr\bin\wxmsw28u_gcc_custom.dll
#19 0x10158f4b in wxControl::ProcessCommand ()
from c:\usr\bin\wxmsw28u_gcc_custom.dll
#20 0x1014d9b0 in wxButton::SendClickEvent ()
from c:\usr\bin\wxmsw28u_gcc_custom.dll
#21 0x1014dace in wxButton::MSWCommand ()
from c:\usr\bin\wxmsw28u_gcc_custom.dll
#22 0x101368c7 in wxWindow::HandleCommand ()
from c:\usr\bin\wxmsw28u_gcc_custom.dll
#23 0x1013a0bf in wxWindow::MSWWindowProc ()
from c:\usr\bin\wxmsw28u_gcc_custom.dll
#24 0x10131fd0 in wxWndProc () from c:\usr\bin\wxmsw28u_gcc_custom.dll
#25 0x77d48709 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll
#26 0x00030464 in ?? ()
#27 0x00000111 in ?? ()
#28 0x0000026a in ?? ()
#29 0x00070498 in ?? ()
---Type <return> to continue, or q <return> to quit---
#30 0x10131f20 in wxWindowCreationHook::~wxWindowCreationHook ()
from c:\usr\bin\wxmsw28u_gcc_custom.dll
#31 0x77d487eb in USER32!GetDC () from C:\WINDOWS\system32\user32.dll
#32 0x10131f20 in wxWindowCreationHook::~wxWindowCreationHook ()
from c:\usr\bin\wxmsw28u_gcc_custom.dll
#33 0x77d4b743 in USER32!GetParent () from C:\WINDOWS\system32\user32.dll
#34 0x00000000 in ?? () from
#35 0x10131f20 in wxWindowCreationHook::~wxWindowCreationHook ()
from c:\usr\bin\wxmsw28u_gcc_custom.dll
#36 0x77d4b7ab in USER32!SendMessageW () from C:\WINDOWS\system32\user32.dll
#37 0x00cfb8e8 in ?? ()
#38 0x00cea4d0 in ?? ()
#39 0x0000026a in ?? ()
#40 0x00070498 in ?? ()
#41 0x00000000 in ?? () from
#42 0x0027a928 in ?? ()
#43 0x0022f3f0 in ?? ()
#44 0x773f6ff6 in ImageList_Duplicate ()
from C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df
_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
#45 0x00030464 in ?? ()
#46 0x00000111 in ?? ()
#47 0x0000026a in ?? ()
---Type <return> to continue, or q <return> to quit---
#48 0x00070498 in ?? ()
#49 0x00000001 in ?? ()
#50 0x0027a928 in ?? ()
#51 0x0022f40c in ?? ()
#52 0x773f70d8 in ImageList_Duplicate ()
from C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df
_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
#53 0x0027a928 in ?? ()
#54 0x00000000 in ?? () from
#55 0x0010002f in ?? ()
#56 0x0027a928 in ?? ()
#57 0x00000001 in ?? ()
#58 0x0022f49c in ?? ()
#59 0x773f93dd in ImageList_Duplicate ()
from C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df
_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
#60 0x0027a928 in ?? ()
#61 0x00000001 in ?? ()
#62 0x0022f504 in ?? ()
#63 0x773f8b56 in ImageList_Duplicate ()
from C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df
_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
#64 0x00000000 in ?? () from
---Type <return> to continue, or q <return> to quit---
#65 0x00070498 in ?? ()
#66 0x0022f558 in ?? ()
#67 0x0022f450 in ?? ()
#68 0x1058f380 in _Unwind_SjLj_Unregister ()
from c:\usr\bin\wxmsw28u_gcc_custom.dll
Previous frame inner to this frame (corrupt stack?)
(gdb)