public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/36157]  New: ICE in snapshot of 05/02/08 under FreeBSD i386 with IMPLICIT and function call
@ 2008-05-06 15:00 michael dot a dot richmond at nasa dot gov
  2008-05-12  8:00 ` [Bug fortran/36157] " fxcoudert at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2008-05-06 15:00 UTC (permalink / raw)
  To: gcc-bugs

The following subroutine produces a segfault when compiled with the 05/02/08
snapshot of gfortran 4.4.0 under FreeBSD i386. I believe it is related to Bugs
36139 and 36140. This test case is just like the first one in Bug 36139 except
that the PARAMETER statement is omitted.

SUBROUTINE mnbrak
IMPLICIT REAL(a-f)
f=func()
END SUBROUTINE mnbrak


-- 
           Summary: ICE in snapshot of 05/02/08 under FreeBSD i386 with
                    IMPLICIT and function call
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michael dot a dot richmond at nasa dot gov


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


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

* [Bug fortran/36157] ICE in snapshot of 05/02/08 under FreeBSD i386 with IMPLICIT and function call
  2008-05-06 15:00 [Bug fortran/36157] New: ICE in snapshot of 05/02/08 under FreeBSD i386 with IMPLICIT and function call michael dot a dot richmond at nasa dot gov
@ 2008-05-12  8:00 ` fxcoudert at gcc dot gnu dot org
  2008-05-12 11:41 ` michael dot a dot richmond at nasa dot gov
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2008-05-12  8:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from fxcoudert at gcc dot gnu dot org  2008-05-12 08:00 -------
Can you run it under gdb and provide a backtrace? To do this, follow these
steps:

1. Run "gdb -args ./libexec/gcc/x86_64-unknown-linux-gnu/4.4.0/f951 o.f90"
where o.f90 is your source file and x86_64-unknown-linux-gnu is replaced by
your target triplet.

2. Once at the "(gdb)" prompt, type "run".

3. When the segfault happens, you get another "(gdb)" prompt: type "backtrace"

4. Just paste everything back here


-- 

fxcoudert 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=36157


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

* [Bug fortran/36157] ICE in snapshot of 05/02/08 under FreeBSD i386 with IMPLICIT and function call
  2008-05-06 15:00 [Bug fortran/36157] New: ICE in snapshot of 05/02/08 under FreeBSD i386 with IMPLICIT and function call michael dot a dot richmond at nasa dot gov
  2008-05-12  8:00 ` [Bug fortran/36157] " fxcoudert at gcc dot gnu dot org
@ 2008-05-12 11:41 ` michael dot a dot richmond at nasa dot gov
  2008-05-19 19:56 ` kargl at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2008-05-12 11:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from michael dot a dot richmond at nasa dot gov  2008-05-12 11:41 -------
$ gdb -args irun/libexec/gcc/i386-unknown-freebsd7.0/4.4.0/f951 m1.f90
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
(gdb) run
Starting program:
/usr/home/mrichmon/irun/libexec/gcc/i386-unknown-freebsd7.0/4.4.0/f951 m1.f90

Program received signal SIGSEGV, Segmentation fault.
0x28771303 in strchr () from /lib/libc.so.7
(gdb) backtrace
#0  0x28771303 in strchr () from /lib/libc.so.7
#1  0xbfbfe5f4 in ?? ()
#2  0xbfbfdf88 in ?? ()
#3  0x287631fa in localeconv () from /lib/libc.so.7
#4  0x286f06e3 in vsnprintf () from /lib/libc.so.7
#5  0x080791b9 in gfc_get_string (
    format=0x100 <Error reading address 0x100: Bad address>)
    at /home/mrichmon/gcc-4.4-20080502/gcc/fortran/iresolve.c:52
#6  0x0806cb0c in gfc_find_function (
    name=0x100 <Error reading address 0x100: Bad address>)
    at /home/mrichmon/gcc-4.4-20080502/gcc/fortran/intrinsic.c:702
#7  0x0806bf06 in gfc_procedure_use (sym=0x28863380, ap=0x2886813c,
    where=0x288680f0)
    at /home/mrichmon/gcc-4.4-20080502/gcc/fortran/interface.c:2411
#8  0x08097745 in gfc_resolve_expr (e=0x0)
    at /home/mrichmon/gcc-4.4-20080502/gcc/fortran/resolve.c:1695
#9  0x00000000 in ?? ()
(gdb)


-- 


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


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

* [Bug fortran/36157] ICE in snapshot of 05/02/08 under FreeBSD i386 with IMPLICIT and function call
  2008-05-06 15:00 [Bug fortran/36157] New: ICE in snapshot of 05/02/08 under FreeBSD i386 with IMPLICIT and function call michael dot a dot richmond at nasa dot gov
  2008-05-12  8:00 ` [Bug fortran/36157] " fxcoudert at gcc dot gnu dot org
  2008-05-12 11:41 ` michael dot a dot richmond at nasa dot gov
@ 2008-05-19 19:56 ` kargl at gcc dot gnu dot org
  2008-05-19 20:47 ` michael dot a dot richmond at nasa dot gov
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: kargl at gcc dot gnu dot org @ 2008-05-19 19:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from kargl at gcc dot gnu dot org  2008-05-19 19:56 -------
Works for me on FreeBSD-8.0.

