public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/36132]  New: [4.4 Regression] issue with _gfortran_internal_pack
@ 2008-05-05 13:25 jv244 at cam dot ac dot uk
  2008-05-05 13:25 ` [Bug fortran/36132] " jv244 at cam dot ac dot uk
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: jv244 at cam dot ac dot uk @ 2008-05-05 13:25 UTC (permalink / raw)
  To: gcc-bugs

the following testcase, derived from CP2K, illustrates an issue with
_gfortran_internal_pack. In CP2K this causes crashes such as:

Operating system error: Cannot allocate memory
Memory allocation failed

while this testcase shows under valgrind:

> gfortran -g -O0 test.f90

> valgrind --tool=memcheck ./a.out
==21339== Memcheck, a memory error detector.
==21339== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==21339== Using LibVEX rev 1732, a library for dynamic binary translation.
==21339== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==21339== Using valgrind-3.2.3, a dynamic binary instrumentation framework.
==21339== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==21339== For more details, rerun with: -v
==21339==
==21339== Conditional jump or move depends on uninitialised value(s)
==21339==    at 0x4BF449B: _gfortran_internal_pack (in_pack_generic.c:56)
==21339==    by 0x4008BC: __m1_MOD_s2 (test.f90:12)
==21339==    by 0x400967: MAIN__ (test.f90:17)
==21339==    by 0x40099B: main (fmain.c:21)
==21339==
==21339== Conditional jump or move depends on uninitialised value(s)
==21339==    at 0x4008FA: __m1_MOD_s2 (test.f90:12)
==21339==    by 0x400967: MAIN__ (test.f90:17)
==21339==    by 0x40099B: main (fmain.c:21)


-- 
           Summary: [4.4 Regression] issue with _gfortran_internal_pack
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk
OtherBugsDependingO 29975
             nThis:


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


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

end of thread, other threads:[~2008-07-27 11:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-05 13:25 [Bug fortran/36132] New: [4.4 Regression] issue with _gfortran_internal_pack jv244 at cam dot ac dot uk
2008-05-05 13:25 ` [Bug fortran/36132] " jv244 at cam dot ac dot uk
2008-05-05 13:46 ` burnus at gcc dot gnu dot org
2008-05-05 15:29 ` [Bug fortran/36132] " jv244 at cam dot ac dot uk
2008-05-05 18:58 ` [Bug fortran/36132] _gfortran_internal_pack on optional arguments tkoenig at gcc dot gnu dot org
2008-05-20  6:46 ` jv244 at cam dot ac dot uk
2008-05-20 15:19 ` fxcoudert at gcc dot gnu dot org
2008-06-15 15:14 ` fxcoudert at gcc dot gnu dot org
2008-06-16 18:09 ` burnus at gcc dot gnu dot org
2008-07-25 10:20 ` jv244 at cam dot ac dot uk
2008-07-27 10:47 ` burnus at gcc dot gnu dot org
2008-07-27 11:43 ` burnus at gcc dot gnu dot org
2008-07-27 11:47 ` burnus 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).