public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/24005] New: Ambiguous INTERFACE leads to seg fault
@ 2005-09-21 22:55 kargl at gcc dot gnu dot org
  2005-09-21 22:55 ` [Bug fortran/24005] " kargl at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-09-21 22:55 UTC (permalink / raw)
  To: gcc-bugs

The mpfun90 package will cause gfortran to seg fault during
compilation.  The problem appears to be due to an ambiguous
interface.  I'll attach a cutdowen version of the code.

-- 
           Summary: Ambiguous INTERFACE leads to seg fault
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kargl at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: freebsd-*-amd64


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


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

* [Bug fortran/24005] Ambiguous INTERFACE leads to seg fault
  2005-09-21 22:55 [Bug fortran/24005] New: Ambiguous INTERFACE leads to seg fault kargl at gcc dot gnu dot org
@ 2005-09-21 22:55 ` kargl at gcc dot gnu dot org
  2005-09-21 22:56 ` kargl at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-09-21 22:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From kargl at gcc dot gnu dot org  2005-09-21 22:41 -------
Created an attachment (id=9788)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9788&action=view)
ambiguous INTERFACE code


-- 


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


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

* [Bug fortran/24005] Ambiguous INTERFACE leads to seg fault
  2005-09-21 22:55 [Bug fortran/24005] New: Ambiguous INTERFACE leads to seg fault kargl at gcc dot gnu dot org
  2005-09-21 22:55 ` [Bug fortran/24005] " kargl at gcc dot gnu dot org
@ 2005-09-21 22:56 ` kargl at gcc dot gnu dot org
  2005-09-21 22:56 ` kargl at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-09-21 22:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From kargl at gcc dot gnu dot org  2005-09-21 22:45 -------
GDB suggests that we are passing a NULL pointer to strcmp.  Here's the backtrace.

#0  0x0000000200dda110 in strcmp () from /lib/libc.so.6
#1  0x0000000000419c0b in check_interface1 (p=0xbb6680, q=0xbb66a0, 
    generic_flag=1, 
    interface_name=0x7fffffffe290 "generic interface 'ambiguous'")
    at ../../gcc41/gcc/fortran/interface.c:929
#2  0x000000000041a136 in check_sym_interfaces (sym=Variable "sym" is not available.
)
    at ../../gcc41/gcc/fortran/interface.c:967
#3  0x0000000000446dee in traverse_ns (st=0xbe77c0, 
    func=0x41a0d0 <check_sym_interfaces>)
    at ../../gcc41/gcc/fortran/symbol.c:2313
#4  0x0000000000446dd6 in traverse_ns (st=0xbe7180, 
    func=0x41a0d0 <check_sym_interfaces>)
    at ../../gcc41/gcc/fortran/symbol.c:2316
#5  0x0000000000419cc8 in gfc_check_interfaces (ns=0xc10800)
    at ../../gcc41/gcc/fortran/interface.c:1016
#6  0x000000000043ebe1 in gfc_resolve (ns=0xc10800)
    at ../../gcc41/gcc/fortran/resolve.c:5070
#7  0x00000000004369ca in gfc_parse_file ()
    at ../../gcc41/gcc/fortran/parse.c:2626
#8  0x000000000044eb3a in gfc_be_parse_file (set_yydebug=Variable "set_yydebug"
is not available.
)
    at ../../gcc41/gcc/fortran/f95-lang.c:256
#9  0x000000000071adae in toplev_main (argc=Variable "argc" is not available.
) at ../../gcc41/gcc/toplev.c:990


-- 


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


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

* [Bug fortran/24005] Ambiguous INTERFACE leads to seg fault
  2005-09-21 22:55 [Bug fortran/24005] New: Ambiguous INTERFACE leads to seg fault kargl at gcc dot gnu dot org
  2005-09-21 22:55 ` [Bug fortran/24005] " kargl at gcc dot gnu dot org
  2005-09-21 22:56 ` kargl at gcc dot gnu dot org
@ 2005-09-21 22:56 ` kargl at gcc dot gnu dot org
  2005-09-22 22:46 ` cvs-commit at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-09-21 22:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From kargl at gcc dot gnu dot org  2005-09-21 22:44 -------
The code checker at www.lahey.com come shows

Compiling program unit y at line 1:
Compiling program unit z at line 17:
  2278-W: "SOURCE.F90", line 22: Specific procedures (f) and (f) do not ensure
