public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/49623] New: Segfault of "gfortran -L" if no argument follows the "-L"
@ 2011-07-04  6:30 burnus at gcc dot gnu.org
  2011-07-04  7:23 ` [Bug fortran/49623] " jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-07-04  6:30 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Segfault of "gfortran -L" if no argument follows the
                    "-L"
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org


While it works for the C driver:

$ gcc foo.c -L
gcc: error: missing argument to ‘-L’

the Fortran driver segfaults when there is no argument following the "-L"
argument:

$ gfortran foo.f90 -L
Segmentation fault


Valgrind shows:

==18481== Invalid read of size 1
==18481==    at 0x4A06D82: strlen (mc_replace_strmem.c:275)
==18481==    by 0x40E8BE: lang_specific_driver (gfortranspec.c:95)
==18481==    by 0x405EBF: process_command (gcc.c:3637)
==18481==    by 0x40B455: main (gcc.c:6263)
==18481==  Address 0x0 is not stack'd, malloc'd or (recently) free'd


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

end of thread, other threads:[~2011-07-04 21:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-04  6:30 [Bug fortran/49623] New: Segfault of "gfortran -L" if no argument follows the "-L" burnus at gcc dot gnu.org
2011-07-04  7:23 ` [Bug fortran/49623] " jakub at gcc dot gnu.org
2011-07-04 11:05 ` joseph at codesourcery dot com
2011-07-04 21:13 ` jakub at gcc dot gnu.org
2011-07-04 21:14 ` jakub at gcc dot gnu.org
2011-07-04 21:15 ` jakub 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).