public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/19082] New: [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes
@ 2004-12-19 18:09 danglin at gcc dot gnu dot org
  2004-12-19 19:55 ` [Bug other/19082] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: danglin at gcc dot gnu dot org @ 2004-12-19 18:09 UTC (permalink / raw)
  To: gcc-bugs

In stage 1,
...
gcc -c   -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC   -W -Wall -Wwri
te-strings -Wstrict-prototypes -Wmissing-prototypes  -fno-common   -DHAVE_CONFIG
_H -DGENERATOR_FILE    -I. -Ibuild -I../../gcc/gcc -I../../gcc/gcc/build -I../..
/gcc/gcc/../include -I./../intl -I../../gcc/gcc/../libcpp/include  \
 -o build/varray.o ../../gcc/gcc/varray.c
gcc   -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC   -W -Wall -Wwrite-
strings -Wstrict-prototypes -Wmissing-prototypes  -fno-common   -DHAVE_CONFIG_H
-DGENERATOR_FILE  -o build/genattrtab \
 build/genattrtab.o build/genautomata.o \
 build/rtl.o build/read-rtl.o build/ggc-none.o build/min-insn-modes.o build/gens
upport.o build/insn-conditions.o build/print-rtl.o build/errors.o \
 build/varray.o ../build-powerpc-ibm-aix4.3.3.0/libiberty/libiberty.a -lm
build/genattrtab ../../gcc/gcc/config/rs6000/rs6000.md > tmp-attrtab.c

out of memory allocating 222496 bytes after a total of 4161584284 bytes
make[2]: *** [s-attrtab] Error 1

The configure command was:

../gcc/configure --enable-shared --enable-static --disable-multilib --prefix=/ho
me/dave/opt/gnu/gcc/gcc-4.0.0 &&

The regression was introduced by the following change:

2004-11-10  David Edelsohn  <edelsohn@gnu.org>

        * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
        Change multi-instruction sequences to new attribute.
        * config/rs6000/{40x.md,440.md,603.md,6xx.md,
        7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
        rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.

-- 
           Summary: [4.0 Regression] build/genattrtab: out of memory
                    allocating 151568 bytes after a total of 4161651196
                    bytes
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-ibm-aix4.3.3.0
  GCC host triplet: powerpc-ibm-aix4.3.3.0
GCC target triplet: powerpc-ibm-aix4.3.3.0


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


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

* [Bug other/19082] [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes
  2004-12-19 18:09 [Bug target/19082] New: [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes danglin at gcc dot gnu dot org
@ 2004-12-19 19:55 ` pinskia at gcc dot gnu dot org
  2004-12-20 15:29 ` segher at kernel dot crashing dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-19 19:55 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
          Component|target                      |other
           Keywords|                            |build, ice-on-valid-code
   Target Milestone|---                         |4.0.0


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


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

* [Bug other/19082] [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes
  2004-12-19 18:09 [Bug target/19082] New: [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes danglin at gcc dot gnu dot org
  2004-12-19 19:55 ` [Bug other/19082] " pinskia at gcc dot gnu dot org
@ 2004-12-20 15:29 ` segher at kernel dot crashing dot org
  2004-12-20 23:11 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: segher at kernel dot crashing dot org @ 2004-12-20 15:29 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |segher at kernel dot
                   |                            |crashing dot org


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


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

* [Bug other/19082] [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes
  2004-12-19 18:09 [Bug target/19082] New: [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes danglin at gcc dot gnu dot org
  2004-12-19 19:55 ` [Bug other/19082] " pinskia at gcc dot gnu dot org
  2004-12-20 15:29 ` segher at kernel dot crashing dot org
@ 2004-12-20 23:11 ` pinskia at gcc dot gnu dot org
  2004-12-23  1:54 ` dje at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-20 23:11 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-valid-code           |


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


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

* [Bug other/19082] [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes
  2004-12-19 18:09 [Bug target/19082] New: [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes danglin at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-12-20 23:11 ` pinskia at gcc dot gnu dot org
@ 2004-12-23  1:54 ` dje at gcc dot gnu dot org
  2004-12-23  2:16 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: dje at gcc dot gnu dot org @ 2004-12-23  1:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dje at gcc dot gnu dot org  2004-12-23 01:54 -------
what release of gcc is used for bootstrap?
what are hard and soft limits, includig limits set in /etc/security?

-- 


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


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

* [Bug other/19082] [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes
  2004-12-19 18:09 [Bug target/19082] New: [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes danglin at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-12-23  1:54 ` dje at gcc dot gnu dot org
@ 2004-12-23  2:16 ` dave at hiauly1 dot hia dot nrc dot ca
  2004-12-23 19:55 ` dje at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2004-12-23  2:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2004-12-23 02:16 -------
Subject: Re:  [4.0 Regression] build/genattrtab: out of memor

> ------- Additional Comments From dje at gcc dot gnu dot org  2004-12-23
> 01:54 -------
> what release of gcc is used for bootstrap?

Tried 3.3.2 and 3.4.3.

> what are hard and soft limits, includig limits set in /etc/security?

bash-2.05b$ ulimit -a
core file size        (blocks, -c) unlimited
data seg size         (kbytes, -d) 131072
file size             (blocks, -f) unlimited
max memory size       (kbytes, -m) 32768
open files                    (-n) 2000
pipe size          (512 bytes, -p) 64
stack size            (kbytes, -s) 32768
cpu time             (seconds, -t) unlimited
max user processes            (-u) 128
virtual memory        (kbytes, -v) unlimited

Regarding /etc/security, I would have to ask.

Dave


-- 


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


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

* [Bug other/19082] [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes
  2004-12-19 18:09 [Bug target/19082] New: [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes danglin at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-12-23  2:16 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2004-12-23 19:55 ` dje at gcc dot gnu dot org
  2004-12-24  4:24 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: dje at gcc dot gnu dot org @ 2004-12-23 19:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dje at gcc dot gnu dot org  2004-12-23 19:55 -------
Do you have the environment variable PSALLOC set on in the process building GCC?

I build on AIX systems with data, stack, and memory size unlimited, 2GB memory,
PSALLOC unset.

If running stage1 genattrtab compiled without optimization requires more memory,
then it requires more memory.  The value reported seems quite large, but the
scheduling change would not cause a huge increase.

IA-64 builds have failed for me due to memory building its automata.  Building
GCC requires a lot of memory for some steps.  Some targets require a lot of
system resources for a complete bootstrap.

This PR appears to be a process resources issue, not a bug in mainline GCC.  GCC
3.3 and 3.4 could be doing something strange with memory usage or the build
could be interacting with AIX 4.3.3 malloc in a strange way.

I do not understand what type of solution you are expecting.

-- 


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


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

* [Bug other/19082] [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes
  2004-12-19 18:09 [Bug target/19082] New: [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes danglin at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-12-23 19:55 ` dje at gcc dot gnu dot org
@ 2004-12-24  4:24 ` dave at hiauly1 dot hia dot nrc dot ca
  2004-12-24  5:00 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2004-12-24  4:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2004-12-24 04:24 -------
Subject: Re:  [4.0 Regression] build/genattrtab: out of memor

> If running stage1 genattrtab compiled without optimization requires more
> memory,
> then it requires more memory.  The value reported seems quite large, but the
> scheduling change would not cause a huge increase.

out of memory allocating 222496 bytes after a total of 4161584284 bytes
make[2]: *** [s-attrtab] Error 1

If the value reported is correct, then there is clearly a problem as
we are reaching the limit of addressibility.  I'll explore further but
it won't be until after Christmas.  At this point, I don't know the
cause.  However, reverting the scheduling change allows genattrtab to
complete successfully.

PSALLOC isn't set.

Dave


-- 


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


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

* [Bug other/19082] [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes
  2004-12-19 18:09 [Bug target/19082] New: [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes danglin at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2004-12-24  4:24 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2004-12-24  5:00 ` dave at hiauly1 dot hia dot nrc dot ca
  2004-12-24 23:41 ` danglin at gcc dot gnu dot org
  2005-02-08 21:10 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2004-12-24  5:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2004-12-24 05:00 -------
Subject: Re:  [4.0 Regression] build/genattrtab: out of memor

> If running stage1 genattrtab compiled without optimization requires more
> memory,
> then it requires more memory.  The value reported seems quite large, but the
> scheduling change would not cause a huge increase.

genattrtab runs successfully with the following limits:

ginyu% ulimit -a
cpu time (seconds)         unlimited
file size (blocks)         unlimited
data seg size (kbytes)     unlimited
stack size (kbytes)        131072
core file size (blocks)    unlimited
resident set size (kbytes) unlimited
virtual memory size (kb)   unlimited
file descriptors           2000

Thanks,
Dave


-- 


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


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

* [Bug other/19082] [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes
  2004-12-19 18:09 [Bug target/19082] New: [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes danglin at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2004-12-24  5:00 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2004-12-24 23:41 ` danglin at gcc dot gnu dot org
  2005-02-08 21:10 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: danglin at gcc dot gnu dot org @ 2004-12-24 23:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From danglin at gcc dot gnu dot org  2004-12-24 23:41 -------
Resolved


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME


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


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

* [Bug other/19082] [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes
  2004-12-19 18:09 [Bug target/19082] New: [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes danglin at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2004-12-24 23:41 ` danglin at gcc dot gnu dot org
@ 2005-02-08 21:10 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-08 21:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-08 15:13 -------
*** Bug 19824 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hundertmarck at boehme-weihs
                   |                            |dot de


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


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

end of thread, other threads:[~2005-02-08 15:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-19 18:09 [Bug target/19082] New: [4.0 Regression] build/genattrtab: out of memory allocating 151568 bytes after a total of 4161651196 bytes danglin at gcc dot gnu dot org
2004-12-19 19:55 ` [Bug other/19082] " pinskia at gcc dot gnu dot org
2004-12-20 15:29 ` segher at kernel dot crashing dot org
2004-12-20 23:11 ` pinskia at gcc dot gnu dot org
2004-12-23  1:54 ` dje at gcc dot gnu dot org
2004-12-23  2:16 ` dave at hiauly1 dot hia dot nrc dot ca
2004-12-23 19:55 ` dje at gcc dot gnu dot org
2004-12-24  4:24 ` dave at hiauly1 dot hia dot nrc dot ca
2004-12-24  5:00 ` dave at hiauly1 dot hia dot nrc dot ca
2004-12-24 23:41 ` danglin at gcc dot gnu dot org
2005-02-08 21:10 ` pinskia 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).