that generic reference (ambiguous) is unambiguous.
Encountered 0 errors, 1 warning, 0 informations in file SOURCE.F90.
Compiling file SOURCE.F90.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Ambiguous INTERFACE leads to|Ambiguous INTERFACE leads to
                   |seg fault                   |seg fault


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


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

* [Bug fortran/24005] Ambiguous INTERFACE leads to seg fault
  2005-09-21 22:55 [Bug fortran/24005] New: Ambiguous INTERFACE leads to seg fault kargl at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-09-21 22:56 ` kargl at gcc dot gnu dot org
@ 2005-09-22 22:46 ` cvs-commit at gcc dot gnu dot org
  2005-09-22 22:48 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-22 22:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-09-22 22:46 -------
Subject: Bug 24005

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	kargl@gcc.gnu.org	2005-09-22 22:45:43

Modified files:
	gcc/fortran    : ChangeLog interface.c 

Log message:
	PR fortran/24005
	* interface.c (check_interface1): Fix NULL dereference.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.566&r2=1.567
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/interface.c.diff?cvsroot=gcc&r1=1.19&r2=1.20



-- 


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


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

* [Bug fortran/24005] Ambiguous INTERFACE leads to seg fault
  2005-09-21 22:55 [Bug fortran/24005] New: Ambiguous INTERFACE leads to seg fault kargl at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-09-22 22:46 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-22 22:48 ` cvs-commit at gcc dot gnu dot org
  2005-09-29 18:10 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-22 22:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-09-22 22:47 -------
Subject: Bug 24005

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	kargl@gcc.gnu.org	2005-09-22 22:47:45

Modified files:
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gfortran.dg: interface_1.f90 

Log message:
	PR fortran/24005
	gfortran.dg/interface_1.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6099&r2=1.6100
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/interface_1.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug fortran/24005] Ambiguous INTERFACE leads to seg fault
  2005-09-21 22:55 [Bug fortran/24005] New: Ambiguous INTERFACE leads to seg fault kargl at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-09-22 22:48 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-29 18:10 ` cvs-commit at gcc dot gnu dot org
  2005-09-29 18:22 ` cvs-commit at gcc dot gnu dot org
  2005-09-29 18:23 ` kargl at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-29 18:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-09-29 18:10 -------
Subject: Bug 24005

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	kargl@gcc.gnu.org	2005-09-29 18:10:33

Modified files:
	gcc/fortran    : ChangeLog interface.c 

Log message:
	PR fortran/24005
	* interface.c (check_interface1): Fix NULL dereference.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.335.2.120&r2=1.335.2.121
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/interface.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.15.2.1&r2=1.15.2.2



-- 


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


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

* [Bug fortran/24005] Ambiguous INTERFACE leads to seg fault
  2005-09-21 22:55 [Bug fortran/24005] New: Ambiguous INTERFACE leads to seg fault kargl at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2005-09-29 18:10 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-29 18:22 ` cvs-commit at gcc dot gnu dot org
  2005-09-29 18:23 ` kargl at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-29 18:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-09-29 18:22 -------
Subject: Bug 24005

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	kargl@gcc.gnu.org	2005-09-29 18:22:21

Modified files:
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gfortran.dg: interface_1.f90 

Log message:
	PR fortran/24005
	gfortran.dg/interface_1.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.415&r2=1.5084.2.416
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/interface_1.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.8.1



-- 


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


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

* [Bug fortran/24005] Ambiguous INTERFACE leads to seg fault
  2005-09-21 22:55 [Bug fortran/24005] New: Ambiguous INTERFACE leads to seg fault kargl at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2005-09-29 18:22 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-29 18:23 ` kargl at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-09-29 18:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From kargl at gcc dot gnu dot org  2005-09-29 18:23 -------
Backport from 4.1.0 to 4.0.3.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.3


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


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

end of thread, other threads:[~2005-09-29 18:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-21 22:55 [Bug fortran/24005] New: Ambiguous INTERFACE leads to seg fault kargl at gcc dot gnu dot org
2005-09-21 22:55 ` [Bug fortran/24005] " kargl at gcc dot gnu dot org
2005-09-21 22:56 ` kargl at gcc dot gnu dot org
2005-09-21 22:56 ` kargl at gcc dot gnu dot org
2005-09-22 22:46 ` cvs-commit at gcc dot gnu dot org
2005-09-22 22:48 ` cvs-commit at gcc dot gnu dot org
2005-09-29 18:10 ` cvs-commit at gcc dot gnu dot org
2005-09-29 18:22 ` cvs-commit at gcc dot gnu dot org
2005-09-29 18:23 ` kargl 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).