This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/81722] New: [7/8 Regression] memory hog building c++ on i686-linux-gnu


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81722

            Bug ID: 81722
           Summary: [7/8 Regression] memory hog building c++ on
                    i686-linux-gnu
           Product: gcc
           Version: 7.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

Created attachment 41931
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41931&action=edit
preprocessed source

seen with the 7.2 release candidate on i686-linux-gnu, configured defaulting to
PIE. Lowering the optimization to -O1 or -O0 doesn't help. extracted from the
mpqc3 package.

$ g++ -std=c++11 -g -O2 -std=c++11 -c twobody_intermediates_ta.ii
In file included from
/<<PKGBUILDDIR>>/src/lib/chemistry/qc/lcao/transform_factory.h:223:0,
                 from
/<<PKGBUILDDIR>>/src/lib/chemistry/qc/mbptr12/r12wfnworld.h:40,
                 from
/<<PKGBUILDDIR>>/src/lib/chemistry/qc/mbptr12/r12int_eval.h:32,
                 from
/<<PKGBUILDDIR>>/src/lib/chemistry/qc/mbptr12/twobody_intermediates_ta.cc:37:
/<<PKGBUILDDIR>>/src/lib/chemistry/qc/lcao/transform_tbint.h:212:89: warning:
dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
   virtual void check_int_symm(double threshold =
TwoBodyMOIntsTransform::zero_integral) throw (ProgrammingError) =0;
                                                                               
         ^~~~~
virtual memory exhausted: Operation not permitted

breaking in gdb:

#0  0x08905b11 in check_qualified_type (cand=0xc3a65540, base=0xe97c92a0,
type_quals=0)
    at ../../src/gcc/tree.c:6536
#1  0x08905c12 in get_qualified_type (type=0xe97c92a0, type_quals=0)
    at ../../src/gcc/tree.c:6615
#2  0x08911976 in build_qualified_type (type=0xe97c92a0, type_quals=0)
    at ../../src/gcc/tree.c:6630
#3  0x082c300e in cp_build_qualified_type_real (type=0xe97c92a0, type_quals=0,
complain=3)
    at ../../src/gcc/cp/tree.c:1250
#4  0x0827e4a0 in same_type_ignoring_top_level_qualifiers_p (type1=0xab82a180, 
    type1@entry=0xe97c92a0, type2=type2@entry=0xe97c92a0)
    at ../../src/gcc/cp/typeck.c:1466
#5  0x0827e4e8 in same_type_ignoring_top_level_qualifiers_p (type1=0xe97c92a0, 
    type2=0xe97c92a0) at ../../src/gcc/cp/typeck.c:1462
#6  0x081c16a2 in is_properly_derived_from (derived=0xe97c92a0,
base=0xe97c92a0)
    at ../../src/gcc/cp/call.c:8963
#7  0x081c29e7 in compare_ics (ics1=<optimized out>, ics1@entry=0xb0664a4, 
    ics2=<optimized out>, ics2@entry=0xb0655d4) at ../../src/gcc/cp/call.c:9341
#8  0x081c67e5 in joust (cand1=cand1@entry=0xb06651c,
cand2=cand2@entry=0xb06564c, 
    warn=warn@entry=false, complain=3) at ../../src/gcc/cp/call.c:9560
#9  0x081c76f2 in joust (complain=3, warn=false, cand2=<optimized out>,
cand1=0xb06651c)
    at ../../src/gcc/cp/call.c:9998
#10 tourney (candidates=0xb06651c, complain=complain@entry=3)
    at ../../src/gcc/cp/call.c:9962
#11 0x081cd18c in perform_overload_resolution (fn=fn@entry=0xe97dacbc,
args=0x82c9376c, 
    candidates=candidates@entry=0xffffcf0c, any_viable_p=0xffffcf0b,
complain=3)
    at ../../src/gcc/cp/call.c:4152
#12 0x081cd24a in build_new_function_call (fn=0xe97dacbc, args=0xffffcfec, 
    koenig_p=false, complain=3) at ../../src/gcc/cp/call.c:4232
#13 0x082a8ba4 in finish_call_expr (fn=0xe97dacbc, args=0xffffcfec, 
    disallow_virtual=false, koenig_p=false, complain=3)
    at ../../src/gcc/cp/semantics.c:2454
#14 0x0820b18a in tsubst_copy_and_build (t=<optimized out>, args=<optimized
out>, 
    complain=<optimized out>, in_decl=<optimized out>, function_p=<optimized
out>, 
    integral_constant_expression_p=<optimized out>) at
../../src/gcc/cp/pt.c:17444
#15 0x081ffb6b in tsubst_expr (t=0xe98092ac, args=0x85f0aaf0, complain=3, 
    in_decl=0xe97f6f70, integral_constant_expression_p=false)
    at ../../src/gcc/cp/pt.c:16550
#16 0x081ff42b in tsubst_expr (t=0xe9805b54, args=0x85f0aaf0, complain=3, 
    in_decl=0xe97f6f70, integral_constant_expression_p=false)
    at ../../src/gcc/cp/pt.c:15815
#17 0x081ff83f in tsubst_expr (t=<optimized out>, args=0x85f0aaf0, complain=3, 
    in_decl=0xe97f6f70, integral_constant_expression_p=false)
    at ../../src/gcc/cp/pt.c:15801
#18 0x081ff9f8 in tsubst_expr (t=0xe9802850, args=0x85f0aaf0, complain=3, 
    in_decl=0xe97f6f70, integral_constant_expression_p=false)
    at ../../src/gcc/cp/pt.c:16027
#19 0x081fe0c5 in instantiate_decl (d=<optimized out>, defer_ok=<optimized
out>, 
    expl_inst_class_mem_p=<optimized out>) at ../../src/gcc/cp/pt.c:22986
#20 0x0821aaed in instantiate_pending_templates (retries=2) at
../../src/gcc/cp/pt.c:23107
#21 0x08239e3c in c_parse_final_cleanups () at ../../src/gcc/cp/decl2.c:4527
#22 0x086faf1d in compile_file () at ../../src/gcc/toplev.c:467
#23 0x081bc1dd in do_compile () at ../../src/gcc/toplev.c:2003
#24 toplev::main (this=0xffffd4ae, argc=<optimized out>, argv=<optimized out>)
    at ../../src/gcc/toplev.c:2137
#25 0x081be461 in main (argc=20, argv=0xffffd574) at ../../src/gcc/main.c:39

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]