public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31616]  New: testsuite failures in gfortran.dg/open_errors.f90
@ 2007-04-18  4:40 ghazi at gcc dot gnu dot org
  2007-04-18  4:48 ` [Bug fortran/31616] " jvdelisle at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2007-04-18  4:40 UTC (permalink / raw)
  To: gcc-bugs

I'm getting testsuite failures in gfortran.dg/open_errors.f90 with mainline on
sparc-sun-solaris2.10:

http://gcc.gnu.org/ml/gcc-testresults/2007-04/msg00897.html

The logfile only says:

FAIL: gfortran.dg/open_errors.f90  -O0  execution test

at all optimization levels.  Running it by hand, it simply says:

Abort (core dumped)

If I run it under gdb-6.4, then gdb core dumps, so I don't have a backtrace or
any useful info at the moment.  I'll try and see if a later version of gdb does
any better.


-- 
           Summary: testsuite failures in gfortran.dg/open_errors.f90
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ghazi at gcc dot gnu dot org
GCC target triplet: sparc-sun-solaris2.10


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


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

* [Bug fortran/31616] testsuite failures in gfortran.dg/open_errors.f90
  2007-04-18  4:40 [Bug fortran/31616] New: testsuite failures in gfortran.dg/open_errors.f90 ghazi at gcc dot gnu dot org
@ 2007-04-18  4:48 ` jvdelisle at gcc dot gnu dot org
  2007-04-18  5:36 ` fxcoudert at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-04-18  4:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jvdelisle at gcc dot gnu dot org  2007-04-18 05:48 -------
This could be as simple as the error messages returned by the OS don't match
what we put in the test case.  Try changing:

call abort()

to:

print *, msg

This will then print the error messages instead of aborting and you may be able
to see what is going on.


-- 


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


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

* [Bug fortran/31616] testsuite failures in gfortran.dg/open_errors.f90
  2007-04-18  4:40 [Bug fortran/31616] New: testsuite failures in gfortran.dg/open_errors.f90 ghazi at gcc dot gnu dot org
  2007-04-18  4:48 ` [Bug fortran/31616] " jvdelisle at gcc dot gnu dot org
@ 2007-04-18  5:36 ` fxcoudert at gcc dot gnu dot org
  2007-04-18  5:58 ` ghazi at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-04-18  5:36 UTC (permalink / raw)
  To: gcc-bugs



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-04-18 06:35:43
               date|                            |


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


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

* [Bug fortran/31616] testsuite failures in gfortran.dg/open_errors.f90
  2007-04-18  4:40 [Bug fortran/31616] New: testsuite failures in gfortran.dg/open_errors.f90 ghazi at gcc dot gnu dot org
  2007-04-18  4:48 ` [Bug fortran/31616] " jvdelisle at gcc dot gnu dot org
  2007-04-18  5:36 ` fxcoudert at gcc dot gnu dot org
@ 2007-04-18  5:58 ` ghazi at gcc dot gnu dot org
  2007-04-19  3:06 ` jvdelisle at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2007-04-18  5:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from ghazi at gcc dot gnu dot org  2007-04-18 06:58 -------
