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/81411] intrinsic polymorphic assignment run time error


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81411

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-07-26
                 CC|                            |pault at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed for gfortran supporting "Assignment to an allocatable polymorphic
variable", i.e., 7 and trunk. Compiling the test with an instrumented compiler
gives at run time

  calling display subroutine
ASAN:DEADLYSIGNAL
=================================================================
==6560==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc
0x000103b42b44 bp 0x7fff5c0bdf40 sp 0x7fff5c0bdf00 T0)
==6560==The signal is caused by a READ memory access.
==6560==Hint: address points to the zero page.
    #0 0x103b42b43 in __display_module_MOD_display
(/Users/dominiq/Documents/Fortran/g95bench/win/f90/bug/./a.out+0x100001b43)
    #1 0x103b42d46 in MAIN__
(/Users/dominiq/Documents/Fortran/g95bench/win/f90/bug/./a.out+0x100001d46)
    #2 0x103b43916 in main
(/Users/dominiq/Documents/Fortran/g95bench/win/f90/bug/./a.out+0x100002916)
    #3 0x7fff9e181234 in start (/usr/lib/system/libdyld.dylib+0x5234)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV
(/Users/dominiq/Documents/Fortran/g95bench/win/f90/bug/./a.out+0x100001b43) in
__display_module_MOD_display
==6560==ABORTING

Program received signal SIGABRT: Process abort signal.

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