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/36276] [4.3/4.4 Regression] possible issue with opening fortran files?



------- Comment #6 from burnus at gcc dot gnu dot org  2008-06-14 17:00 -------
For completeness, the line was added by
  r128676 | fxcoudert | 2007-09-23 01:48:02 +0200 (So, 23. Sep 2007) | 5 lines
         PR fortran/33528

The invalid read happens for linemap_add's "to_file". Above the function there
is the note:

   The text pointed to by TO_FILE must have a lifetime
   at least as long as the final call to lookup_line ().

My feeling is that current_file->filename is freed too early.

FX, do you have an idea?


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org


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


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