clang ubsan: fix undefined behaviour #916

Open
rurban opened this Issue Jan 5, 2013 · 1 comment

Comments

Projects
None yet
2 participants
Member

rurban commented Jan 5, 2013

clang 3.3: -O1 -fno-optimize-sibling-calls -fno-omit-frame-pointer -fsanitize=undefined

t/compilers/imcc/syn/tail.t ................. ok
blib/lib/libparrot.so.4.11.0:0x70ab85: runtime error: value nan is outside the range of representable values of type 'double'
blib/lib/libparrot.so.4.11.0:0x91d577: runtime error: value nan is outside the range of representable values of type 'long double'
blib/lib/libparrot.so.4.11.0:0x91a65f: runtime error: value nan is outside the range of representable values of type 'double'

src/ops/core_ops.c:15177:15: runtime error: left shift of 4294967295 by 32 places cannot be represented in type 'INTVAL' (aka 'long')
t/op/64bit.t ................................ ok
...
blib/lib/libparrot.so.4.11.0:0x9ebd80: runtime error: value nan is outside the range of representable values of type 'long'
src/utils.c:127:34: runtime error: negation of -9223372036854775808 cannot be represented in type 'INTVAL' (aka 'long'); cast to an unsigned type to negate this value to itself
src/utils.c:134:31: runtime error: signed integer overflow: 1 - -9223372036854775808 cannot be represented in type 'long'
t/op/inf_nan.t .............................. 

src/ops/core_ops.c:15159:15: runtime error: left shift of 36028797018963968 by 8 places cannot be represented in type 'INTVAL' (aka 'long')
t/op/integer.t .............................. ok

