Repository navigation
[GNATS 21720] Boost test runs out of memory #115
jhsedg
started this conversation in
Issue Triage - General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Customer bug ID
(boost) csundef (3 tests ) gnats/_21720.C (full expanded test).
Description
This series of Boost tests runs out of memory. The -d-spaced_used does not work, so this is a snapshot from gdb.
The full test is in the gnats/_21720.C
Starting program: /home/ellen/cpfe/bases/mjh-ia64/bin/cpfe --c++17 --gnu_version 80100 -tused -w /tmp/mempig.C
^C
0x000000000078dd27 in check_parent_scope_of_member_entities (sp=0xcb9b40) at /home/ellen/cpfe/src/scope_stk.c:8658
8658 if (sp == parent_scope_of(tp) ||
(gdb) call *show_space_used
$3 = {void (void)} 0x587f79 <show_space_used>
(gdb) call *show_space_used()
Symbol table use:
Symbol table use:
Table Number Each Total
symbol 249652 128 31955456
symbol header 25502 72 1836144
scope stack 180 784 141120 (gen. storage)
conversion header 75 24 1800
literal operator header 2 32 64
Name strings 291290 1 291290
symbol header lookup ents 81323 16 1301168
extern symbol descr 2535 24 60840
extern type fixup 1 32 32
field symbol supplement 2644 32 84608
static data member supplement 389 24 9336
enum symbol supplement 214 56 11984
class symbol supplement 35208 400 14083200
namespace symbol suppl. 115 208 23920
template symbol suppl. 18215 440 8014600
template param 28821 160 4611360
param ids 40532 120 4863840
40532 lost
dependent type fixups 2281 40 91240
2186 lost
vla fixup 0 40 0
template instance 29074 112 3256288
master instance 15150 32 484800
symbol list entry 66133 16 1058128
type list entry 399 16 6384
subst. type list entry 2360 24 56640
template cache segment 238 56 13328
47 lost
template decl info 14034 104 1459536
out of class partial spec 0 80 0
nondependent call info 18 40 720
token sequence xref 0 16 0
constexpr if cache info 0 24 0
templ friend def arg 26 24 624
namespace list entry 1265 16 20240
projection symbol descr 9649 16 154384
access error descr 2 56 112
active using directives 139 40 5560
9 lost
exception spec err descr 0 24 0
generated entity blocks 18 24 432 (gen. storage)
hash table 25740 24 617760
hash table entries 118309 24 2839416
hash table size 8231440
saved macro state 0 40 0
hide-by-sig list entries 0 32 0
property set sym. suppl. 0 24 0
C++/CLI accessor lookup 0 24 0
ms attribute descrs 0 56 0
ms attribute parameters 0 32 0
ms attribute alternate name entries 0 24 0
PCH events 0 56 0
string literal tables 1 256 256
string literal entries 284 24 6816
func. shareable constants 1 256 256
loc. static var. locators 0 32 0
wait for mod. id entries 0 16 0
pack exp. stack entries 9 56 504
pack references 2194 104 228176
2193 lost
pack expansion descrs 3775 56 211400
3771 lost
pack instantiation descrs 1 24 24
partial spec candidates 1 24 24
template decl states 0 960 0
variadic param infos 47 32 1504
deferred constr. checks 0 32 0
template lookup entries 0 24 0
exported template files 0 72 0
routine fixups 578 168 97104
10 lost
initializer fixups 4 24 96
pending exc chk entries 19 40 760
covariant overrides 0 40 0
class fixups 500 24 12000
override registry entries 18 48 864
quasi-override descr. 0 40 0
def arg expr fixups 436 80 34880
427 lost
based type fixups 0 16 0
copy remap entries 0 24 0
data map table width 3 4 32 128
data map table width 4 1 64 64
data map table width 5 1 128 128
live set table width 3 4 32 128
live set table width 4 1 64 64
trans. unit corresps 101609 24 2438616
translation units 1 440 440 (gen. storage)
trans. unit stack entry 1 16 16 (gen. storage)
variable registration 320 40 12800 (gen. storage)
Total 88634842
Percent of buckets used 56
Avg non-empty bucket len 1.74
Number of searches 329157
Avg compares/search 1.18
Number of fast id lookups 9186
Number of slow id lookups 205305
Macro table use:
Table Number Each Total
macro param 15 24 360
macro def 321 24 7704
macro arg 2 88 176 (gen. storage)
Macro arg text 2400 1 2400 (gen. storage)
Param name strings 20 1 20
Macro definition text 3010 1 3010
macro_buffer 4000 (gen. storage)
Total 17670
Error table use:
Table Number Each Total
diagnostic 2 184 368
diag fill-in 2 40 80
Total 448
Lexical table use:
Table Number Each Total
orig line modif 0 32 0
source line modif 1 112 112
1 lost
concatenation record 0 24 0
cached token 233 120 27960
184 lost
reusable cached token 618239 120 74188680
token cache 311 48 14928
cached constant 8272 200 1654400
8270 lost
cache stack entry 21 88 1848
pending pragma entry 14441 112 1617392
14299 lost
stop token stack entry 30 360 10800
2 lost
lexical state stack entry 22 80 1760
1 lost
reusable cache pragmas 18 112 2016
pragma kind descriptions 37 24 888
file suffixes 9 16 144
include file histories 0 40 0
preinclude files 0 16 0 (gen. storage)
include search results 0 32 0 (gen. storage)
cached pp token strings 1756
curr_source_line 12000 (gen. storage)
Avg slm hash comp/search 1.00
Total 77534684
Declaration parsing:
Table Number Each Total
decl-parse states 0 448 0
decl-parse callbacks 65 24 1560
64 lost
auto param descriptions 0 48 0
mem init args caches 12 88 1056
Expression table use:
Table Number Each Total
arg operands 850 352 299200
846 lost
init components 140 64 8960
129 lost
arg match summary 53 104 5512
10 lost
candidate function 25 144 3600
5 lost
ref entry 28 56 1568
4 lost
seq point variable entry 0 32 0
seq point info entry 0 24 0
dynamic init dtor fixup 4 24 96
expr rescan info entry 32508 376 12223008
Total 12541944
IL table use:
Table Number Each Total
source file 4697 72 338184
seq number lookup entries 4697 32 150304
constant 51006 200 10201200
subobject paths 163 24 3912
String literal text 58605 1 58605
IL entity list entries 1204 24 28896
param type 76645 96 7357920
routine type supplement 67396 64 4313344
based type list member 67903 24 1629672
class type supplement 35319 328 11584632
class list entry 1859 16 29744
routine list entry 1124 16 17984
variable list entry 0 16 0
constant list entry 1 16 16
overriding virtual func 851 40 34040
derivation steps 16975 16 271600
base class derivations 10918 24 262032
base class 10940 152 1662880
template args 168846 56 9455376
templ param supplement 32324 56 1810144
typeref type supplement 33316 80 2665280
integer type supplement 235 64 15040
type 225400 168 37867200
dynamic init 5206 128 666368
local static var inits 1002 40 40080
vla dimensions 0 56 0
variable 11855 280 3319400
variable template info 713 24 17112
field 3149 192 604608
routine 59899 304 18209296
exception specification 38310 32 1225920
exception spec type 0 32 0
asm entry 1 152 152
label 62 128 7936
expr node 224373 80 17949840
(fs expr node) 52153 80 4172240
(avail. fs expr node) 0 80 0
(fs rescan expr node) 13484 80 1078720
new/delete supplement 46 56 2576
gcnew supplement 0 32 0
throw supplement 7 24 168
condition supplement 158 32 5056
switch case entry 116 72 8352
switch stmt descr 21 24 504
handler 41 40 1640
try supplement 23 40 920
Microsoft try supplement 0 32 0
Microsoft attributes 0 88 0
Microsoft attribute args 0 32 0
custom Microsoft attribute args 0 24 0
property index types 0 24 0
property/event descrs 0 104 0
generic constraint 0 40 0
generic constraint clause 0 48 0
block 7513 32 240416
for_loop 381 32 12192
coroutine_descr 0 120 0
statement 28444 80 2275520
constexpr if 0 32 0
constructor init 1032 64 66048
pragma 97682 64 6251648
object lifetime 7077 64 452928
namespace 115 128 14720
using-decl 1714 64 109696
scope 40067 264 10577688
local-scope-refs 1059 32 33888
template_parameters 28805 128 3687040
template_decls 14402 40 576080
templates 19700 192 3782400
name references 4569 40 182760
name qualifiers 9371 40 374840
element-positions 648 24 15552
decl-position supplement 226254 56 12670224
per inst needed flags 0 24 0
orphaned list headers 611 48 29328
fs orphan pointers 1431586 8 11452688
trans. unit copy addr. 0 8 0
IL entry prefix 1693165 16 27090640
asm function bodies 0
attribute 2494 80 199520
attribute arg 1084 48 52032
attribute group 1763 16 28208
Total 211993989
get_based_type_calls 222221
num_shareable_constants 1375
Percent of buckets used 40
Avg non-empty bucket len 1.67
num func shareable consts 281
Number of searches 35603
Avg compares/search 0.63
temp text buffer 2000 (gen. storage)
Statements table use:
Table Number Each Total
struct stmt stack 60 176 10560 (gen. storage)
control flow descrs 140 96 13440
2 lost
Total 24000
Preprocessing table use:
Table Number Each Total
UPC pragma stack entries 0 16 0
forScope pragma stk ents 0 24 0
include alias entries 0 24 0
GCC pragma stack entries 0 16 0
Total 0
GNU attributes use:
Table Number Each Total
GNU visibility stack 2 16 32
alias fixups 28 40 1120
pragma extname strings 0 1 0
IL lowering table use:
Table Number Each Total
Name strings 150834 1 150834
init pos modifier 10 48 480
destr. entity descrs 38 160 6080
return memos 15 16 240
temp list entries 21 24 504
scopeless comp stmts 2 24 48
construction vtbls 49 48 2352
variable remappings 4 64 256
Total 160794
Memory management table use:
Table Number Each Total
text buffers 10 40 400
Total 400
Allocated space in all categories:
Total of above 390914139
Skipped for alignment 145027
File mapped memory 0
Mapped from PCH 0 (included in previous line)
Mapped IL file size 0
Not listed 3476722
Total used 394535888
Avail in used mem blocks 637176
Avail in freed mem blocks 0
Max mem alloc 387476896
Attempt to take contents of a non-pointer value.
(gdb)
Notes
mjh, 2019-09-06:
This test doesn't seem to run out of memory, but does take an inordinate amount of time (about 17 minutes on lin6). Also, g++810 doesn't compile it:
[mjh@lin1 gnats] (master=)$ time g++810 -w -std=c++17 -c 21720.C 2>&1 | less
../boost/test/floating_point_comparison.hpp:14:1: note: #pragma message: This header is deprecated. Use This header is deprecated. Please use <boost/test/tools/floating_point_comparison.hpp> instead. instead.
../boost/math/constants/constants.hpp: In static member function 'static constexpr T boost::math::constants::detail::constant_half::get(const mpl::int_<5>&)':
../boost/math/constants/constants.hpp:273:1643: error: unable to find numeric literal operator 'operator""Q'
../boost/math/constants/constants.hpp:273:1643: note: use -fext-numeric-literals to enable more built-in suffixes
../boost/math/constants/constants.hpp: In static member function 'static constexpr T boost::math::constants::detail::constant_third::get(const mpl_::int_<5>&)':
All reactions