public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/59678] New: Segmentation fault on equalizing variables of a complex derived data type
@ 2014-01-04 23:38 talebi.hossein at gmail dot com
  2014-01-05 12:53 ` [Bug fortran/59678] " talebi.hossein at gmail dot com
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: talebi.hossein at gmail dot com @ 2014-01-04 23:38 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59678
           Summary: Segmentation fault on equalizing variables of a
                    complex derived data type
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: talebi.hossein at gmail dot com

Hi,

Unfortunetely I could not repeat this with a simpler test example. So this code
below runs fine with Intel compiler but fails with Gfortan. The is the main
file can be replaced in my code from here:

http://sourceforge.net/p/permix/git_pub/ci/master/tree/ 
The minimalitsic serial version can be compiled with 'make minimal_serial'.


program permix

   use permix_cmd_handling_mod
   use prx_class, only: ty_prx
   implicit none

   ! ty_prx is a complex derived data type
   type(ty_prx) :: prx, prx2


   ! initializing prx
   Call prx_init(prx,0,'mylog')

   ! running a simulation with giving an input
   call prx%input%job('../verif/Test1/linearelastic_nonsolver.prx ')

   ! prininting a part of the data
   print *,prx%parts%parts_fem(1)%OBJ%femmesh%X

   prx2=prx ! ERROR: Segmentation fault occurs here

end program permix



Here is the definition of ty_prx:

    type :: ty_prx
        character(200)                     :: title
        logical                            :: isInit=.false.
        integer                            :: revision=1183
        type(ty_input)                     :: input
        type(ty_part)                      :: parts
        type(ty_interaction)               :: interactions
        type(ty_define)                    :: define
        type(ty_analysis)                  :: analysis
        type(ty_modify)                    :: modify
        type(ty_initial_condition)         :: initial_conditions
        type(ty_solver)                    :: solver
        type(ty_output)                    :: output
        type(ty_tools)                     :: tools
        type(ty_restart)                   :: restart
        type(ty_timer)                     :: timer
        type(ty_universe)                  :: universe
        type(ty_error)                     :: error
        type(ty_prx_pointers)              :: pointers

        contains
            !procedure :: init      => prx_init
            procedure :: finalize  => prx_finalize  ! 
    end type ty_prx


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

end of thread, other threads:[~2015-10-18 15:01 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-04 23:38 [Bug fortran/59678] New: Segmentation fault on equalizing variables of a complex derived data type talebi.hossein at gmail dot com
2014-01-05 12:53 ` [Bug fortran/59678] " talebi.hossein at gmail dot com
2014-01-05 13:17 ` janus at gcc dot gnu.org
2014-01-05 14:30 ` talebi.hossein at gmail dot com
2014-01-05 15:45 ` dominiq at lps dot ens.fr
2014-01-05 17:32 ` talebi.hossein at gmail dot com
2014-01-05 20:18 ` dominiq at lps dot ens.fr
2014-01-05 20:25 ` talebi.hossein at gmail dot com
2014-01-12 20:14 ` talebi.hossein at gmail dot com
2014-01-12 20:19 ` talebi.hossein at gmail dot com
2014-01-12 20:43 ` [Bug fortran/59678] [F03] Segfault on equalizing variables of a complex derived type janus at gcc dot gnu.org
2014-01-12 20:44 ` dominiq at lps dot ens.fr
2014-01-12 20:46 ` dominiq at lps dot ens.fr
2014-01-12 20:54 ` janus at gcc dot gnu.org
2014-04-20 19:52 ` talebi.hossein at gmail dot com
2015-04-18 11:31 ` vehre at gcc dot gnu.org
2015-04-27 17:34 ` vehre at gcc dot gnu.org
2015-05-05  9:03 ` vehre at gcc dot gnu.org
2015-05-05 23:06 ` talebi.hossein at gmail dot com
2015-05-06  8:09 ` vehre at gcc dot gnu.org
2015-10-18 15:01 ` mikael at gcc dot gnu.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).