public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/17588] New: segfault  with multiply included module with uninitialized vector
@ 2004-09-21 17:00 c dot lemmen at fz-juelich dot de
  2004-09-21 17:03 ` [Bug fortran/17588] " c dot lemmen at fz-juelich dot de
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: c dot lemmen at fz-juelich dot de @ 2004-09-21 17:00 UTC (permalink / raw)
  To: gcc-bugs

The following and attached code produces a segmentation fault, every further
reduction resolved the problem. Code compiles fine with g95, pgf, nag, xlf

> gfortran -c inc_mod_definition.f90 && gfortran -c inc_mod_function.f90 &&
gfortran testcase_doubleincludedmodule.f90

Driving: gfortran -v -da -Q testcase_doubleincludedmodule.f90 -lgfortranbegin
-lgfortran -lm -shared-libgcc
Reading specs from /private/icg126/opt/lib/gcc/i686-pc-linux-gnu/4.0.0/specs
Configured with: ./configure --prefix=/private/icg126/opt --enable-languages=f95
--enable-checking : (reconfigured) ./configure --prefix=/private/icg126/opt
--enable-languages=f95 --enable-checking
Thread model: posix
gcc version 4.0.0 20040921 (experimental)
 /private/icg126/opt/libexec/gcc/i686-pc-linux-gnu/4.0.0/f951
testcase_doubleincludedmodule.f90 -dumpbase testcase_doubleincludedmodule.f90
-da -mtune=pentiumpro -auxbase testcase_doubleincludedmodule -version -o
/tmp/ccoJeXiL.s
GNU F95 version 4.0.0 20040921 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 3.4.2.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
options passed:  -mtune=pentiumpro -auxbase
options enabled:  -falign-loops -fargument-noalias-global
 -fbranch-count-reg -fcommon -feliminate-unused-debug-types -ffunction-cse
 -fgcse-las -fgcse-lm -fgcse-sm -fident -fivopts -fkeep-static-consts
 -fleading-underscore -floop-optimize2 -fmath-errno -fpcc-struct-return
 -fpeephole -fsched-interblock -fsched-spec -fsched-stalled-insns-dep
 -fsplit-ivs-in-unroller -ftrapping-math -ftree-loop-im
 -ftree-loop-optimize -fvar-tracking -fweb -fzero-initialized-in-bss
 -m80387 -mhard-float -mno-soft-float -mieee-fp -mfp-ret-in-387
 -maccumulate-outgoing-args -mno-red-zone -mtls-direct-seg-refs
 -mtune=pentiumpro -march=i386
testcase_doubleincludedmodule.f90:0: internal compiler error: Segmentation fault

!--------------------------- following sources ---------------------
MODULE inc_mod_definition

  INTEGER :: some_integer

END MODULE inc_mod_definition

!----------------------

MODULE  inc_mod_function
CONTAINS

SUBROUTINE some_function (real_vector)

   USE inc_mod_definition

   REAL   :: real_vector(some_integer)

 END SUBROUTINE SOME_FUNCTION

END MODULE inc_mod_function

!----------------------
PROGRAM testcase_doubleincludedmodule

   USE inc_mod_definition
   USE inc_mod_function

END PROGRAM testcase_doubleincludedmodule

!------------------------ END sources --------------------------------

-- 
           Summary: segfault  with multiply included module with
                    uninitialized vector
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: c dot lemmen at fz-juelich dot de
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-linux-gnu


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


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

* [Bug fortran/17588] segfault  with multiply included module with uninitialized vector
  2004-09-21 17:00 [Bug fortran/17588] New: segfault with multiply included module with uninitialized vector c dot lemmen at fz-juelich dot de
@ 2004-09-21 17:03 ` c dot lemmen at fz-juelich dot de
  2004-09-23 20:21 ` toon at moene dot indiv dot nluug dot nl
  2004-09-27 15:48 ` tobi at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: c dot lemmen at fz-juelich dot de @ 2004-09-21 17:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From c dot lemmen at fz-juelich dot de  2004-09-21 17:03 -------
Created an attachment (id=7184)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7184&action=view)
tarzipped sources (3 fortran .f90 + README)


-- 


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


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

* [Bug fortran/17588] segfault  with multiply included module with uninitialized vector
  2004-09-21 17:00 [Bug fortran/17588] New: segfault with multiply included module with uninitialized vector c dot lemmen at fz-juelich dot de
  2004-09-21 17:03 ` [Bug fortran/17588] " c dot lemmen at fz-juelich dot de
@ 2004-09-23 20:21 ` toon at moene dot indiv dot nluug dot nl
  2004-09-27 15:48 ` tobi at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: toon at moene dot indiv dot nluug dot nl @ 2004-09-23 20:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From toon at moene dot indiv dot nluug dot nl  2004-09-23 20:21 -------
Also crashes on powerpc-unknown-linux-gnu ("testing" Debian up to date to
Saterday 9:00 UTC).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   GCC host triplet|i686-linux-gnu              |
   Last reconfirmed|0000-00-00 00:00:00         |2004-09-23 20:21:23
               date|                            |


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


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

* [Bug fortran/17588] segfault  with multiply included module with uninitialized vector
  2004-09-21 17:00 [Bug fortran/17588] New: segfault with multiply included module with uninitialized vector c dot lemmen at fz-juelich dot de
  2004-09-21 17:03 ` [Bug fortran/17588] " c dot lemmen at fz-juelich dot de
  2004-09-23 20:21 ` toon at moene dot indiv dot nluug dot nl
@ 2004-09-27 15:48 ` tobi at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-09-27 15:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2004-09-27 15:48 -------


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

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


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


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

end of thread, other threads:[~2004-09-27 15:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-21 17:00 [Bug fortran/17588] New: segfault with multiply included module with uninitialized vector c dot lemmen at fz-juelich dot de
2004-09-21 17:03 ` [Bug fortran/17588] " c dot lemmen at fz-juelich dot de
2004-09-23 20:21 ` toon at moene dot indiv dot nluug dot nl
2004-09-27 15:48 ` tobi 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).