public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31538]  New: result_in_spec_1.f90: Invalid write
@ 2007-04-11 15:08 burnus at gcc dot gnu dot org
  2007-04-11 19:26 ` [Bug fortran/31538] " burnus at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-04-11 15:08 UTC (permalink / raw)
  To: gcc-bugs

The line 23 of gfortran.dg/result_in_spec_1.f90 (PR 31215) contains
      r(:)(i:i) = achar(mod(i,32)+iachar('@'))

With glibc's MALLOC_CHECK_=2 the program simply segfaults.

Running the test case using valgrind gives the following error:

==12576== Invalid write of size 1
==12576==    at 0x4C23DD7: memmove (in
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==12576==    by 0x400ACF: __test1__test2 (result_in_spec_1.f90:23)
==12576==    by 0x4011D1: myfunc.1445 (result_in_spec_1.f90:42)
==12576==    by 0x400E9B: MAIN__ (result_in_spec_1.f90:35)
==12576==    by 0x4014EB: main (fmain.c:22)
==12576==  Address 0x404E8BE is 0 bytes after a block of size 6 alloc'd
==12576==    at 0x4C22D06: malloc (in
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==12576==    by 0x4E3ED38: _gfortrani_get_mem (memory.c:53)
==12576==    by 0x40119F: myfunc.1445 (result_in_spec_1.f90:42)
==12576==    by 0x400E9B: MAIN__ (result_in_spec_1.f90:35)
==12576==    by 0x4014EB: main (fmain.c:22)


-- 
           Summary: result_in_spec_1.f90: Invalid write
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


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

end of thread, other threads:[~2010-04-17 22:22 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-11 15:08 [Bug fortran/31538] New: result_in_spec_1.f90: Invalid write burnus at gcc dot gnu dot org
2007-04-11 19:26 ` [Bug fortran/31538] " burnus at gcc dot gnu dot org
2007-04-11 20:05 ` paulthomas2 at wanadoo dot fr
2007-04-11 21:48 ` pault at gcc dot gnu dot org
2007-04-11 21:53 ` [Bug fortran/31538] misleading bounds check error pault at gcc dot gnu dot org
2007-08-10  9:43 ` burnus at gcc dot gnu dot org
2010-04-16 16:05 ` kargl at gcc dot gnu dot org
2010-04-16 16:14 ` kargl at gcc dot gnu dot org
2010-04-16 17:25 ` burnus at gcc dot gnu dot org
2010-04-16 17:39 ` dominiq at lps dot ens dot fr
2010-04-16 18:26 ` kargl at gcc dot gnu dot org
2010-04-17 21:06 ` kargl at gcc dot gnu dot org
2010-04-17 22:13 ` kargl at gcc dot gnu dot org
2010-04-17 22:22 ` kargl 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).