2025-07-19 12:29 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004318Spring engineGeneralpublic2014-02-22 22:38
Reporterabma 
Assigned TojK 
PrioritynormalSeveritycrashReproducibilityhave not tried
StatusresolvedResolutionfixed 
Product Version96.0.1+git 
Target Version97.0Fixed in Version 
Summary0004318: SIGFPE when running --test-creg on 32bit
Description(gdb) bt
#0 0x082a23ad in operator() (__den=0, __num=0, this=<optimized out>) at /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/include/g++-v4/bits/hashtable_policy.h:245
#1 _M_bucket_index (__n=0, __c=0, this=<optimized out>) at /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/include/g++-v4/bits/hashtable_policy.h:710
#2 _M_bucket_index (__c=0, this=<optimized out>, __k=<optimized out>) at /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/include/g++-v4/bits/hashtable.h:466
0000003 std::__detail::_Map_base<int, std::pair<int const, int>, std::_Select1st<std::pair<int const, int> >, true, std::_Hashtable<int, std::pair<int const, int>, std::allocator<std::pair<int const, int> >, std::_Select1st<std::pair<int const, int> >, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, false, false, true> >::operator[](int&&) (this=this@entry=0x8e96b60 <SDL2_to_SDL1_keysyms>, __k=@0xffffd24c: 0)
    at /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/include/g++-v4/bits/hashtable_policy.h:457
0000004 0x082a2430 in doOnce263::doOnce263 (this=0x8e9956a <_ZL12doOnceVar263>) at ../../rts/System/Platform/SDL1_keysym.h:14
0000005 0x0811c04c in __static_initialization_and_destruction_0 (__initialize_p=<optimized out>, __priority=<optimized out>) at ../../rts/System/Platform/SDL1_keysym.h:263
#6 _GLOBAL__sub_I__ZN15LuaUnsyncedRead11PushEntriesEP9lua_State () at ../../rts/Lua/LuaUnsyncedRead.cpp:2514
#7 0x08ae904d in ?? ()
#8 0x08100ca6 in _init ()
#9 0xf7f843e4 in ?? () from /lib32/libc.so.6
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
has duplicate 0004315resolvedjK spring.exe crashes instantly on windows 
+Relationships

-Notes

~0012862

abma (administrator)

looks a bit like it happens in 32bit only

~0012863

abma (administrator)

yep, 64 bit works: http://buildbot.springrts.com/builders/linux-static-x64/builds/454/steps/test/logs/stdio

~0012866

jK (developer)

why is SIGFPE for headless enabled in release builds?

~0012874

abma (administrator)

good point, i have no clue, investigating...

~0012875

abma (administrator)

CMakeCache.txt for x64 and x32 contains:
SIGNAL_NANS:BOOL=OFF

~0012876

abma (administrator)

Last edited: 2014-02-22 22:38

View 3 revisions

didn't really investigate but it seems that it is some strange unordered_map behaviour:

http://stackoverflow.com/questions/8286103/strange-unordered-map-situation
http://stackoverflow.com/questions/13580823/sigfpe-when-accessing-unordered-map

-> SIGNAL_NANS is disabled -> gcc / unorderded-map bug / wrong usage

+Notes

-Issue History
Date Modified Username Field Change
2014-02-22 17:34 abma New Issue
2014-02-22 17:34 abma Note Added: 0012862
2014-02-22 17:41 abma Note Added: 0012863
2014-02-22 17:43 abma Summary SIGFPE when running --test-creg => SIGFPE when running --test-creg on 32bit
2014-02-22 18:43 jK Note Added: 0012866
2014-02-22 18:54 jK Changeset attached => spring develop d3c5bcc8
2014-02-22 18:54 jK Assigned To => jK
2014-02-22 18:54 jK Status new => resolved
2014-02-22 18:54 jK Resolution open => fixed
2014-02-22 20:01 jK Changeset attached => spring develop 4a7bda2f
2014-02-22 20:22 jK Relationship added has duplicate 0004315
2014-02-22 22:27 abma Note Added: 0012874
2014-02-22 22:32 abma Note Added: 0012875
2014-02-22 22:36 abma Note Added: 0012876
2014-02-22 22:38 abma Note Edited: 0012876 View Revisions
2014-02-22 22:38 abma Note Edited: 0012876 View Revisions
+Issue History