src/utils.c:238:14: runtime error: signed integer overflow: 59502 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 59502 * 57068 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 39807 * 58989 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: 794640819 + 1453179552 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 53211 * 58989 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 46573 * 58989 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: 178795659 + 2061124956 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 65240 * 58989 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 61436 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 63715 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 61436 * 57068 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 63715 * 57068 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 38487 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 38487 * 57068 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 61691 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 49035 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 49035 * 57068 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 63081 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 63081 * 57068 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 62534 * 58989 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 55611 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 62534 * 57068 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 48296 * 58989 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 62842 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 52101 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 62842 * 57068 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 51521 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 52101 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: -1255795027 + -1321667428 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: 1732506930 + 1176000276 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: 1327370478 + 1676087160 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 38074 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 38074 * 57068 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 57553 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 57553 * 57068 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 59800 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 65440 * 58989 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 41098 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 65440 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: -1870637374 + -560437376 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: 2146196787 + 304457780 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 62712 * 58989 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 46528 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 62712 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: -1550327104 + -716118880 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 53338 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 53338 * 57068 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: 2083078557 + 767678736 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: 517805442 + 2015242284 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 61013 * 58989 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 60454 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 47273 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 60454 * 57068 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: -1506380299 + -844978424 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 47273 * 57068 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 45113 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 61835 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 45113 * 57068 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: -647382481 + -1720458612 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 62799 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 61835 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: 2035002522 + 867034124 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: 1037911455 + 1520919268 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 38282 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 38282 * 57068 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 42957 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 42957 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: 1863698466 + 427096912 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 41044 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 41044 * 57068 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 46818 * 58989 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 48079 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 48079 * 57068 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 61742 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 61742 * 57068 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 56586 * 58989 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 40600 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 40600 * 57068 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 38586 * 58989 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 59182 * 58989 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 58130 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 60055 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 58130 * 57068 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 60055 * 57068 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 55989 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 55989 * 57068 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 48412 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 48412 * 57068 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 47644 * 58989 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 44279 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 42047 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 44279 * 57068 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: -1814656813 + -1768053324 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 42047 * 57068 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 36662 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 51766 * 58989 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 47384 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 51766 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: -1499832520 + -1340785208 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 63405 * 58989 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 39877 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 63405 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: -1942662943 + -676570756 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 49120 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 49120 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: 1649391429 + 1203792392 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 62059 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 62059 * 57068 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 53741 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 55249 * 58989 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 52076 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 55249 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: -1223056132 + -1142017364 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: 492381183 + 1908182716 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 42994 * 58989 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 43748 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 43748 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: 1979493873 + 588656420 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 39711 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 39711 * 57068 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 60573 * 58989 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 58942 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 58942 * 57068 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 53385 * 58989 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 48241 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 49548 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 48241 * 57068 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: -1372180324 + -1541949908 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 41718 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 49548 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: -1834064194 + -1467362032 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 49704 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 36965 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 49704 * 57068 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: -2114438911 + -1458459424 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: 910849149 + 2109518620 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 39699 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 38051 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 39699 * 57068 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: -2050376857 + -2029424764 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 38051 * 57068 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 46720 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 46720 * 57068 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: 1728554667 + 927982748 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: 1192167690 + 1672263604 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 50291 * 58989 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 40110 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 50291 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: -1928918506 + -1424960508 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: 2015182218 + 559209332 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 46891 * 58989 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 55612 * 58989 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 51177 * 58989 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 50544 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 64791 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 50544 * 57068 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 57720 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 64791 * 57068 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 45243 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 45243 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: 1906052568 + 960625644 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 45421 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 57254 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 45421 * 57068 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: -917611090 + -1702881668 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 57254 * 57068 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 46810 * 58989 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 61039 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 65370 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 61039 * 57068 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 65370 * 57068 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: 1876499079 + 924844008 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 39788 * 58989 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 49215 * 58989 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 59832 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 49531 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 59832 * 57068 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: -1373183137 + -880474720 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 49684 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 49531 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: -1364157820 + -1468332188 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 54115 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 47965 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 54115 * 57068 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: -1465559911 + -1206732476 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 44076 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 47965 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: -1694968132 + -1557700676 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 62258 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 52257 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 62258 * 57068 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 47135 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 52257 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: -1514520781 + -1312764820 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 63755 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 63755 * 57068 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 39484 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 64602 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 39484 * 57068 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: -484159918 + -2041694384 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 64602 * 57068 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 37783 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 37783 * 57068 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 42461 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 42461 * 57068 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: 1703307375 + 1251444172 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: 2090452182 + 1647838500 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 41739 * 58989 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 48204 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 41739 * 57068 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: -1451461540 + -1913006044 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 48204 * 57068 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 57153 * 58989 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 53152 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 57153 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: -1159583968 + -1033359892 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 44571 * 58989 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 58960 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 44571 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: -816975856 + -1751389468 cannot be represented in type 'int'
src/utils.c:238:14: runtime error: signed integer overflow: 41152 * 58989 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 43608 * 58989 cannot be represented in type 'int'
src/utils.c:242:28: runtime error: signed integer overflow: 41152 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: -1722574984 + -1946504960 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 46527 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 46527 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: 478695735 + 1990531840 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 64606 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 64606 * 57068 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 59409 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 59409 * 57068 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 55588 * 58989 cannot be represented in type 'int'
src/utils.c:234:14: runtime error: signed integer overflow: 49075 * 58989 cannot be represented in type 'int'
src/utils.c:238:28: runtime error: signed integer overflow: 49075 * 57068 cannot be represented in type 'int'
src/utils.c:242:21: runtime error: signed integer overflow: 2108738772 + 2006396744 cannot be represented in type 'int'
src/utils.c:238:21: runtime error: signed integer overflow: 1407123606 + 1654629592 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 56615 * 58989 cannot be represented in type 'int'
src/utils.c:242:14: runtime error: signed integer overflow: 60108 * 58989 cannot be represented in type 'int'
t/library/uuid.t ............................ ok