(In reply to comment #1)
> Try changing:
> call abort()
> to:
> print *, msg
> This will then print the error messages instead of aborting and you may be able
> to see what is going on.


If I make your suggested change, I see that I get a failure in the third abort
test, where it opens "./" and the msg is " Invalid argument".

PS: gdb-6.6 was no help, it crashes as well. :-(


-- 


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


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

* [Bug fortran/31616] testsuite failures in gfortran.dg/open_errors.f90
  2007-04-18  4:40 [Bug fortran/31616] New: testsuite failures in gfortran.dg/open_errors.f90 ghazi at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-04-18  5:58 ` ghazi at gcc dot gnu dot org
@ 2007-04-19  3:06 ` jvdelisle at gcc dot gnu dot org
  2007-04-19  3:49 ` ghazi at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-04-19  3:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jvdelisle at gcc dot gnu dot org  2007-04-19 04:05 -------
It looks like this platform has different error messages for a given error.  I
suggest that this test case be either marked as expected to fail for this
platform  or we could delete the test case altogether.

Another possibility is to pre-process it to check for the different message
instead.  I am not sure how to do that within the testsuite.
#ifdef
  do this
#else
  do that

for example.


-- 


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


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

* [Bug fortran/31616] testsuite failures in gfortran.dg/open_errors.f90
  2007-04-18  4:40 [Bug fortran/31616] New: testsuite failures in gfortran.dg/open_errors.f90 ghazi at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-04-19  3:06 ` jvdelisle at gcc dot gnu dot org
@ 2007-04-19  3:49 ` ghazi at gcc dot gnu dot org
  2007-04-23  4:58 ` ghazi at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2007-04-19  3:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from ghazi at gcc dot gnu dot org  2007-04-19 04:49 -------
(In reply to comment #3)
> It looks like this platform has different error messages for a given error.

Yes that's correct.  I ran open_errors.exe under the solaris truss command and
saw this:

open64("./", O_RDWR|O_CREAT, 0666)              Err#22 EINVAL

So solaris generates EINVAL in this situation.  I can easily change the
testcase to also expect this possibility.  However I'm not sure how reliable it
is to string compare the english message from strerror as this testcase does.

Anyway, I'll create a patch.


-- 


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


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

* [Bug fortran/31616] testsuite failures in gfortran.dg/open_errors.f90
  2007-04-18  4:40 [Bug fortran/31616] New: testsuite failures in gfortran.dg/open_errors.f90 ghazi at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-04-19  3:49 ` ghazi at gcc dot gnu dot org
@ 2007-04-23  4:58 ` ghazi at gcc dot gnu dot org
  2007-04-23  7:52 ` ghazi at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2007-04-23  4:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from ghazi at gcc dot gnu dot org  2007-04-23 05:58 -------
Patch posted here:

http://gcc.gnu.org/ml/gcc-patches/2007-04/msg01457.html


-- 


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


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

* [Bug fortran/31616] testsuite failures in gfortran.dg/open_errors.f90
  2007-04-18  4:40 [Bug fortran/31616] New: testsuite failures in gfortran.dg/open_errors.f90 ghazi at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-04-23  4:58 ` ghazi at gcc dot gnu dot org
@ 2007-04-23  7:52 ` ghazi at gcc dot gnu dot org
  2007-04-25 17:07 ` ghazi at gcc dot gnu dot org
  2007-04-25 17:08 ` ghazi at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2007-04-23  7:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from ghazi at gcc dot gnu dot org  2007-04-23 08:52 -------
Subject: Bug 31616

Author: ghazi
Date: Mon Apr 23 08:52:24 2007
New Revision: 124059

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124059
Log:
        PR fortran/31616
        * gfortran.dg/open_errors.f90: Allow a different error message.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/open_errors.f90


-- 


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


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

* [Bug fortran/31616] testsuite failures in gfortran.dg/open_errors.f90
  2007-04-18  4:40 [Bug fortran/31616] New: testsuite failures in gfortran.dg/open_errors.f90 ghazi at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2007-04-23  7:52 ` ghazi at gcc dot gnu dot org
@ 2007-04-25 17:07 ` ghazi at gcc dot gnu dot org
  2007-04-25 17:08 ` ghazi at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2007-04-25 17:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from ghazi at gcc dot gnu dot org  2007-04-25 18:07 -------
Patch installed


-- 

ghazi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |ghazi at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-04-18 06:35:43         |2007-04-25 18:07:23
               date|                            |


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


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

* [Bug fortran/31616] testsuite failures in gfortran.dg/open_errors.f90
  2007-04-18  4:40 [Bug fortran/31616] New: testsuite failures in gfortran.dg/open_errors.f90 ghazi at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2007-04-25 17:07 ` ghazi at gcc dot gnu dot org
@ 2007-04-25 17:08 ` ghazi at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2007-04-25 17:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from ghazi at gcc dot gnu dot org  2007-04-25 18:08 -------
Updated testsuite results:

http://gcc.gnu.org/ml/gcc-testresults/2007-04/msg01287.html


-- 

ghazi at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-04-25 17:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-18  4:40 [Bug fortran/31616] New: testsuite failures in gfortran.dg/open_errors.f90 ghazi at gcc dot gnu dot org
2007-04-18  4:48 ` [Bug fortran/31616] " jvdelisle at gcc dot gnu dot org
2007-04-18  5:36 ` fxcoudert at gcc dot gnu dot org
2007-04-18  5:58 ` ghazi at gcc dot gnu dot org
2007-04-19  3:06 ` jvdelisle at gcc dot gnu dot org
2007-04-19  3:49 ` ghazi at gcc dot gnu dot org
2007-04-23  4:58 ` ghazi at gcc dot gnu dot org
2007-04-23  7:52 ` ghazi at gcc dot gnu dot org
2007-04-25 17:07 ` ghazi at gcc dot gnu dot org
2007-04-25 17:08 ` ghazi 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).