View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0003327 | Spring engine | General | public | 2012-11-09 19:21 | 2012-11-16 06:46 | ||||
Reporter | PicassoCT | ||||||||
Assigned To | jK | ||||||||
Priority | normal | Severity | block | Reproducibility | have not tried | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 91.0.1+git | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0003327: Newest Windows Build crashes upon start in rts/Sim/Misc/DefinitionTag.cpp:22 | ||||||||
Description | Yep, something which looks like this in dissasembly: 00E8487C mov eax,dword ptr [ecx+4] 00E8487F mov eax,dword ptr [eax+4] dont know how to get the whole stacktrace though. It didnt have time to get to the infolog. Peace out. | ||||||||
Steps To Reproduce | Dl. Install. Execute. | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|
abma (administrator) 2012-11-10 14:04 Last edited: 2012-11-10 14:05 |
please attach infolog.txt... (without its hard to fix) i currently can't test win32 |
abma (administrator) 2012-11-11 16:47 |
... |
abma (administrator) 2012-11-12 03:59 Last edited: 2012-11-12 04:09 |
crashes at init here, too: #0 0x00e8428f in std::_Rb_tree_decrement(std::_Rb_tree_node_base*) () #1 0x00e62741 in operator-- (this=<optimized out>) at /usr/lib/gcc/i586-mingw32msvc/4.4.4/include/c++/bits/stl_tree.h:199 #2 std::_Rb_tree<std::string, std::pair<std::string const, DefType const*>, std::_Select1st<std::pair<std::string const, DefType const*> >, std::less<std::string>, std::allocator<std::pair<std::string const, DefType const*> > >::_M_insert_unique (this=0x1218a18, __v=...) at /usr/lib/gcc/i586-mingw32msvc/4.4.4/include/c++/bits/stl_tree.h:1179 0000003 0x00e62918 in std::_Rb_tree<std::string, std::pair<std::string const, DefType const*>, std::_Select1st<std::pair<std::string const, DefT ype const*> >, std::less<std::string>, std::allocator<std::pair<std::string const, DefType const*> > >::_M_insert_unique_ ( this=0x1218a18, __position=..., __v=...) at /usr/lib/gcc/i586-mingw32msvc/4.4.4/include/c++/bits/stl_tree.h:1217 0000004 0x00753330 in insert (__x=<optimized out>, this=<optimized out>, __position=<optimized out>) at /usr/lib/gcc/i586-mingw32msvc/4.4.4/include/c++/bits/stl_map.h:540 0000005 operator[] (__k=<optimized out>, this=<optimized out>) at /usr/lib/gcc/i586-mingw32msvc/4.4.4/include/c++/bits/stl_map.h:450 #6 DefType::DefType (this=0x1222240, name=...) at /slave/full-windows/build/rts/Sim/Misc/DefinitionTag.cpp:22 #7 0x00882a63 in __static_initialization_and_destruction_0 (__priority=<optimized out>, __initialize_p=<optimized out>) at /slave/full-windows/build/rts/Sim/Weapons/WeaponDefHandler.cpp:33 #8 0x0099cd62 in __do_global_ctors () #9 0x00401093 in __mingw_CRTStartup () at /root/mingw/mingw32-runtime-3.15.2/build_dir/src/mingwrt-3.15.2-mingw32/crt1.c:229 0000010 0x00401128 in WinMainCRTStartup () at /root/mingw/mingw32-runtime-3.15.2/build_dir/src/mingwrt-3.15.2-mingw32/crt1.c:271 seems win32 dislikes this: https://github.com/spring/spring/blob/develop/rts/Sim/Misc/DefinitionTag.cpp#L22 |
abma (administrator) 2012-11-12 12:05 Last edited: 2012-11-12 12:06 |
http://www.parashift.com/c++-faq/static-init-order.html ? |
cleanrock (reporter) 2012-11-12 17:33 |
Its because init order of global variables are undefined. WeaponDefs in WeaponDefHandler.cpp needs tagtypes in DefinitionTag.cpp created first, if you are unlucky it will not bite you :). |
jK (developer) 2012-11-12 20:50 Last edited: 2012-11-12 20:54 |
Ah, will see if I can fix that by a wrapper function (to access the std::map). |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2012-11-09 19:21 | PicassoCT | New Issue | |
2012-11-10 14:04 | abma | Note Added: 0009338 | |
2012-11-10 14:04 | abma | Status | new => feedback |
2012-11-10 14:05 | abma | Note Edited: 0009338 | View Revisions |
2012-11-11 16:47 | abma | Note Added: 0009341 | |
2012-11-11 16:47 | abma | Status | feedback => resolved |
2012-11-11 16:47 | abma | Resolution | open => unable to reproduce |
2012-11-11 16:47 | abma | Assigned To | => abma |
2012-11-12 03:59 | abma | Note Added: 0009350 | |
2012-11-12 03:59 | abma | Severity | crash => block |
2012-11-12 03:59 | abma | Status | resolved => new |
2012-11-12 03:59 | abma | Resolution | unable to reproduce => open |
2012-11-12 04:09 | abma | Note Edited: 0009350 | View Revisions |
2012-11-12 04:09 | abma | Status | new => assigned |
2012-11-12 04:09 | abma | Product Version | 91.0 => 91.0.1+git |
2012-11-12 04:09 | abma | Assigned To | abma => |
2012-11-12 04:09 | abma | Status | assigned => new |
2012-11-12 05:16 | abma | Summary | Newest Windows Build crashes upon start => Newest Windows Build crashes upon start in rts/Sim/Misc/DefinitionTag.cpp:22 |
2012-11-12 12:05 | abma | Note Added: 0009351 | |
2012-11-12 12:06 | abma | Note Edited: 0009351 | View Revisions |
2012-11-12 17:33 | cleanrock | Note Added: 0009352 | |
2012-11-12 20:50 | jK | Note Added: 0009353 | |
2012-11-12 20:52 | jK | Note Edited: 0009353 | View Revisions |
2012-11-12 20:54 | jK | Note Edited: 0009353 | View Revisions |
2012-11-16 06:46 | jK | Status | new => resolved |
2012-11-16 06:46 | jK | Resolution | open => fixed |
2012-11-16 06:46 | jK | Assigned To | => jK |