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 fortran/16487] gfortran core dump on big array


------- Additional Comments From tobi at gcc dot gnu dot org  2004-07-12 15:14 -------
Cores with -O2.
[tobi@marktplatz tests]$ ~/src/gcc/build-clean/gcc/f951 pr16487.f90
 
Execution times (seconds)
 parser                :   0.10 (37%) usr   0.04 (80%) sys   0.21 (22%) wall
 varconst              :   0.14 (52%) usr   0.00 ( 0%) sys   0.18 (19%) wall
 TOTAL                 :   0.27             0.05             0.96
Extra diagnostic checks enabled; compiler may run slowly.
Configure with --disable-checking to disable checks.
[tobi@marktplatz tests]$ ~/src/gcc/build-clean/gcc/f951 pr16487.f90 -O2
 
Analyzing compilation unit
 {GC 7008k -> Segmentation fault
[tobi@marktplatz tests]$

This is indeed a stack size issue:
[tobi@marktplatz tests]$ ulimit -s 12000
[tobi@marktplatz tests]$ ~/src/gcc/build-clean/gcc/f951 pr16487.f90 -O2
 
Analyzing compilation unit
 {GC 7008k -> 6934k}Performing intraprocedural optimizations
Assembling functions:
 
Execution times (seconds)
 garbage collection    :   0.22 (44%) usr   0.04 (57%) sys   0.32 (46%) wall
 parser                :   0.25 (50%) usr   0.03 (43%) sys   0.27 (39%) wall
 symout                :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.04 ( 6%) wall
 TOTAL                 :   0.50             0.07             0.69
Extra diagnostic checks enabled; compiler may run slowly.
Configure with --disable-checking to disable checks.
[tobi@marktplatz tests]$ ulimit -s 10000
[tobi@marktplatz tests]$ ~/src/gcc/build-clean/gcc/f951 pr16487.f90 -O2
 
Analyzing compilation unit
 {GC 7008k -> Segmentation fault
[tobi@marktplatz tests]$

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-07-12 15:14:51
               date|                            |


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


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