public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/49271] New: Compiler crashed and asked me to submit a report
@ 2011-06-03 0:29 coml4 at san dot rr.com
2011-06-03 16:29 ` [Bug fortran/49271] " kargl at gcc dot gnu.org
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: coml4 at san dot rr.com @ 2011-06-03 0:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49271
Summary: Compiler crashed and asked me to submit a report
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: coml4@san.rr.com
Created attachment 24419
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24419
f90 source code that tries to use fopen and get the handle
I am a newbie to trying to access C structures from Fortran and tried using a%b
to get the unit number from FILE structure. I am sure the problem is mine and
not the compiler but the output was:
oz-2:gert_library hugh$ gfortran testcfopen.f90
f951: internal compiler error: in gfc_find_typebound_proc, at
fortran/symbol.c:4446
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
The code (probably terrible) is attached.
Hugh McCutchen
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/49271] Compiler crashed and asked me to submit a report
2011-06-03 0:29 [Bug fortran/49271] New: Compiler crashed and asked me to submit a report coml4 at san dot rr.com
@ 2011-06-03 16:29 ` kargl at gcc dot gnu.org
2011-06-03 17:07 ` langton at gcc dot gnu.org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: kargl at gcc dot gnu.org @ 2011-06-03 16:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49271
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu.org
--- Comment #1 from kargl at gcc dot gnu.org 2011-06-03 16:29:12 UTC ---
What operating system?
I get
troutmask:sgk[272] gfc43 -c testcfopen.f90
testcfopen.f90:17.33:
PRINT '(I10)', file_struct%handle ! I do not know what is in the structure or
1
Error: 'handle' at (1) is not a member of the 'c_ptr' structure
with 4.3.6, 4.4.7, 4.5.3, 4.6.1, and 4.7.0 on FreeBSD. If I change
handle to a component within FreeBSD's FILE such as _blksize, I get
testcfopen.f90:19.27:
PRINT '(I10)', file_struct%_blksize
1
Error: Expected structure component name at (1)
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/49271] Compiler crashed and asked me to submit a report
2011-06-03 0:29 [Bug fortran/49271] New: Compiler crashed and asked me to submit a report coml4 at san dot rr.com
2011-06-03 16:29 ` [Bug fortran/49271] " kargl at gcc dot gnu.org
@ 2011-06-03 17:07 ` langton at gcc dot gnu.org
2011-06-03 17:33 ` coml4 at san dot rr.com
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: langton at gcc dot gnu.org @ 2011-06-03 17:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49271
Asher Langton <langton at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |langton at gcc dot gnu.org
--- Comment #2 from Asher Langton <langton at gcc dot gnu.org> 2011-06-03 17:07:08 UTC ---
I can't reproduce this on x86_64-unknown-linux-gnu (4.3.3, 4.5.1, 4.6.0, 4.7)
or x86_64-apple-darwin10 (4.4.6).
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/49271] Compiler crashed and asked me to submit a report
2011-06-03 0:29 [Bug fortran/49271] New: Compiler crashed and asked me to submit a report coml4 at san dot rr.com
2011-06-03 16:29 ` [Bug fortran/49271] " kargl at gcc dot gnu.org
2011-06-03 17:07 ` langton at gcc dot gnu.org
@ 2011-06-03 17:33 ` coml4 at san dot rr.com
2011-06-03 17:38 ` dominiq at lps dot ens.fr
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: coml4 at san dot rr.com @ 2011-06-03 17:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49271
--- Comment #3 from Hugh <coml4 at san dot rr.com> 2011-06-03 17:33:03 UTC ---
I apologize for omitting the OS.
27" iMac with i7 processor running OS X 10.6.7. I know the code is bad. It is
just that the compiler crashed and requested a bug report.
Hugh
On Jun 3, 2011, at 9:29 AM, kargl at gcc dot gnu.org wrote:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49271
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu.org
--- Comment #1 from kargl at gcc dot gnu.org 2011-06-03 16:29:12 UTC ---
What operating system?
I get
troutmask:sgk[272] gfc43 -c testcfopen.f90
testcfopen.f90:17.33:
PRINT '(I10)', file_struct%handle ! I do not know what is in the structure or
1
Error: 'handle' at (1) is not a member of the 'c_ptr' structure
with 4.3.6, 4.4.7, 4.5.3, 4.6.1, and 4.7.0 on FreeBSD. If I change
handle to a component within FreeBSD's FILE such as _blksize, I get
testcfopen.f90:19.27:
PRINT '(I10)', file_struct%_blksize
1
Error: Expected structure component name at (1)
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/49271] Compiler crashed and asked me to submit a report
2011-06-03 0:29 [Bug fortran/49271] New: Compiler crashed and asked me to submit a report coml4 at san dot rr.com
` (2 preceding siblings ...)
2011-06-03 17:33 ` coml4 at san dot rr.com
@ 2011-06-03 17:38 ` dominiq at lps dot ens.fr
2011-06-03 21:18 ` langton at gcc dot gnu.org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dominiq at lps dot ens.fr @ 2011-06-03 17:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49271
--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-06-03 17:38:13 UTC ---
Compiling the code gives the error without crash for me too on
x86_64-apple-darwin10.7.0 (trunk and 4.4.4).
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/49271] Compiler crashed and asked me to submit a report
2011-06-03 0:29 [Bug fortran/49271] New: Compiler crashed and asked me to submit a report coml4 at san dot rr.com
` (3 preceding siblings ...)
2011-06-03 17:38 ` dominiq at lps dot ens.fr
@ 2011-06-03 21:18 ` langton at gcc dot gnu.org
2011-06-03 21:51 ` coml4 at san dot rr.com
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: langton at gcc dot gnu.org @ 2011-06-03 21:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49271
--- Comment #5 from Asher Langton <langton at gcc dot gnu.org> 2011-06-03 21:18:20 UTC ---
(In reply to comment #3)
> I apologize for omitting the OS.
>
> 27" iMac with i7 processor running OS X 10.6.7. I know the code is bad. It is
> just that the compiler crashed and requested a bug report.
I can't reproduce the crash with the current development version built on OS X
10.6.7. Could you post the output you get from running 'gfortran -v'?
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/49271] Compiler crashed and asked me to submit a report
2011-06-03 0:29 [Bug fortran/49271] New: Compiler crashed and asked me to submit a report coml4 at san dot rr.com
` (4 preceding siblings ...)
2011-06-03 21:18 ` langton at gcc dot gnu.org
@ 2011-06-03 21:51 ` coml4 at san dot rr.com
2011-06-03 22:00 ` sgk at troutmask dot apl.washington.edu
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: coml4 at san dot rr.com @ 2011-06-03 21:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49271
--- Comment #6 from Hugh <coml4 at san dot rr.com> 2011-06-03 21:50:43 UTC ---
oz-2:gert_library hugh$ gfortran -v
Using built-in specs.
Target: i386-apple-darwin8.10.1
Configured with: /tmp/gfortran-20090604/ibin/../gcc/configure
--prefix=/usr/local/gfortran --enable-languages=c,fortran
--with-gmp=/tmp/gfortran-20090604/gfortran_libs --enable-bootstrap
Thread model: posix
gcc version 4.5.0 20090604 (experimental) [trunk revision 148180] (GCC)
On Jun 3, 2011, at 2:18 PM, langton at gcc dot gnu.org wrote:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49271
--- Comment #5 from Asher Langton <langton at gcc dot gnu.org> 2011-06-03
21:18:20 UTC ---
(In reply to comment #3)
> I apologize for omitting the OS.
>
> 27" iMac with i7 processor running OS X 10.6.7. I know the code is bad. It is
> just that the compiler crashed and requested a bug report.
I can't reproduce the crash with the current development version built on OS X
10.6.7. Could you post the output you get from running 'gfortran -v'?
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/49271] Compiler crashed and asked me to submit a report
2011-06-03 0:29 [Bug fortran/49271] New: Compiler crashed and asked me to submit a report coml4 at san dot rr.com
` (5 preceding siblings ...)
2011-06-03 21:51 ` coml4 at san dot rr.com
@ 2011-06-03 22:00 ` sgk at troutmask dot apl.washington.edu
2011-06-04 1:09 ` coml4 at san dot rr.com
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: sgk at troutmask dot apl.washington.edu @ 2011-06-03 22:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49271
--- Comment #7 from Steve Kargl <sgk at troutmask dot apl.washington.edu> 2011-06-03 21:59:43 UTC ---
On Fri, Jun 03, 2011 at 09:50:46PM +0000, coml4 at san dot rr.com wrote:
>
> gcc version 4.5.0 20090604 (experimental) [trunk revision 148180] (GCC)
>
You may be hitting an old bug. 20090604 occurred almost
2 years ago. Can you update your compiler to something
a litte more recent?
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/49271] Compiler crashed and asked me to submit a report
2011-06-03 0:29 [Bug fortran/49271] New: Compiler crashed and asked me to submit a report coml4 at san dot rr.com
` (6 preceding siblings ...)
2011-06-03 22:00 ` sgk at troutmask dot apl.washington.edu
@ 2011-06-04 1:09 ` coml4 at san dot rr.com
2011-06-04 15:57 ` sgk at troutmask dot apl.washington.edu
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: coml4 at san dot rr.com @ 2011-06-04 1:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49271
--- Comment #8 from Hugh <coml4 at san dot rr.com> 2011-06-04 01:08:47 UTC ---
I will be happy to update the compiler. I very recently downloaded the latest
one that was labeled "Stable Release" for Mac OS X. Which version do you
recommend?
Thanks,
Hugh McCutchen, Jr.
On Jun 3, 2011, at 2:59 PM, sgk at troutmask dot apl.washington.edu wrote:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49271
--- Comment #7 from Steve Kargl <sgk at troutmask dot apl.washington.edu>
2011-06-03 21:59:43 UTC ---
On Fri, Jun 03, 2011 at 09:50:46PM +0000, coml4 at san dot rr.com wrote:
>
> gcc version 4.5.0 20090604 (experimental) [trunk revision 148180] (GCC)
>
You may be hitting an old bug. 20090604 occurred almost
2 years ago. Can you update your compiler to something
a litte more recent?
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/49271] Compiler crashed and asked me to submit a report
2011-06-03 0:29 [Bug fortran/49271] New: Compiler crashed and asked me to submit a report coml4 at san dot rr.com
` (7 preceding siblings ...)
2011-06-04 1:09 ` coml4 at san dot rr.com
@ 2011-06-04 15:57 ` sgk at troutmask dot apl.washington.edu
2011-06-04 16:23 ` dominiq at lps dot ens.fr
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: sgk at troutmask dot apl.washington.edu @ 2011-06-04 15:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49271
--- Comment #9 from Steve Kargl <sgk at troutmask dot apl.washington.edu> 2011-06-04 15:56:35 UTC ---
On Sat, Jun 04, 2011 at 01:09:06AM +0000, coml4 at san dot rr.com wrote:
> I will be happy to update the compiler. I very recently downloaded the latest
> one that was labeled "Stable Release" for Mac OS X. Which version do you
> recommend?
I don't use Mac OS X, so I do not know what is
available. If you can find it, try a 4.6.1
version.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/49271] Compiler crashed and asked me to submit a report
2011-06-03 0:29 [Bug fortran/49271] New: Compiler crashed and asked me to submit a report coml4 at san dot rr.com
` (8 preceding siblings ...)
2011-06-04 15:57 ` sgk at troutmask dot apl.washington.edu
@ 2011-06-04 16:23 ` dominiq at lps dot ens.fr
2011-07-24 19:03 ` dfranke at gcc dot gnu.org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dominiq at lps dot ens.fr @ 2011-06-04 16:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49271
--- Comment #10 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-06-04 16:22:18 UTC ---
> I don't use Mac OS X ...
I do;-) The simplest ways are to build it either with fink (
http://www.finkproject.org/ : gcc4.5.2) or macports ( http://www.macports.org/
: gcc4.5.3 or 4.6 beta).
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/49271] Compiler crashed and asked me to submit a report
2011-06-03 0:29 [Bug fortran/49271] New: Compiler crashed and asked me to submit a report coml4 at san dot rr.com
` (9 preceding siblings ...)
2011-06-04 16:23 ` dominiq at lps dot ens.fr
@ 2011-07-24 19:03 ` dfranke at gcc dot gnu.org
2011-07-24 22:09 ` coml4 at san dot rr.com
2011-07-24 22:14 ` dfranke at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: dfranke at gcc dot gnu.org @ 2011-07-24 19:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49271
Daniel Franke <dfranke at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2011.07.24 19:03:42
CC| |dfranke at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #11 from Daniel Franke <dfranke at gcc dot gnu.org> 2011-07-24 19:03:42 UTC ---
Any news here? Set to waiting, to be closed soon if no additional info is
provided.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/49271] Compiler crashed and asked me to submit a report
2011-06-03 0:29 [Bug fortran/49271] New: Compiler crashed and asked me to submit a report coml4 at san dot rr.com
` (10 preceding siblings ...)
2011-07-24 19:03 ` dfranke at gcc dot gnu.org
@ 2011-07-24 22:09 ` coml4 at san dot rr.com
2011-07-24 22:14 ` dfranke at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: coml4 at san dot rr.com @ 2011-07-24 22:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49271
--- Comment #12 from Hugh <coml4 at san dot rr.com> 2011-07-24 22:08:42 UTC ---
I apologize for not getting back to you. The recommendation was to change to a
newer version of the compiler which I did and the problem went away.
Hugh McCutchen
On Jul 24, 2011, at 12:04 PM, dfranke at gcc dot gnu.org wrote:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49271
Daniel Franke <dfranke at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2011.07.24 19:03:42
CC| |dfranke at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #11 from Daniel Franke <dfranke at gcc dot gnu.org> 2011-07-24
19:03:42 UTC ---
Any news here? Set to waiting, to be closed soon if no additional info is
provided.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/49271] Compiler crashed and asked me to submit a report
2011-06-03 0:29 [Bug fortran/49271] New: Compiler crashed and asked me to submit a report coml4 at san dot rr.com
` (11 preceding siblings ...)
2011-07-24 22:09 ` coml4 at san dot rr.com
@ 2011-07-24 22:14 ` dfranke at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: dfranke at gcc dot gnu.org @ 2011-07-24 22:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49271
Daniel Franke <dfranke at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |WORKSFORME
--- Comment #13 from Daniel Franke <dfranke at gcc dot gnu.org> 2011-07-24 22:14:09 UTC ---
(In reply to comment #12)
> [...] the problem went away.
Closing accordingly.
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2011-07-24 22:14 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-03 0:29 [Bug fortran/49271] New: Compiler crashed and asked me to submit a report coml4 at san dot rr.com
2011-06-03 16:29 ` [Bug fortran/49271] " kargl at gcc dot gnu.org
2011-06-03 17:07 ` langton at gcc dot gnu.org
2011-06-03 17:33 ` coml4 at san dot rr.com
2011-06-03 17:38 ` dominiq at lps dot ens.fr
2011-06-03 21:18 ` langton at gcc dot gnu.org
2011-06-03 21:51 ` coml4 at san dot rr.com
2011-06-03 22:00 ` sgk at troutmask dot apl.washington.edu
2011-06-04 1:09 ` coml4 at san dot rr.com
2011-06-04 15:57 ` sgk at troutmask dot apl.washington.edu
2011-06-04 16:23 ` dominiq at lps dot ens.fr
2011-07-24 19:03 ` dfranke at gcc dot gnu.org
2011-07-24 22:09 ` coml4 at san dot rr.com
2011-07-24 22:14 ` dfranke 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).