public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12256] New: virtual memory exhausted: Invalid argument
@ 2003-09-11 22:27 stefaandr at hotmail dot com
  2003-09-11 22:28 ` [Bug c++/12256] " stefaandr at hotmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: stefaandr at hotmail dot com @ 2003-09-11 22:27 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12256

           Summary: virtual memory exhausted: Invalid argument
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: stefaandr at hotmail dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

When trying to compile qt-x11-free-3.2.1.tar.bz2, I get "virtual memory
exhausted: Invalid argument".  First time I could work through it by doing
preprocessing and compilation seperately, but it stopped cold at this one.
It is repeatable by only trying to compile the following (will submit after this
message) preprocessed code.

Reading specs from /esat/firenze/install/lib/gcc/i686-pc-linux-gnu/3.4/specs
Configured with: '../../src/gcc/3.4/configure' '--prefix=/esat/firenze/install
'--program-suffix=-3.4 '--enable-languages=c,c++
Thread model: posix
gcc version 3.4 20030911 (experimental)
 /esat/firenze/install/libexec/gcc/i686-pc-linux-gnu/3.4/cc1plus -E -quiet -v
-I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac
-I/esat/firenze/tmp/konstruct/libs/qt-x11-free/work/qt-x11-free-3.2.1/include/qmake
-I/esat/firenze/tmp/konstruct/libs/qt-x11-free/work/qt-x11-free-3.2.1/include
-I/esat/firenze/tmp/konstruct/libs/qt-x11-free/work/qt-x11-free-3.2.1/include
-I/esat/firenze/tmp/konstruct/libs/qt-x11-free/work/qt-x11-free-3.2.1/mkspecs/linux-g++
-D_GNU_SOURCE -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS -DHAVE_QCONFIG_CPP generators/mac/pbuilder_pbx.cpp
-mtune=pentiumpro -o pbuilder_pbx.ii
ignoring nonexistent directory
"/esat/firenze/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../i686-pc-linux-gnu/include"
ignoring duplicate directory
"/esat/firenze/tmp/konstruct/libs/qt-x11-free/work/qt-x11-free-3.2.1/include"
#include "..." search starts here:
#include <...> search starts here:
 .
 generators
 generators/unix
 generators/win32
 generators/mac
 /esat/firenze/tmp/konstruct/libs/qt-x11-free/work/qt-x11-free-3.2.1/include/qmake
 /esat/firenze/tmp/konstruct/libs/qt-x11-free/work/qt-x11-free-3.2.1/include
 /esat/firenze/tmp/konstruct/libs/qt-x11-free/work/qt-x11-free-3.2.1/mkspecs/linux-g++
 /esat/firenze/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4
 /esat/firenze/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/i686-pc-linux-gnu
 /esat/firenze/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/backward
 /usr/local/include
 /esat/firenze/install/include
 /esat/firenze/install/lib/gcc/i686-pc-linux-gnu/3.4/include
 /usr/include
End of search list.
 /esat/firenze/install/libexec/gcc/i686-pc-linux-gnu/3.4/cc1plus -fpreprocessed
pbuilder_pbx.ii -quiet -dumpbase pbuilder_pbx.cpp -mtune=pentiumpro
-auxbase-strip pbuilder_pbx.o -version -o pbuilder_pbx.s
GNU C++ version 3.4 20030911 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 3.3.1.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
virtual memory exhausted: Invalid argument


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/12256] virtual memory exhausted: Invalid argument
  2003-09-11 22:27 [Bug c++/12256] New: virtual memory exhausted: Invalid argument stefaandr at hotmail dot com
@ 2003-09-11 22:28 ` stefaandr at hotmail dot com
  2003-09-11 22:45 ` bangerth at dealii dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: stefaandr at hotmail dot com @ 2003-09-11 22:28 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12256



------- Additional Comments From stefaandr at hotmail dot com  2003-09-11 22:28 -------
Created an attachment (id=4742)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4742&action=view)
preprocessed code that yields "virtual memory exhausted"


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/12256] virtual memory exhausted: Invalid argument
  2003-09-11 22:27 [Bug c++/12256] New: virtual memory exhausted: Invalid argument stefaandr at hotmail dot com
  2003-09-11 22:28 ` [Bug c++/12256] " stefaandr at hotmail dot com
