public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/37744] ICE-on-invalid with ISO_C_BINDING
       [not found] <bug-37744-4@http.gcc.gnu.org/bugzilla/>
@ 2010-12-30  3:07 ` dfranke at gcc dot gnu.org
  2012-03-04 19:47 ` mikael at gcc dot gnu.org
  1 sibling, 0 replies; 9+ messages in thread
From: dfranke at gcc dot gnu.org @ 2010-12-30  3:07 UTC (permalink / raw)
  To: gcc-bugs

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

Daniel Franke <dfranke at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |

--- Comment #14 from Daniel Franke <dfranke at gcc dot gnu.org> 2010-12-30 03:07:14 UTC ---
(In reply to comment #12)
> I might take a look someday.
> It seems a namespace is freed to soon. -fwhole-file works as it retains
> namespaces till the end.

You may also want to have a look at PR41093.


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

* [Bug fortran/37744] ICE-on-invalid with ISO_C_BINDING
       [not found] <bug-37744-4@http.gcc.gnu.org/bugzilla/>
  2010-12-30  3:07 ` [Bug fortran/37744] ICE-on-invalid with ISO_C_BINDING dfranke at gcc dot gnu.org
@ 2012-03-04 19:47 ` mikael at gcc dot gnu.org
  1 sibling, 0 replies; 9+ messages in thread
From: mikael at gcc dot gnu.org @ 2012-03-04 19:47 UTC (permalink / raw)
  To: gcc-bugs

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

Mikael Morin <mikael at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #15 from Mikael Morin <mikael at gcc dot gnu.org> 2012-03-04 19:47:27 UTC ---
Cannot reproduce anymore, even with -fno-whole-file.


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

* [Bug fortran/37744] ICE-on-invalid with ISO_C_BINDING
  2008-10-06  9:32 [Bug fortran/37744] New: ICE-on-invalid with ISO_C_BINDING and TYPEs dennis dot wassel at googlemail dot com
                   ` (5 preceding siblings ...)
  2010-07-27 11:29 ` mikael at gcc dot gnu dot org
@ 2010-07-28 12:45 ` mikael at gcc dot gnu dot org
  6 siblings, 0 replies; 9+ messages in thread
From: mikael at gcc dot gnu dot org @ 2010-07-28 12:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from mikael at gcc dot gnu dot org  2010-07-28 12:45 -------
(In reply to comment #12)
> It seems a namespace is freed to soon. 
Reminder to self: symbol.c's build_formal_args creates a namespace for
c_f_pointer and c_f_proc_pointer. May be related.


-- 


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


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

* [Bug fortran/37744] ICE-on-invalid with ISO_C_BINDING
  2008-10-06  9:32 [Bug fortran/37744] New: ICE-on-invalid with ISO_C_BINDING and TYPEs dennis dot wassel at googlemail dot com
                   ` (4 preceding siblings ...)
  2010-07-26 13:45 ` dominiq at lps dot ens dot fr
@ 2010-07-27 11:29 ` mikael at gcc dot gnu dot org
  2010-07-28 12:45 ` mikael at gcc dot gnu dot org
  6 siblings, 0 replies; 9+ messages in thread
From: mikael at gcc dot gnu dot org @ 2010-07-27 11:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from mikael at gcc dot gnu dot org  2010-07-27 11:29 -------
I might take a look someday.
It seems a namespace is freed to soon. -fwhole-file works as it retains
namespaces till the end.


-- 

mikael at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |mikael at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-12-09 19:12:15         |2010-07-27 11:29:21
               date|                            |


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


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

* [Bug fortran/37744] ICE-on-invalid with ISO_C_BINDING
  2008-10-06  9:32 [Bug fortran/37744] New: ICE-on-invalid with ISO_C_BINDING and TYPEs dennis dot wassel at googlemail dot com
                   ` (3 preceding siblings ...)
  2010-07-26 13:31 ` burnus at gcc dot gnu dot org
@ 2010-07-26 13:45 ` dominiq at lps dot ens dot fr
  2010-07-27 11:29 ` mikael at gcc dot gnu dot org
  2010-07-28 12:45 ` mikael at gcc dot gnu dot org
  6 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens dot fr @ 2010-07-26 13:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from dominiq at lps dot ens dot fr  2010-07-26 13:45 -------
(In reply to comment #10)
> > Note that since revision 162531 (-fwhole-file is now the default) the tests in
> > this pr no longer give ICEs. However these ICEs reappear when the tests are
> > compiled with -fno-whole-file.
>
> Then, I am inclined to close it as WONTFIX. As written elsewhere:
> -fno-whole-file is deprecated and I want to remove it early in 4.7 (though
> others disagree).

Well, I am among those who disagree. I think the flag -fno-whole-file will be
quite useful to locate remaining failure due to -fwhole-file and I seriously
doubt that the list will be exhausted before stage 3 of 4.7 (in addition I
don't see the interest of irregular options: if you want to get rid of the
-fno-whole-file, you should also remove -fwhole-file and all the associated
machinery!-). 

I think this PR should be left open as P5 and enhancement. If some day the
options -f(no-)?while-file and the corresponding code are removed, then it
could be close as wontfiw or invalid.


-- 


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


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

* [Bug fortran/37744] ICE-on-invalid with ISO_C_BINDING
  2008-10-06  9:32 [Bug fortran/37744] New: ICE-on-invalid with ISO_C_BINDING and TYPEs dennis dot wassel at googlemail dot com
                   ` (2 preceding siblings ...)
  2010-07-26 13:25 ` dominiq at lps dot ens dot fr
@ 2010-07-26 13:31 ` burnus at gcc dot gnu dot org
  2010-07-26 13:45 ` dominiq at lps dot ens dot fr
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-07-26 13:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from burnus at gcc dot gnu dot org  2010-07-26 13:31 -------
(In reply to comment #9)
> Note that since revision 162531 (-fwhole-file is now the default) the tests in
> this pr no longer give ICEs. However these ICEs reappear when the tests are
> compiled with -fno-whole-file.

Then, I am inclined to close it as WONTFIX. As written elsewhere:
-fno-whole-file is deprecated and I want to remove it early in 4.7 (though
others disagree).


-- 


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


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

* [Bug fortran/37744] ICE-on-invalid with ISO_C_BINDING
  2008-10-06  9:32 [Bug fortran/37744] New: ICE-on-invalid with ISO_C_BINDING and TYPEs dennis dot wassel at googlemail dot com
  2010-05-19 16:30 ` [Bug fortran/37744] ICE-on-invalid with ISO_C_BINDING dfranke at gcc dot gnu dot org
  2010-07-13 11:37 ` dennis dot wassel at googlemail dot com
@ 2010-07-26 13:25 ` dominiq at lps dot ens dot fr
  2010-07-26 13:31 ` burnus at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens dot fr @ 2010-07-26 13:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from dominiq at lps dot ens dot fr  2010-07-26 13:25 -------
Note that since revision 162531 (-fwhole-file is now the default) the tests in
this pr no longer give ICEs. However these ICEs reappear when the tests are
compiled with -fno-whole-file.


-- 


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


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

* [Bug fortran/37744] ICE-on-invalid with ISO_C_BINDING
  2008-10-06  9:32 [Bug fortran/37744] New: ICE-on-invalid with ISO_C_BINDING and TYPEs dennis dot wassel at googlemail dot com
  2010-05-19 16:30 ` [Bug fortran/37744] ICE-on-invalid with ISO_C_BINDING dfranke at gcc dot gnu dot org
@ 2010-07-13 11:37 ` dennis dot wassel at googlemail dot com
  2010-07-26 13:25 ` dominiq at lps dot ens dot fr
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: dennis dot wassel at googlemail dot com @ 2010-07-13 11:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from dennis dot wassel at googlemail dot com  2010-07-13 11:36 -------
Also fails with 4.5.0 (release version) using Daniel's reduced testcase

$ gfortran -c pr37744.f90 
pr37744.f90:4.2:

  XXX                 ! any error will do
  1
Error: Unclassifiable statement at (1)
pr37744.f90:3.19:

  CALL C_F_POINTER(rws, xrws)
                   1
Error: Type mismatch in argument 'cptr' at (1); passed REAL(4) to TYPE(c_ptr)
f951: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


$ gfortran --version
GNU Fortran (GCC) 4.5.0
Copyright (C) 2010 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING


-- 

dennis dot wassel at googlemail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|4.3.4 4.4.0 4.5.1 4.6.0     |4.3.4 4.4.0 4.5.0 4.5.1
                   |                            |4.6.0


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


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

* [Bug fortran/37744] ICE-on-invalid with ISO_C_BINDING
  2008-10-06  9:32 [Bug fortran/37744] New: ICE-on-invalid with ISO_C_BINDING and TYPEs dennis dot wassel at googlemail dot com
@ 2010-05-19 16:30 ` dfranke at gcc dot gnu dot org
  2010-07-13 11:37 ` dennis dot wassel at googlemail dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2010-05-19 16:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from dfranke at gcc dot gnu dot org  2010-05-19 16:29 -------
Not related to types - this is more about namespace cleanup. Reduced testcase:

PROGRAM Main
  USE, INTRINSIC :: iso_c_binding
  CALL C_F_POINTER(rws, xrws)
  XXX                 ! any error will do
END PROGRAM Main

SUBROUTINE F()
END SUBROUTINE F

valgrind:
==24940== Invalid read of size 4
==24940==    at 0x8173957: gfc_delete_symtree (symbol.c:2374)
==24940==    by 0x4131BD5: (below main) (libc-start.c:226)
==24940==  Address 0x4308fc8 is 0 bytes inside a block of size 1,692 free'd
==24940==    at 0x4024B3A: free (vg_replace_malloc.c:366)
==24940==    by 0x812A3F5: gfc_free (misc.c:51)
==24940==    by 0x4131BD5: (below main) (libc-start.c:226)

gdb:
Program received signal SIGSEGV, Segmentation fault.
0x081739b2 in gfc_find_symtree (st=0x2e1, name=0xb7eece00 "shape") at
/home/daniel/svn/gcc-svn/gcc/fortran/symbol.c:2393
2393          c = strcmp (name, st->name);
(gdb) bt
#0  0x081739b2 in gfc_find_symtree (st=0x2e1, name=0xb7eece00 "shape") at
/home/daniel/svn/gcc-svn/gcc/fortran/symbol.c:2393
#1  0x08173969 in gfc_delete_symtree (root=0x8c54760, name=0xb7eece00 "shape")
at /home/daniel/svn/gcc-svn/gcc/fortran/symbol.c:2374
#2  0x08174473 in gfc_undo_symbols () at
/home/daniel/svn/gcc-svn/gcc/fortran/symbol.c:2845
#3  0x081385ff in decode_statement () at
/home/daniel/svn/gcc-svn/gcc/fortran/parse.c:271
#4  0x0813a0e9 in next_free () at
/home/daniel/svn/gcc-svn/gcc/fortran/parse.c:722
#5  0x0813a4d2 in next_statement () at
/home/daniel/svn/gcc-svn/gcc/fortran/parse.c:907
#6  0x0813e6a6 in gfc_parse_file () at
/home/daniel/svn/gcc-svn/gcc/fortran/parse.c:4220
#7  0x0817cbba in gfc_be_parse_file (set_yydebug=0) at
/home/daniel/svn/gcc-svn/gcc/fortran/f95-lang.c:239
#8  0x084cfe1b in compile_file () at /home/daniel/svn/gcc-svn/gcc/toplev.c:1049
#9  0x084d1ed8 in do_compile () at /home/daniel/svn/gcc-svn/gcc/toplev.c:2393
#10 0x084d1f9e in toplev_main (argc=2, argv=0xbffff3c4) at
/home/daniel/svn/gcc-svn/gcc/toplev.c:2435
#11 0x0820961b in main (argc=2, argv=0xbffff3c4) at
/home/daniel/svn/gcc-svn/gcc/main.c:35


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|4.3.2 4.3.3 4.3.4 4.4.0     |4.3.4 4.4.0 4.5.1 4.6.0
            Summary|ICE-on-invalid with         |ICE-on-invalid with
                   |ISO_C_BINDING and TYPEs     |ISO_C_BINDING


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


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

end of thread, other threads:[~2012-03-04 19:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-37744-4@http.gcc.gnu.org/bugzilla/>
2010-12-30  3:07 ` [Bug fortran/37744] ICE-on-invalid with ISO_C_BINDING dfranke at gcc dot gnu.org
2012-03-04 19:47 ` mikael at gcc dot gnu.org
2008-10-06  9:32 [Bug fortran/37744] New: ICE-on-invalid with ISO_C_BINDING and TYPEs dennis dot wassel at googlemail dot com
2010-05-19 16:30 ` [Bug fortran/37744] ICE-on-invalid with ISO_C_BINDING dfranke at gcc dot gnu dot org
2010-07-13 11:37 ` dennis dot wassel at googlemail dot com
2010-07-26 13:25 ` dominiq at lps dot ens dot fr
2010-07-26 13:31 ` burnus at gcc dot gnu dot org
2010-07-26 13:45 ` dominiq at lps dot ens dot fr
2010-07-27 11:29 ` mikael at gcc dot gnu dot org
2010-07-28 12:45 ` mikael 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).