[udm-dev] UDM crash: access exception

Kevin Smyth ksmyth at isis.vanderbilt.edu
Wed Sep 30 17:44:27 CDT 2009


Hi All,

I'm getting a std::bad_alloc exception when initializing UDM. This 
happens only in the debug mode, with both SVN UDM and the last release.

In my paradigm's InitMeta this is called:
::Uml::InitAttributeProps(Bus::meta_Medium, "Medium", "String", false, 
false, 1, 1, false, "public", vector<string>());
but defval contains garbage after the call (i.e. in 
UdmDll_3_2_1D.dll!Uml::InitAttributeProps)

Have people had success using the debug version of UDM, especially with 
UDM GME interpreters? Any ideas?

Thanks,
Kevin

Stack trace follows:
     UdmDll_3_2_1D.dll!Uml::InitAttributeProps(const Uml::Attribute & 
obj={...}, const char * name=0x040f6e94, const char * type=0x040f5aa8, 
bool np=false, bool reg_val=false, int min=1, int max=1, const bool 
ordered=false, const 
std::basic_string<char,std::char_traits<char>,std::allocator<char> > & 
visibility="public", const 
std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
 >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
 > > > & defval=[4187593113]({_Bx={...} _Mysize=??? _Myres=??? 
},{_Bx={...} _Mysize=??? _Myres=??? },{_Bx={...} _Mysize=??? _Myres=??? 
},{_Bx={...} _Mysize=??? _Myres=??? },{_Bx={...} _Mysize=??? _Myres=??? 
},{_Bx={...} _Mysize=??? _Myres=??? },{_Bx={...} _Mysize=??? _Myres=??? 
},{_Bx={...} _Mysize=??? _Myres=??? },{_Bx={...} _Mysize=??? _Myres=??? 
},{_Bx={...} _Mysize=??? _Myres=??? },{_Bx={...} _Mysize=??? _Myr,...))  
Line 4742    C++
 >    BML2TVecd.dll!FCSL::InitMeta()  Line 3766 + 0x71 bytes    C++
     BML2TVecd.dll!FCSL::Initialize()  Line 5318    C++
     UdmDll_3_2_1D.dll!Udm::DataNetwork::DataNetwork(const 
Udm::UdmDiagram & metainfo={...}, Udm::UdmProject * project=0x00000000)  
Line 237 + 0xa bytes    C++
     UdmDll_3_2_1D.dll!UdmGme::GmeDataNetwork::GmeDataNetwork(const 
Udm::UdmDiagram & dia={...}, Udm::UdmProject * project=0x00000000)  Line 
2661 + 0x55 bytes    C++
     BML2TVecd.dll!RawComponent::InvokeEx(IMgaProject * 
project=0x0325a9c8, IMgaFCO * currentobj=0x01d66a88, IMgaFCOs * 
selectedobjs=0x04bb3218, long param=16)  Line 147 + 0x15 bytes    C++
     BML2TVecd.dll!CComponentObj::XComponent::InvokeEx(IMgaProject * 
gme=0x0325a9c8, IMgaFCO * currentobj=0x01d66a88, IMgaFCOs * 
selectedobjs=0x04bb3218, long param=16)  Line 886 + 0x1c bytes    C++
     MgaUtil.dll!CMgaLauncher::RunComponent(wchar_t * progid=0x02d8cc14, 
IMgaProject * project=0x0325a9c8, IMgaFCO * focusobj=0x01d66a88, 
IMgaFCOs * selectedobjs=0x04bb3218, long param=16)  Line 775 + 0x2b 
bytes    C++
     GME.exe!CGMEApp::RunComponent(const 
ATL::CStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > > & 
compname="MGA.Interpreter.FCSL_BML2TVec")  Line 2535 + 0x46 bytes    C++
     GME.exe!CGMEApp::OnRunInterpreter(unsigned int nID=79642776)  Line 
2503    C++
     mfc90.dll!_AfxDispatchCmdMsg(CCmdTarget * pTarget=0x00000000, 
unsigned int nID=32890, int nCode=1242608, void (void)* pfn=0x00000000, 
void * pExtra=0x00000000, unsigned int nSig=59, AFX_CMDHANDLERINFO * 
pHandlerInfo=0x00000000)  Line 96    C++
     mfc90.dll!CCmdTarget::OnCmdMsg(unsigned int nID=32890, int nCode=0, 
void * pExtra=0x00000000, AFX_CMDHANDLERINFO * pHandlerInfo=0x00000000)  
Line 381 + 0x16 bytes    C++
     mfc90.dll!CFrameWnd::OnCmdMsg(unsigned int nID=32890, int nCode=0, 
void * pExtra=0x00000000, AFX_CMDHANDLERINFO * pHandlerInfo=0x00000000)  
Line 951 + 0x17 bytes    C++
     mfc90.dll!CWnd::OnCommand(unsigned int wParam=0, long lParam=0)  
Line 2363 + 0xd bytes    C++
     mfc90.dll!CFrameWnd::OnCommand(unsigned int wParam=32890, long 
lParam=0)  Line 365 + 0xd bytes    C++
     mfc90.dll!CWnd::OnWndMsg(unsigned int message=273, unsigned int 
wParam=32890, long lParam=0, long * pResult=0x0012f768)  Line 1769 + 
0x10 bytes    C++
     mfc90.dll!CWnd::WindowProc(unsigned int message=273, unsigned int 
wParam=32890, long lParam=0)  Line 1755 + 0x17 bytes    C++
     mfc90.dll!AfxCallWndProc(CWnd * pWnd=0x00000000, HWND__ * 
hWnd=0x00030eaa, unsigned int nMsg=273, unsigned int wParam=32890, long 
lParam=0)  Line 240 + 0x11 bytes    C++
     mfc90.dll!CMDIFrameWnd::OnCommand(unsigned int wParam=32890, long 
lParam=0)  Line 48 + 0x1a bytes    C++
     mfc90.dll!CMDIFrameWndEx::OnCommand(unsigned int wParam=32890, long 
lParam=0)  Line 384 + 0xd bytes    C++
     mfc90.dll!CWnd::OnWndMsg(unsigned int message=273, unsigned int 
wParam=32890, long lParam=0, long * pResult=0x0012f8dc)  Line 1769 + 
0x10 bytes    C++
     mfc90.dll!CWnd::WindowProc(unsigned int message=273, unsigned int 
wParam=32890, long lParam=0)  Line 1755 + 0x17 bytes    C++
     mfc90.dll!AfxCallWndProc(CWnd * pWnd=0x00000000, HWND__ * 
hWnd=0x00060cc8, unsigned int nMsg=273, unsigned int wParam=32890, long 
lParam=0)  Line 240 + 0x11 bytes    C++
     mfc90.dll!AfxWndProc(HWND__ * hWnd=0x00060cc8, unsigned int 
nMsg=273, unsigned int wParam=32890, long lParam=0)  Line 402 + 0x10 
bytes    C++
     mfc90.dll!AfxWndProcBase(HWND__ * hWnd=0x00060cc8, unsigned int 
nMsg=273, unsigned int wParam=32890, long lParam=0)  Line 441 + 0x16 
bytes    C++
     user32.dll!_InternalCallWinProc at 20()  + 0x28 bytes   
     user32.dll!_UserCallWinProcCheckWow at 32()  + 0xb7 bytes   
     user32.dll!_SendMessageWorker at 20()  + 0xc8 bytes   
     user32.dll!_SendMessageA at 16()  + 0x49 bytes   
     mfc90.dll!CMFCToolBar::OnLButtonUp(unsigned int nFlags=0, CPoint 
point={...})  Line 2402    C++
     mfc90.dll!CWnd::OnWndMsg(unsigned int message=514, unsigned int 
wParam=0, long lParam=720952, long * pResult=0x0012fbb4)  Line 2062    C++
     mfc90.dll!CWnd::WindowProc(unsigned int message=514, unsigned int 
wParam=0, long lParam=720952)  Line 1755 + 0x17 bytes    C++
     mfc90.dll!CBasePane::WindowProc(unsigned int message=514, unsigned 
int wParam=0, long lParam=720952)  Line 1011 + 0xc bytes    C++
     mfc90.dll!AfxCallWndProc(CWnd * pWnd=0x00000000, HWND__ * 
hWnd=0x00030d02, unsigned int nMsg=514, unsigned int wParam=0, long 
lParam=720952)  Line 240 + 0x11 bytes    C++
     mfc90.dll!AfxWndProc(HWND__ * hWnd=0x00030d02, unsigned int 
nMsg=514, unsigned int wParam=0, long lParam=720952)  Line 402 + 0x10 
bytes    C++
     mfc90.dll!AfxWndProcBase(HWND__ * hWnd=0x00030d02, unsigned int 
nMsg=514, unsigned int wParam=0, long lParam=720952)  Line 441 + 0x16 
bytes    C++
     user32.dll!_InternalCallWinProc at 20()  + 0x28 bytes   
     user32.dll!_UserCallWinProcCheckWow at 32()  + 0xb7 bytes   
     user32.dll!_DispatchMessageWorker at 8()  + 0xdc bytes   
     user32.dll!_DispatchMessageW at 4()  + 0xf bytes   
     user32.dll!_IsDialogMessageW at 8()  + 0xdb bytes   
     user32.dll!_IsDialogMessageA at 8()  + 0x4a bytes   
     mfc90.dll!CWnd::IsDialogMessageA(tagMSG * lpMsg=0x00156090)  Line 
197 + 0xc bytes    C++
     mfc90.dll!CWnd::PreTranslateInput(tagMSG * lpMsg=0x00156090)  Line 
4331 + 0x6 bytes    C++
     mfc90.dll!CBasePane::PreTranslateMessage(tagMSG * pMsg=0x00156090)  
Line 1050 + 0xa bytes    C++
     mfc90.dll!CMFCToolBar::PreTranslateMessage(tagMSG * 
pMsg=0x00156090)  Line 4195    C++
     mfc90.dll!CWnd::WalkPreTranslateTree(HWND__ * hWndStop=0x00060cc8, 
tagMSG * pMsg=0x00156090)  Line 2946 + 0xb bytes    C++
     mfc90.dll!AfxInternalPreTranslateMessage(tagMSG * pMsg=0x00156090)  
Line 233 + 0xe bytes    C++
     mfc90.dll!CWinThread::PreTranslateMessage(tagMSG * 
pMsg=0x00156090)  Line 777 + 0x8 bytes    C++
     GME.exe!CGMEApp::PreTranslateMessage(tagMSG * pMsg=0x00156090)  
Line 436 + 0x8 bytes    C++
     mfc90.dll!AfxPreTranslateMessage(tagMSG * pMsg=0x00156090)  Line 
255    C++
     mfc90.dll!AfxInternalPumpMessage()  Line 178 + 0xf bytes    C++
     mfc90.dll!CWinThread::Run()  Line 629 + 0x7 bytes    C++
     GME.exe!CGMEApp::Run()  Line 533 + 0x7 bytes    C++
     mfc90.dll!AfxWinMain(HINSTANCE__ * hInstance=0x00400000, 
HINSTANCE__ * hPrevInstance=0x00000000, char * lpCmdLine=0x00152360, int 
nCmdShow=1)  Line 47 + 0x7 bytes    C++
     GME.exe!__tmainCRTStartup()  Line 578 + 0x1d bytes    C
     kernel32.dll!_BaseProcessStart at 4()  + 0x23 bytes   


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3286 bytes
Desc: S/MIME Cryptographic Signature
Url : http://list.isis.vanderbilt.edu/pipermail/udm-dev/attachments/20090930/44fed4d5/attachment.bin 


More information about the udm-dev mailing list