@ 2003-09-11 22:45 ` bangerth at dealii dot org
  2003-09-11 23:32 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bangerth at dealii dot org @ 2003-09-11 22:45 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12256


bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
           Priority|P2                          |P1


------- Additional Comments From bangerth at dealii dot org  2003-09-11 22:45 -------
I raise the priority of this one since I see memory overruns since a few days
as well. I assume there's a real problem here, so please someone look
at this (don't have the time right now to do it myself :-( )

W.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/12256] virtual memory exhausted: Invalid argument
  2003-09-11 22:27 [Bug c++/12256] New: virtual memory exhausted: Invalid argument stefaandr at hotmail dot com
  2003-09-11 22:28 ` [Bug c++/12256] " stefaandr at hotmail dot com
  2003-09-11 22:45 ` bangerth at dealii dot org
@ 2003-09-11 23:32 ` pinskia at gcc dot gnu dot org
  2003-09-13 17:42 ` raimond_merkert at raytheon dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-11 23:32 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12256



------- Additional Comments From pinskia at gcc dot gnu dot org  2003-09-11 23:32 -------
I think the scheduler wants more memory than before but it might not be as this does not run with 
optimization.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/12256] virtual memory exhausted: Invalid argument
  2003-09-11 22:27 [Bug c++/12256] New: virtual memory exhausted: Invalid argument stefaandr at hotmail dot com
                   ` (2 preceding siblings ...)
  2003-09-11 23:32 ` pinskia at gcc dot gnu dot org
@ 2003-09-13 17:42 ` raimond_merkert at raytheon dot com
  2003-09-15  1:28 ` [Bug c++/12256] [3.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: raimond_merkert at raytheon dot com @ 2003-09-13 17:42 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12256



------- Additional Comments From raimond_merkert at raytheon dot com  2003-09-13 13:57 -------
I've also run into this problem. I thought it had something to do with
-finline-functions, because when I took it out it worked. I tried to file a
report with the preprocessed source, but unfortunately that seemed to compile
fine (so I thought my memory mightbe corrupt). I actually ran 'top' while the
compiler was running and I did not see it use up much memory at all (unless it
made a request for a huge block of memory). Using different inline-limits (eg.
100) did not work either.

I think this may have been introduced last week, because I had no problems
compiling with the 2003-09-03 (I think it was) release.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/12256] [3.4 Regression] virtual memory exhausted: Invalid argument
  2003-09-11 22:27 [Bug c++/12256] New: virtual memory exhausted: Invalid argument stefaandr at hotmail dot com
                   ` (3 preceding siblings ...)
  2003-09-13 17:42 ` raimond_merkert at raytheon dot com
@ 2003-09-15  1:28 ` pinskia at gcc dot gnu dot org
  2003-09-17 16:30 ` pinskia at gcc dot gnu dot org
  2003-09-18  9:59 ` reichelt at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-15  1:28 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12256


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2003-09-15 00:42:45
               date|                            |
            Summary|virtual memory exhausted:   |[3.4 Regression] virtual
                   |Invalid argument            |memory exhausted: Invalid
                   |                            |argument
   Target Milestone|---                         |3.4


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-09-15 00:42 -------
Looks like something is not being zeroed.
#3  0x084211d5 in optimize_inline_calls (fn=0x4015957c) at /home/gates/pinskia/src/
gnu/gcc/src/gcc/tree-inline.c:1626
1626          tree ifn = make_tree_vec (VARRAY_ACTIVE_SIZE (id.inlined_fns));
(gdb) p id.inlined_fns
$4 = 0x40824600
(gdb) p *id.inlined_fns
$5 = {num_elements = 2779096485, elements_used = 2779096485, type = 
2779096485, name = 0xa5a5a5a5 <Address 0xa5a5a5a5 out of bounds>, 
  data = {c = "?", uc = "?", s = {-23131}, us = {42405}, i = {-1515870811}, u = 
{2779096485}, l = {-1515870811}, ul = {2779096485}, 
    hint = {-1515870811}, uhint = {2779096485}, generic = {0xa5a5a5a5}, cptr = 
{0xa5a5a5a5 <Address 0xa5a5a5a5 out of bounds>}, rtx = {
      0xa5a5a5a5}, rtvec = {0xa5a5a5a5}, tree = {0xa5a5a5a5}, bitmap = {0xa5a5a5a5}, 
reg = {0xa5a5a5a5}, const_equiv = {{
        rtx = 0xa5a5a5a5, age = 2779096485}}, bb = {0xa5a5a5a5}, te = {0xa5a5a5a5}}}

