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/61337] Wrong indexing and runtime crash with unlimited polymorphic array.


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

--- Comment #4 from graham.stott at btinternet dot com ---
<div>-------- Original message --------</div><div>From: "vladimir.fuka at gmail
dot com" <gcc-bugzilla@gcc.gnu.org> </div><div>Date:02/09/2015  14:55 
(GMT+00:00) </div><div>To: gcc-bugs@gcc.gnu.org </div><div>Subject: [Bug
fortran/61337] Wrong indexing and runtime crash with unlimited polymorphic
array. </div><div>
</div>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61337

--- Comment #3 from Vladimir Fuka <vladimir.fuka at gmail dot com> ---
The crash is at line 22:

allocate(a(size(tmp)+1)%items(size(e)), source = e)

ASAN:SIGSEGV
=================================================================
==5902==ERROR: AddressSanitizer: SEGV on unknown address 0x60c0c08ef6b0 (pc
0x0000004086ed bp 0x7ffec4dcc6b0 sp 0x7ffec4dcc490 T0)
    #0 0x4086ec in __array_list_MOD_add_item
/home/vf1r14/f/testy/stackoverflow/pr61337b.f90:22
    #1 0x408ff4 in MAIN__ /home/vf1r14/f/testy/stackoverflow/pr61337b.f90:35
    #2 0x4096d5 in main /home/vf1r14/f/testy/stackoverflow/pr61337b.f90:30
    #3 0x7f898a67eb04 in __libc_start_main (/lib64/libc.so.6+0x21b04)
    #4 0x400e38  (/home/vf1r14/f/testy/stackoverflow/a.out+0x400e38)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV
/home/vf1r14/f/testy/stackoverflow/pr61337b.f90:22 __array_list_MOD_add_item
==5902==ABORTING


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