Release-mode DC++ bzr build crashes on context menu display
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DC++ |
Fix Released
|
High
|
Unassigned |
Bug Description
Steps to reproduce:
1) bzr branch lp:dcplusplus to get new DC++ bzr. (Or use existing local branch.) Build this branch in release mode. Compiler probably matters here; I'm using TDM's mingw 4.4.1-2. Am curious how VS behaves.
2) Arrange DC++ to open such that it doesn't immediately create any tabs (no hubs, no system log, no notepad, et cetera). Close DC++.
3) Start DC++, now configured not to open any tabs.
4) Open one's own filelist (I did it via the file menu, but presumably any mechanism works). It's possible opening other tabs triggers this too; I didn't try.
5) Right-click on that filelist tab. Expected result: some minimal (there are no usercommands, etc) context menu. Actual result:
Program received signal SIGSEGV, Segmentation fault.
0x006e1e02 in dwt::Menu::getCount (this=0xff4cbd80) at dwt\src\
821 int count = ::GetMenuItemCo
Current language: auto; currently c++
(gdb) bt
#0 0x006e1e02 in dwt::Menu::getCount (this=0xff4cbd80) at dwt\src\
#1 0x006e21f6 in dwt::Menu:
#2 0x00805b1a in MDIChildFrame<
pt=@0x28f438) at win32/MDIChildF
#3 0x006db2d3 in dwt::TabView:
)
at dwt\src\
#4 0x008d308a in std::tr1:
at c:/mingw/
#5 0x008d1fe3 in std::tr1:
__args#
at c:/mingw/
#6 0x006f323d in dwt::Widget:
at c:/mingw/
#7 0x006d262a in dwt::Control:
at dwt\src\
#8 0x006db6ea in dwt::TabView:
at dwt\src\
#9 0x006f473d in dwt::WindowProc
lParam=
#10 0x75a26238 in USER32!
#11 0x004c04f6 in LogPage (this=0x6f46ac, parent=0x4c04f6) at win32\LogPage.
#12 0x75a268ea in USER32!
#13 0x006f46ac in ~Dispatcher (this=0x0) at dwt\src\
#14 0x75a28428 in USER32!IsWindow () from C:\Windows\
#15 0x00000000 in ?? ()
I can't reproduce the crash with my own release build using gcc (4.3.3-tdm-1 mingw32).
I can reproduce the crash with a BCDC++ compiled with TDM's mingw 4.4.1-2 (built by Fleetcommand), but only when using themes and extended menus enabled.
XP 32bit