public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/50524] New: *** glibc detected *** invalid free() pointer on illegal code  (r178939)
@ 2011-09-26 10:17 zeccav at gmail dot com
  2011-09-26 17:08 ` [Bug fortran/50524] " kargl at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: zeccav at gmail dot com @ 2011-09-26 10:17 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50524
           Summary: *** glibc detected *** invalid free() pointer on
                    illegal code  (r178939)
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zeccav@gmail.com


!*** glibc detected *** invalid free() pointer on illegal code  (r178939)
!*/home/vitti/gcc-trunk/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/f951:
!*free(): invalid pointer: 0x0000000000000001 ***
! before compilation must export MALLOC_CHECK_=1
      print *,'qwe'(1:1e0)
      end


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

* [Bug fortran/50524] *** glibc detected *** invalid free() pointer on illegal code  (r178939)
  2011-09-26 10:17 [Bug fortran/50524] New: *** glibc detected *** invalid free() pointer on illegal code (r178939) zeccav at gmail dot com
@ 2011-09-26 17:08 ` kargl at gcc dot gnu.org
  2011-10-20 17:15 ` kargl at gcc dot gnu.org
  2011-10-20 17:28 ` kargl at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: kargl at gcc dot gnu.org @ 2011-09-26 17:08 UTC (permalink / raw)
  To: gcc-bugs

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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org

--- Comment #1 from kargl at gcc dot gnu.org 2011-09-26 16:45:25 UTC ---
Here's a patch.

Index: resolve.c
===================================================================
--- resolve.c    (revision 179023)
+++ resolve.c    (working copy)
@@ -4836,7 +4837,8 @@ resolve_ref (gfc_expr *expr)
     break;

       case REF_SUBSTRING:
-    resolve_substring (ref);
+    if (resolve_substring (ref) == FAILURE)
+      return FAILURE;
     break;
       }


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

* [Bug fortran/50524] *** glibc detected *** invalid free() pointer on illegal code  (r178939)
  2011-09-26 10:17 [Bug fortran/50524] New: *** glibc detected *** invalid free() pointer on illegal code (r178939) zeccav at gmail dot com
  2011-09-26 17:08 ` [Bug fortran/50524] " kargl at gcc dot gnu.org
@ 2011-10-20 17:15 ` kargl at gcc dot gnu.org
  2011-10-20 17:28 ` kargl at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: kargl at gcc dot gnu.org @ 2011-10-20 17:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from kargl at gcc dot gnu.org 2011-10-20 17:15:23 UTC ---
Author: kargl
Date: Thu Oct 20 17:15:06 2011
New Revision: 180262

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180262
Log:
2011-10-15  Steven G. Kargl  <kargl@gcc.gcu.org>

    PR fortran/50524
    * resolve.c (resolve_ref): Check return value of resolve_substring().

2011-10-15  Steven G. Kargl  <kargl@gcc.gcu.org>

    PR fortran/50524
    * gfortran.dg/substring_integer_index.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/substring_integer_index.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug fortran/50524] *** glibc detected *** invalid free() pointer on illegal code  (r178939)
  2011-09-26 10:17 [Bug fortran/50524] New: *** glibc detected *** invalid free() pointer on illegal code (r178939) zeccav at gmail dot com
  2011-09-26 17:08 ` [Bug fortran/50524] " kargl at gcc dot gnu.org
  2011-10-20 17:15 ` kargl at gcc dot gnu.org
@ 2011-10-20 17:28 ` kargl at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: kargl at gcc dot gnu.org @ 2011-10-20 17:28 UTC (permalink / raw)
  To: gcc-bugs

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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from kargl at gcc dot gnu.org 2011-10-20 17:28:19 UTC ---
Fixed on trunk.  Thanks for the report.


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

end of thread, other threads:[~2011-10-20 17:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-26 10:17 [Bug fortran/50524] New: *** glibc detected *** invalid free() pointer on illegal code (r178939) zeccav at gmail dot com
2011-09-26 17:08 ` [Bug fortran/50524] " kargl at gcc dot gnu.org
2011-10-20 17:15 ` kargl at gcc dot gnu.org
2011-10-20 17:28 ` kargl 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).