src/ops/core_ops.c:15159:15: runtime error: left shift of 36028797018963968 by 8 places cannot be represented in type 'INTVAL' (aka 'long')
./src/pmc/integer.pmc:1177:11: runtime error: signed integer overflow: 9223372036854775807 + 1 cannot be represented in type 'long'
./src/pmc/bigint.pmc:754:63: runtime error: negation of -9223372036854775808 cannot be represented in type 'INTVAL' (aka 'long'); cast to an unsigned type to negate this value to itself
src/ops/core_ops.c:15159:15: runtime error: left shift of 36028797018963968 by 8 places cannot be represented in type 'INTVAL' (aka 'long')
./src/pmc/integer.pmc:1177:11: runtime error: signed integer overflow: 9223372036854775807 + 1 cannot be represented in type 'long'
src/string/api.c:3282:15: runtime error: negation of -9223372036854775808 cannot be represented in type 'HUGEINTVAL' (aka 'long long'); cast to an unsigned type to negate this value to itself
./src/pmc/integer.pmc:342:24: runtime error: signed integer overflow: 9223372036854775807 + 1 cannot be represented in type 'long'
./src/pmc/integer.pmc:342:24: runtime error: signed integer overflow: 9223372036854775806 + 2 cannot be represented in type 'long'
./src/pmc/integer.pmc:342:24: runtime error: signed integer overflow: 9223372036854775806 + 3 cannot be represented in type 'long'
src/string/api.c:3282:15: runtime error: negation of -9223372036854775808 cannot be represented in type 'HUGEINTVAL' (aka 'long long'); cast to an unsigned type to negate this value to itself
./src/pmc/integer.pmc:342:24: runtime error: signed integer overflow: -9223372036854775807 + -2 cannot be represented in type 'long'
./src/pmc/integer.pmc:342:24: runtime error: signed integer overflow: -9223372036854775807 + -3 cannot be represented in type 'long'
./src/pmc/integer.pmc:473:24: runtime error: signed integer overflow: 9223372036854775806 - -2 cannot be represented in type 'long'
./src/pmc/integer.pmc:473:24: runtime error: signed integer overflow: 9223372036854775806 - -3 cannot be represented in type 'long'
./src/pmc/bigint.pmc:754:63: runtime error: negation of -9223372036854775808 cannot be represented in type 'INTVAL' (aka 'long'); cast to an unsigned type to negate this value to itself
./src/pmc/integer.pmc:625:25: runtime error: signed integer overflow: 31 * 582645929725440000 cannot be represented in type 'long'
./src/pmc/integer.pmc:625:25: runtime error: signed integer overflow: 256 * 582645929725440000 cannot be represented in type 'long'
./src/pmc/integer.pmc:625:25: runtime error: signed integer overflow: 256 * 96034297911552000 cannot be represented in type 'long'
./src/pmc/integer.pmc:625:25: runtime error: signed integer overflow: 33 * 3594206259195552000 cannot be represented in type 'long'
./src/pmc/integer.pmc:625:25: runtime error: signed integer overflow: 289 * 3594206259195552000 cannot be represented in type 'long'
t/pmc/bigint.t .............................. ok

#   Failed test 'add overflow Integer'
#   at t/pmc/bignum.t line 977.
#          got: '9223372036854775807 Integer
# ./src/pmc/integer.pmc:342:24: runtime error: signed integer overflow: 9223372036854775806 + 2 cannot be represented in type 'long'
#9223372036854775808 BigInt
# ./src/pmc/integer.pmc:342:24: runtime error: signed integer overflow: 9223372036854775806 + 3 cannot be represented in type 'long'
#9223372036854775809 BigInt
# ok
# '
#     expected: '9223372036854775807 Integer
#9223372036854775808 BigInt
#9223372036854775809 BigInt
# ok
# '

#   Failed test 'add overflow Integer'
#   at t/pmc/bignum.t line 1006.
#          got: '9223372036854775807 Integer
# ./src/pmc/integer.pmc:342:24: runtime error: signed integer overflow: 9223372036854775806 + 2 cannot be represented in type 'long'
#9223372036854775808 BigInt
# ./src/pmc/integer.pmc:342:24: runtime error: signed integer overflow: 9223372036854775806 + 3 cannot be represented in type 'long'
#9223372036854775809 BigInt
# ok
# '
#     expected: '9223372036854775807 Integer
#9223372036854775808 BigInt
#9223372036854775809 BigInt
# ok
# '
# Looks like you failed 2 tests of 45.
t/pmc/bignum.t .............................. 
not ok 8 - set double, get str # TODO bignum strings
not ok 9 - add # TODO bignum strings
not ok 10 - i_add # TODO bignum strings
not ok 11 - add_int # TODO bignum strings
not ok 15 - i_subtract # TODO undiagnosed bug in i_subtract routine with immediate values
not ok 16 - mul # TODO bignum strings
not ok 17 - i_multiply # TODO bignum strings
not ok 18 - mul_float # TODO bignum strings
not ok 24 - floor_divide # TODO undiagnosed bug in floor division; no floor division is actually done.
not ok 28 - bignum / by zero BigInt # TODO missing signature
not ok 30 - bignum % by zero BigNum # TODO missing signature
not ok 31 - bignum % by zero BigInt # TODO missing signature
not ok 32 - bignum % by zero Integer # TODO missing signature
not ok 36 - abs # TODO bignum strings
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/45 subtests 

@ghost ghost assigned rurban Jan 5, 2013

Owner

leto commented Jan 5, 2013

@rurban can you give some details about what this output actually means and if you have suggestions for how to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment