public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/31240]  New: gcc/testsuite/gfortran.dg/pointer_intent_1.f90 failure on OSX
@ 2007-03-17 13:10 dominiq at lps dot ens dot fr
  2007-03-17 13:15 ` [Bug testsuite/31240] " fxcoudert at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dominiq at lps dot ens dot fr @ 2007-03-17 13:10 UTC (permalink / raw)
  To: gcc-bugs

Without option and when compiled with the 20070316 snapshot on OSX 10.3.9
gcc/testsuite/gfortran.dg/pointer_intent_1.f90 yields an executable
which segfault, see:

http://gcc.gnu.org/ml/fortran/2007-03/msg00345.html

but ignore the crash log I have posted. The right one is:

**********

Host Name:      karma.lps.ens.fr
Date/Time:      2007-03-17 13:26:25 +0100
OS Version:     10.3.9 (Build 7W98)
Report Version: 2

Command: a.out
Path:    a.out
Version: ??? (???)
PID:     19276
Thread:  0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_INVALID_ADDRESS (0x0001) at 0x62756700

Thread 0 Crashed:
0   a.out       0x00002b8c nonpointer.958 + 0x1c (darwin-crt3.c:-94)
1   a.out       0x000028a4 MAIN__ + 0xdc (darwin-crt3.c:-94)
2   a.out       0x00002bcc main + 0x30
3   a.out       0x000018f0 _start + 0x188 (crt.c:267)
4   dyld        0x8fe1a31c _dyld_start + 0x64

PPC Thread State:
  srr0: 0x00002b8c srr1: 0x0000d030                vrsave: 0x00000000
    cr: 0x42000042  xer: 0x00000000   lr: 0x000028a4  ctr: 0x90000c78
    r0: 0x00000007   r1: 0xbfffefa0   r2: 0x62756700   r3: 0xbffff010
    r4: 0xbffff008   r5: 0x00000000   r6: 0x00000001   r7: 0x00000000
    r8: 0x00000000   r9: 0x000001e3  r10: 0x00000002  r11: 0x0000001e
   r12: 0x90000c78  r13: 0x00000000  r14: 0x00000000  r15: 0x00000000
   r16: 0x00000000  r17: 0x00000000  r18: 0x00000000  r19: 0x00000000
   r20: 0x00000000  r21: 0x00000000  r22: 0x00000000  r23: 0x00000000
   r24: 0x00000000  r25: 0x00000000  r26: 0xbffff12c  r27: 0x00000008
   r28: 0xbffff130  r29: 0x01100630  r30: 0xbfffefa0  r31: 0x0000177c

Binary Images Description:
    0x1000 -     0x2fff a.out   a.out
   0x3e000 -    0x49fff libgcc_s.1.dylib       
/sw/lib/gcc4/lib/libgcc_s.1.dylib
  0x3f4000 -   0x472fff libgfortran.3.dylib    
/sw/lib/gcc4/lib/libgfortran.3.dylib
0x73230000 - 0x73233fff libmx.A.dylib   /usr/lib/libmx.A.dylib
0x8fe00000 - 0x8fe4ffff dyld    /usr/lib/dyld
0x90000000 - 0x9014ffff libSystem.B.dylib       /usr/lib/libSystem.B.dylib
0x939d0000 - 0x939d4fff libmathCommon.A.dylib  
/usr/lib/system/libmathCommon.A.dylib

In http://gcc.gnu.org/ml/fortran/2007-03/msg00346.html, FX Coudert added:

> I can confirm that on i686-linux; ...


-- 
           Summary: gcc/testsuite/gfortran.dg/pointer_intent_1.f90 failure
                    on OSX
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dominiq at lps dot ens dot fr
GCC target triplet: powerpc-apple-darwin7


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


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

* [Bug testsuite/31240] gcc/testsuite/gfortran.dg/pointer_intent_1.f90 failure on OSX
  2007-03-17 13:10 [Bug testsuite/31240] New: gcc/testsuite/gfortran.dg/pointer_intent_1.f90 failure on OSX dominiq at lps dot ens dot fr
@ 2007-03-17 13:15 ` fxcoudert at gcc dot gnu dot org
  2007-03-24 22:28 ` [Bug testsuite/31240] gfortran.dg/pointer_intent_1.f90 failure at -O0 dominiq at lps dot ens dot fr
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-03-17 13:15 UTC (permalink / raw)
  To: gcc-bugs



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
 GCC target triplet|powerpc-apple-darwin7       |
           Keywords|                            |wrong-code
      Known to fail|                            |4.3.0
   Last reconfirmed|0000-00-00 00:00:00         |2007-03-17 13:15:25
               date|                            |


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


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

* [Bug testsuite/31240] gfortran.dg/pointer_intent_1.f90 failure at -O0
  2007-03-17 13:10 [Bug testsuite/31240] New: gcc/testsuite/gfortran.dg/pointer_intent_1.f90 failure on OSX dominiq at lps dot ens dot fr
  2007-03-17 13:15 ` [Bug testsuite/31240] " fxcoudert at gcc dot gnu dot org
@ 2007-03-24 22:28 ` dominiq at lps dot ens dot fr
  2007-04-10 18:26 ` burnus at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens dot fr @ 2007-03-24 22:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dominiq at lps dot ens dot fr  2007-03-24 22:28 -------
xlf yields a bus error without optimization and -O, and abort with -O3.
g95 gives the following errors:

In file pointer_intent_1.f90:39

      nullify(t%point)
                1
Error: Cannot NULLIFY the INTENT(IN) pointer 't' at (1)
In file pointer_intent_1.f90:42

      deallocate(t%point)
                 1
Error: Cannot DEALLOCATE INTENT(IN) dummy variable 't' at (1)


-- 


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


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

* [Bug testsuite/31240] gfortran.dg/pointer_intent_1.f90 failure at -O0
  2007-03-17 13:10 [Bug testsuite/31240] New: gcc/testsuite/gfortran.dg/pointer_intent_1.f90 failure on OSX dominiq at lps dot ens dot fr
  2007-03-17 13:15 ` [Bug testsuite/31240] " fxcoudert at gcc dot gnu dot org
  2007-03-24 22:28 ` [Bug testsuite/31240] gfortran.dg/pointer_intent_1.f90 failure at -O0 dominiq at lps dot ens dot fr
@ 2007-04-10 18:26 ` burnus at gcc dot gnu dot org
  2007-04-11  7:29 ` burnus at gcc dot gnu dot org
  2007-04-11  7:29 ` burnus at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-04-10 18:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from burnus at gcc dot gnu dot org  2007-04-10 19:26 -------
Accept. I somehow missed the email/PR while reading all the messages after a
conference.

Patch at:
http://gcc.gnu.org/ml/fortran/2007-04/msg00105.html


(In reply to comment #1)
> xlf yields a bus error without optimization and -O, and abort with -O3.
This is ok as the variable is not allocated.

> g95 gives the following errors:
> In file pointer_intent_1.f90:39
>       nullify(t%point)
>                 1
> Error: Cannot NULLIFY the INTENT(IN) pointer 't' at (1)

I believe this is wrong. The pointer "t" is not modified at all, only the
component "point" of the pointer target is.
That is: Modifying t%x and t%point is ok, but changing the assignment of the
pointer "t" itself is not allowed.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |burnus at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-03-17 13:15:25         |2007-04-10 19:26:33
               date|                            |


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


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

* [Bug testsuite/31240] gfortran.dg/pointer_intent_1.f90 failure at -O0
  2007-03-17 13:10 [Bug testsuite/31240] New: gcc/testsuite/gfortran.dg/pointer_intent_1.f90 failure on OSX dominiq at lps dot ens dot fr
                   ` (2 preceding siblings ...)
  2007-04-10 18:26 ` burnus at gcc dot gnu dot org
@ 2007-04-11  7:29 ` burnus at gcc dot gnu dot org
  2007-04-11  7:29 ` burnus at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-04-11  7:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from burnus at gcc dot gnu dot org  2007-04-11 08:29 -------
Fixed. Thanks for the report.


-- 

burnus at gcc dot gnu dot org changed:

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


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


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

* [Bug testsuite/31240] gfortran.dg/pointer_intent_1.f90 failure at -O0
  2007-03-17 13:10 [Bug testsuite/31240] New: gcc/testsuite/gfortran.dg/pointer_intent_1.f90 failure on OSX dominiq at lps dot ens dot fr
                   ` (3 preceding siblings ...)
  2007-04-11  7:29 ` burnus at gcc dot gnu dot org
@ 2007-04-11  7:29 ` burnus at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-04-11  7:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from burnus at gcc dot gnu dot org  2007-04-11 08:29 -------
Subject: Bug 31240

Author: burnus
Date: Wed Apr 11 08:28:49 2007
New Revision: 123712

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123712
Log:
2007-04-11  Tobias Burnus  <burnus@net-b.de>

       PR testsuite/31240
       * gfortran.dg/pointer_intent_1.f90: Fix test.


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


-- 


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


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

end of thread, other threads:[~2007-04-11  7:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-17 13:10 [Bug testsuite/31240] New: gcc/testsuite/gfortran.dg/pointer_intent_1.f90 failure on OSX dominiq at lps dot ens dot fr
2007-03-17 13:15 ` [Bug testsuite/31240] " fxcoudert at gcc dot gnu dot org
2007-03-24 22:28 ` [Bug testsuite/31240] gfortran.dg/pointer_intent_1.f90 failure at -O0 dominiq at lps dot ens dot fr
2007-04-10 18:26 ` burnus at gcc dot gnu dot org
2007-04-11  7:29 ` burnus at gcc dot gnu dot org
2007-04-11  7:29 ` burnus 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).