Bug 743026 - gfortran type extends causes internal compiler error Segmentation fault
Summary: gfortran type extends causes internal compiler error Segmentation fault
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 15
Hardware: x86_64
OS: Linux
low
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-03 16:01 UTC by Karl
Modified: 2011-12-08 00:03 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-08 00:03:47 UTC
Type: ---


Attachments (Terms of Use)
Minimal working example of compiler-error-generating code (431 bytes, text/x-fortran)
2011-10-03 16:01 UTC, Karl
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 48706 0 None None None Never

Description Karl 2011-10-03 16:01:33 UTC
Created attachment 526091 [details]
Minimal working example of compiler-error-generating code

Description of problem:
The code attached (and similar constructs) produces an internal compiler error.

Version-Release number of selected component (if applicable):
GNU Fortran (GCC) 4.6.1 20110908 (Red Hat 4.6.1-9)

How reproducible:
Only seems to happen with a module procedure that extends the derived type inside the procedure body.

Steps to Reproduce:
Compile attached source code
  
Actual results:
f951: internal compiler error: Segmentation fault

Expected results:
Compiles normally (no messages)

Additional info:
Same source compiled with another Fortran compiler works without errors.

Comment 1 Aravind vijayan 2011-11-12 18:23:25 UTC
I try to compile the code get the same error:

 [   @   ]$ gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-redhat-linux/4.6.1/lto-wrapper
Target: i686-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch=i686 --build=i686-redhat-linux
Thread model: posix
gcc version 4.6.1 20110908 (Red Hat 4.6.1-9) (GCC) 


[    @    ]$ valgrind gfortran Downloads/type-extends.f90 
==2514== Memcheck, a memory error detector
==2514== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==2514== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==2514== Command: gfortran Downloads/type-extends.f90
==2514== 
f951: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
==2514== 
==2514== HEAP SUMMARY:
==2514==     in use at exit: 30,925 bytes in 81 blocks
==2514==   total heap usage: 195 allocs, 114 frees, 40,876 bytes allocated
==2514== 
==2514== LEAK SUMMARY:
==2514==    definitely lost: 5,142 bytes in 29 blocks
==2514==    indirectly lost: 43 bytes in 3 blocks
==2514==      possibly lost: 27 bytes in 2 blocks
==2514==    still reachable: 25,713 bytes in 47 blocks
==2514==         suppressed: 0 bytes in 0 blocks
==2514== Rerun with --leak-check=full to see details of leaked memory
==2514== 
==2514== For counts of detected and suppressed errors, rerun with: -v
==2514== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 12 from 8)







-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 2 Aravind vijayan 2011-12-08 00:03:47 UTC
Hi Karl,
       i think this bug is fixed in latest release, Would you please compile your code in: gcc version 4.6.2 20111027 (Red Hat 4.6.2-1) (GCC) ?                   Let me close this report as "CLOSED/ERRATA" .
  
 



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers


Note You need to log in before you can comment on or make changes to this bug.