This is a callgraph problem:
#0  0x4202bb8a in exit () from /lib/i686/libc.so.6
#1  0x084012bc in ggc_alloc (size=43) at /home/gates/pinskia/src/gnu/gcc/src/gcc/ggc-
page.c:646
#2  0x083dd840 in make_tree_vec (len=-1515870811) at /home/gates/pinskia/src/gnu/
gcc/src/gcc/tree.c:571
#3  0x084211d5 in optimize_inline_calls (fn=0x4015957c) at /home/gates/pinskia/src/
gnu/gcc/src/gcc/tree-inline.c:1626
#4  0x08425879 in cgraph_optimize_function (node=0x4067bbd0) at /home/gates/
pinskia/src/gnu/gcc/src/gcc/cgraphunit.c:467
#5  0x084258a0 in cgraph_expand_function (node=0x4067bbd0) at /home/gates/
pinskia/src/gnu/gcc/src/gcc/cgraphunit.c:487
#6  0x08426772 in cgraph_assemble_pending_functions () at /home/gates/pinskia/src/
gnu/gcc/src/gcc/cgraphunit.c:141
#7  0x084270f5 in cgraph_finalize_function (decl=0x406b3d14, nested=false) at /home/
gates/pinskia/src/gnu/gcc/src/gcc/cgraphunit.c:217
#8  0x081377a5 in expand_or_defer_fn (fn=0x406b3d14) at /home/gates/pinskia/src/
gnu/gcc/src/gcc/cp/semantics.c:2943
#9  0x080faeee in cp_parser_function_definition_after_declarator (parser=0x40118980, 
inline_p=false)
    at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:13578
#10 0x080fafc9 in cp_parser_function_definition_from_specifiers_and_declarator 
(parser=0x40118980, decl_specifiers=0x4212dc80, 
    attributes=0x2b, declarator=0x2b) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/
parser.c:13517
#11 0x08101cd8 in cp_parser_init_declarator (parser=0x40118980, decl_specifiers=
0x401916e0, prefix_attributes=0x0, 
    function_definition_allowed_p=true, member_p=false, declares_class_or_enum=0, 
function_definition_p=0xbffec317)
    at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:9353
#12 0x08102062 in cp_parser_simple_declaration (parser=0x40118980, 
function_definition_allowed_p=true)
    at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:6150
#13 0x080fa048 in cp_parser_block_declaration (parser=0x40118980, statement_p=
false)
    at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:6066
#14 0x0810343f in cp_parser_declaration (parser=0x40118980) at /home/gates/pinskia/
src/gnu/gcc/src/gcc/cp/parser.c:5986
#15 0x081036ff in cp_parser_declaration_seq_opt (parser=0x40118980) at /home/
gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:5895
#16 0x081038a7 in c_parse_file () at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/
parser.c:2161
#17 0x0818c9bb in c_common_parse_file (set_yydebug=43) at /home/gates/pinskia/src/
gnu/gcc/src/gcc/c-opts.c:1210
#18 0x083d06b4 in toplev_main (argc=43, argv=0xbffec750) at /home/gates/pinskia/src/
gnu/gcc/src/gcc/toplev.c:1792
#19 0x081913cb in main (argc=43, argv=0x2b) at /home/gates/pinskia/src/gnu/gcc/src/
gcc/main.c:35


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/12256] [3.4 Regression] virtual memory exhausted: Invalid argument
  2003-09-11 22:27 [Bug c++/12256] New: virtual memory exhausted: Invalid argument stefaandr at hotmail dot com
                   ` (4 preceding siblings ...)
  2003-09-15  1:28 ` [Bug c++/12256] [3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2003-09-17 16:30 ` pinskia at gcc dot gnu dot org
  2003-09-18  9:59 ` reichelt at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-17 16:30 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12256


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-09-17 16:22 -------
This is a dup of bug 12316 which has a smaller test-case.

*** This bug has been marked as a duplicate of 12316 ***


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/12256] [3.4 Regression] virtual memory exhausted: Invalid argument
  2003-09-11 22:27 [Bug c++/12256] New: virtual memory exhausted: Invalid argument stefaandr at hotmail dot com
                   ` (5 preceding siblings ...)
  2003-09-17 16:30 ` pinskia at gcc dot gnu dot org
@ 2003-09-18  9:59 ` reichelt at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-09-18  9:59 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12256



------- Additional Comments From reichelt at gcc dot gnu dot org  2003-09-18 08:10 -------
Confirmed fixed with Richard's patch for PR 12316.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-09-18  8:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-11 22:27 [Bug c++/12256] New: virtual memory exhausted: Invalid argument stefaandr at hotmail dot com
2003-09-11 22:28 ` [Bug c++/12256] " stefaandr at hotmail dot com
2003-09-11 22:45 ` bangerth at dealii dot org
2003-09-11 23:32 ` pinskia at gcc dot gnu dot org
2003-09-13 17:42 ` raimond_merkert at raytheon dot com
2003-09-15  1:28 ` [Bug c++/12256] [3.4 Regression] " pinskia at gcc dot gnu dot org
2003-09-17 16:30 ` pinskia at gcc dot gnu dot org
2003-09-18  9:59 ` reichelt at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).