mobile:kargl[210] cat m.f90
SUBROUTINE mnbrak
IMPLICIT REAL(a-f)
f=func()
END SUBROUTINE mnbrak

mobile:kargl[211] ~/work/bin/gfortran -c m.f90
mobile:kargl[212] nm m.o
         U func_
00000000 T mnbrak_
mobile:kargl[213] ~/work/bin/gfortran --version
GNU Fortran (GCC) 4.4.0 20080516 (experimental)


-- 


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


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

* [Bug fortran/36157] ICE in snapshot of 05/02/08 under FreeBSD i386 with IMPLICIT and function call
  2008-05-06 15:00 [Bug fortran/36157] New: ICE in snapshot of 05/02/08 under FreeBSD i386 with IMPLICIT and function call michael dot a dot richmond at nasa dot gov
                   ` (2 preceding siblings ...)
  2008-05-19 19:56 ` kargl at gcc dot gnu dot org
@ 2008-05-19 20:47 ` michael dot a dot richmond at nasa dot gov
  2008-07-29 19:42 ` dfranke at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2008-05-19 20:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from michael dot a dot richmond at nasa dot gov  2008-05-19 20:38 -------
I am running FreeBSD 7.0. The bug does not occur on snapshots released after
05/02/08


-- 


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


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

* [Bug fortran/36157] ICE in snapshot of 05/02/08 under FreeBSD i386 with IMPLICIT and function call
  2008-05-06 15:00 [Bug fortran/36157] New: ICE in snapshot of 05/02/08 under FreeBSD i386 with IMPLICIT and function call michael dot a dot richmond at nasa dot gov
                   ` (3 preceding siblings ...)
  2008-05-19 20:47 ` michael dot a dot richmond at nasa dot gov
@ 2008-07-29 19:42 ` dfranke at gcc dot gnu dot org
  2008-07-30 10:50 ` michael dot a dot richmond at nasa dot gov
  2008-07-30 12:06 ` dfranke at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2008-07-29 19:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from dfranke at gcc dot gnu dot org  2008-07-29 19:41 -------
> The bug does not occur on snapshots released after 05/02/08

Michael, just to make sure, the reported ICE is gone for good?
(If yes, we can close this PR ...)


-- 

dfranke at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/36157] ICE in snapshot of 05/02/08 under FreeBSD i386 with IMPLICIT and function call
  2008-05-06 15:00 [Bug fortran/36157] New: ICE in snapshot of 05/02/08 under FreeBSD i386 with IMPLICIT and function call michael dot a dot richmond at nasa dot gov
                   ` (4 preceding siblings ...)
  2008-07-29 19:42 ` dfranke at gcc dot gnu dot org
@ 2008-07-30 10:50 ` michael dot a dot richmond at nasa dot gov
  2008-07-30 12:06 ` dfranke at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2008-07-30 10:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from michael dot a dot richmond at nasa dot gov  2008-07-30 10:49 -------
(In reply to comment #5)
> > The bug does not occur on snapshots released after 05/02/08
> 
> Michael, just to make sure, the reported ICE is gone for good?
> (If yes, we can close this PR ...)

I have not seen this bug in any version of gfortran other than the snapshot of
05/02/08. I am willing to close this PR, along with 36139 and 36140.


-- 


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


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

* [Bug fortran/36157] ICE in snapshot of 05/02/08 under FreeBSD i386 with IMPLICIT and function call
  2008-05-06 15:00 [Bug fortran/36157] New: ICE in snapshot of 05/02/08 under FreeBSD i386 with IMPLICIT and function call michael dot a dot richmond at nasa dot gov
                   ` (5 preceding siblings ...)
  2008-07-30 10:50 ` michael dot a dot richmond at nasa dot gov
@ 2008-07-30 12:06 ` dfranke at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2008-07-30 12:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from dfranke at gcc dot gnu dot org  2008-07-30 12:05 -------
> I have not seen this bug in any version of gfortran other than the snapshot
> of 05/02/08. I am willing to close this PR, along with 36139 and 36140.

Closing this PR (and the others) as WORKSFORME.
Thanks for the feedback.


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME
   Target Milestone|---                         |4.4.0


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


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

end of thread, other threads:[~2008-07-30 12:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-06 15:00 [Bug fortran/36157] New: ICE in snapshot of 05/02/08 under FreeBSD i386 with IMPLICIT and function call michael dot a dot richmond at nasa dot gov
2008-05-12  8:00 ` [Bug fortran/36157] " fxcoudert at gcc dot gnu dot org
2008-05-12 11:41 ` michael dot a dot richmond at nasa dot gov
2008-05-19 19:56 ` kargl at gcc dot gnu dot org
2008-05-19 20:47 ` michael dot a dot richmond at nasa dot gov
2008-07-29 19:42 ` dfranke at gcc dot gnu dot org
2008-07-30 10:50 ` michael dot a dot richmond at nasa dot gov
2008-07-30 12:06 ` dfranke 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).