public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/23556] New: FAIL: gfortran.dg/pr18122.f90
@ 2005-08-24 23:26 danglin at gcc dot gnu dot org
  2005-08-24 23:35 ` [Bug target/23556] " danglin at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2005-08-24 23:26 UTC (permalink / raw)
  To: gcc-bugs

Executing on host: /test/gnu/gcc-3.3/objdir/gcc/testsuite/../gfortran -B/test/gn
u/gcc-3.3/objdir/gcc/testsuite/../ /test/gnu/gcc-3.3/gcc/gcc/testsuite/gfortran.
dg/pr18122.f90   -O0   -pedantic-errors  -L/test/gnu/gcc-3.3/objdir/hppa2.0w-hp-
hpux11.11/./libgfortran/.libs -L/test/gnu/gcc-3.3/objdir/hppa2.0w-hp-hpux11.11/.
/libiberty  -lm   -o ./pr18122.exe    (timeout = 300)
PASS: gfortran.dg/pr18122.f90  -O0  (test for excess errors)
Setting LD_LIBRARY_PATH to .:/test/gnu/gcc-3.3/objdir/hppa2.0w-hp-hpux11.11/./li
bgfortran/.libs:/test/gnu/gcc-3.3/objdir/gcc:.:/test/gnu/gcc-3.3/objdir/hppa2.0w
-hp-hpux11.11/./libgfortran/.libs:/test/gnu/gcc-3.3/objdir/gcc
FAIL: gfortran.dg/pr18122.f90  -O0  execution test

-- 
           Summary: FAIL: gfortran.dg/pr18122.f90
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: hppa2.0w-hp-hpux11.11
  GCC host triplet: hppa2.0w-hp-hpux11.11
GCC target triplet: hppa2.0w-hp-hpux11.11


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


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

* [Bug target/23556] FAIL: gfortran.dg/pr18122.f90
  2005-08-24 23:26 [Bug target/23556] New: FAIL: gfortran.dg/pr18122.f90 danglin at gcc dot gnu dot org
@ 2005-08-24 23:35 ` danglin at gcc dot gnu dot org
  2005-08-24 23:35   ` Andrew Pinski
  2005-08-24 23:49 ` pinskia at physics dot uc dot edu
                   ` (6 subsequent siblings)
  7 siblings, 1 reply; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2005-08-24 23:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From danglin at gcc dot gnu dot org  2005-08-24 23:26 -------
(gdb) r
Starting program: /test/gnu/gcc-3.3/objdir/gcc/testsuite/pr18122.exe

Program received signal SIGBUS, Bus error.
0x7ae8a668 in _gfortrani_options ()
   from /test/gnu/gcc-3.3/objdir/hppa2.0w-hp-hpux11.11/./libgfortran/.libs/
libgfortran.sl.0
(gdb) disass 0x7ae8a658 0x7ae8a678
Dump of assembler code from 0x7ae8a658 to 0x7ae8a678:
0x7ae8a658 <_gfortrani_options+988268232>:      copy r25,r26
0x7ae8a65c <_gfortrani_options+988268236>:      copy r19,r4
0x7ae8a660 <_gfortrani_options+988268240>:      b,l 0x7ae8a5e0 <
_gfortrani_options+988268112>,rp
0x7ae8a664 <_gfortrani_options+988268244>:      ldi 0,r25
0x7ae8a668 <_gfortrani_options+988268248>:      fstd fr4,0(,r3)
0x7ae8a66c <_gfortrani_options+988268252>:      copy r4,r19
0x7ae8a670 <_gfortrani_options+988268256>:      addil -1800,r19,%r1
0x7ae8a674 <_gfortrani_options+988268260>:      ldw 610(,r1),r20
End of assembler dump.
(gdb) p/x $r3
$1 = 0x7ae35974

The segmentation fault is due to a misaligned store.



-- 


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


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

* Re: [Bug target/23556] FAIL: gfortran.dg/pr18122.f90
  2005-08-24 23:35 ` [Bug target/23556] " danglin at gcc dot gnu dot org
@ 2005-08-24 23:35   ` Andrew Pinski
  0 siblings, 0 replies; 10+ messages in thread
From: Andrew Pinski @ 2005-08-24 23:35 UTC (permalink / raw)
  To: gcc-bugzilla; +Cc: gcc-bugs


On Aug 24, 2005, at 7:26 PM, danglin at gcc dot gnu dot org wrote:

>
> ------- Additional Comments From danglin at gcc dot gnu dot org  
> 2005-08-24 23:26 -------
> (gdb) r
> Starting program: /test/gnu/gcc-3.3/objdir/gcc/testsuite/pr18122.exe
>
> Program received signal SIGBUS, Bus error.
> 0x7ae8a668 in _gfortrani_options ()

Hmm, why is _gfortrani_options being called, it is data as far as I can 
see.
on ppc-darwin from nm, we have:
000452f0 d __gfortrani_options

where d means data section.

Thanks,
Andrew Pinski


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

* [Bug target/23556] FAIL: gfortran.dg/pr18122.f90
  2005-08-24 23:26 [Bug target/23556] New: FAIL: gfortran.dg/pr18122.f90 danglin at gcc dot gnu dot org
  2005-08-24 23:35 ` [Bug target/23556] " danglin at gcc dot gnu dot org
@ 2005-08-24 23:49 ` pinskia at physics dot uc dot edu
  2005-08-25  0:34 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: pinskia at physics dot uc dot edu @ 2005-08-24 23:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at physics dot uc dot edu  2005-08-24 23:35 -------
Subject: Re:  FAIL: gfortran.dg/pr18122.f90


On Aug 24, 2005, at 7:26 PM, danglin at gcc dot gnu dot org wrote:

>
> ------- Additional Comments From danglin at gcc dot gnu dot org  
> 2005-08-24 23:26 -------
> (gdb) r
> Starting program: /test/gnu/gcc-3.3/objdir/gcc/testsuite/pr18122.exe
>
> Program received signal SIGBUS, Bus error.
> 0x7ae8a668 in _gfortrani_options ()

Hmm, why is _gfortrani_options being called, it is data as far as I can 
see.
on ppc-darwin from nm, we have:
000452f0 d __gfortrani_options

where d means data section.

Thanks,
Andrew Pinski



-- 


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


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

* [Bug target/23556] FAIL: gfortran.dg/pr18122.f90
  2005-08-24 23:26 [Bug target/23556] New: FAIL: gfortran.dg/pr18122.f90 danglin at gcc dot gnu dot org
  2005-08-24 23:35 ` [Bug target/23556] " danglin at gcc dot gnu dot org
  2005-08-24 23:49 ` pinskia at physics dot uc dot edu
@ 2005-08-25  0:34 ` dave at hiauly1 dot hia dot nrc dot ca
  2005-08-25  0:55 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2005-08-25  0:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2005-08-25 00:28 -------
Subject: Re:  FAIL: gfortran.dg/pr18122.f90

> > (gdb) r
> > Starting program: /test/gnu/gcc-3.3/objdir/gcc/testsuite/pr18122.exe
> >
> > Program received signal SIGBUS, Bus error.
> > 0x7ae8a668 in _gfortrani_options ()
> 
> Hmm, why is _gfortrani_options being called, it is data as far as I can 
> see.
> on ppc-darwin from nm, we have:
> 000452f0 d __gfortrani_options
> 
> where d means data section.

The debugger is broken ;(

With a static link I see:

(gdb) r
Starting program: /test/gnu/gcc-3.3/objdir/gcc/testsuite/pr18122.exe

Program received signal SIGBUS, Bus error.
0x00011bec in _gfortrani_convert_real ()
(gdb) disass
Dump of assembler code for function _gfortrani_convert_real:
0x00011ba0 <_gfortrani_convert_real+0>:		addil 5800,dp,%r1
0x00011ba4 <_gfortrani_convert_real+4>: 	stw rp,-14(,sp)
0x00011ba8 <_gfortrani_convert_real+8>: 	ldo 80(sp),sp
0x00011bac <_gfortrani_convert_real+12>:        stw r0,1c0(,r1)
0x00011bb0 <_gfortrani_convert_real+16>:        stw r4,-68(,sp)
0x00011bb4 <_gfortrani_convert_real+20>:        copy r1,r4
0x00011bb8 <_gfortrani_convert_real+24>:        stw r3,-64(,sp)
0x00011bbc <_gfortrani_convert_real+28>:        cmpib,= 8,r24,0x11be0 <_gfortrani_convert_real+64>
0x00011bc0 <_gfortrani_convert_real+32>:        copy r26,r3
0x00011bc4 <_gfortrani_convert_real+36>:        ldi 10,ret0
0x00011bc8 <_gfortrani_convert_real+40>:        cmpb,= ret0,r24,0x11c54 <_gfortrani_convert_real+180>
0x00011bcc <_gfortrani_convert_real+44>:        ldo -78(sp),ret0
0x00011bd0 <_gfortrani_convert_real+48>:        cmpib,= 4,r24,0x11c84 <_gfortrani_convert_real+228>
0x00011bd4 <_gfortrani_convert_real+52>:        ldil 4e800,r26
0x00011bd8 <_gfortrani_convert_real+56>:        b,l 0x69e8 <_gfortrani_internal_error>,rp
0x00011bdc <_gfortrani_convert_real+60>:        ldo 670(r26),r26
0x00011be0 <_gfortrani_convert_real+64>:        copy r25,r26
0x00011be4 <_gfortrani_convert_real+68>:        b,l 0x2d710 <strtod>,rp
0x00011be8 <_gfortrani_convert_real+72>:        ldi 0,r25
0x00011bec <_gfortrani_convert_real+76>:        fstd fr4,0(,r3)
...
(gdb) bt
#0  0x00011bec in _gfortrani_convert_real ()
#1  0x0000f360 in read_real ()
#2  0x000100d0 in nml_read_obj ()
#3  0x000109a4 in _gfortrani_namelist_read ()
#4  0x00008f0c in finalize_transfer ()
#5  0x00009034 in _gfortran_st_read_done ()
#6  0x00006038 in MAIN__ ()
#7  0x000061a4 in main ()

r3 contains the first argument passed from read_real (entry value of r26).

Dave


-- 


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


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

* [Bug target/23556] FAIL: gfortran.dg/pr18122.f90
  2005-08-24 23:26 [Bug target/23556] New: FAIL: gfortran.dg/pr18122.f90 danglin at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-08-25  0:34 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2005-08-25  0:55 ` dave at hiauly1 dot hia dot nrc dot ca
  2005-08-31 17:00 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2005-08-25  0:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2005-08-25 00:34 -------
Subject: Re:  FAIL: gfortran.dg/pr18122.f90

> r3 contains the first argument passed from read_real (entry value of r26).

/* Storage area for values except for strings.  Must be large enough
   to hold a complex value (two reals) of the largest kind.  */

static char value[20];

Bah, this can't work on a machine with strict alignment.

Dave


-- 


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


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

* [Bug target/23556] FAIL: gfortran.dg/pr18122.f90
  2005-08-24 23:26 [Bug target/23556] New: FAIL: gfortran.dg/pr18122.f90 danglin at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-08-25  0:55 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2005-08-31 17:00 ` cvs-commit at gcc dot gnu dot org
  2005-09-01 16:43 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-31 17:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-31 16:58 -------
Subject: Bug 23556

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	sje@gcc.gnu.org	2005-08-31 16:58:29

Modified files:
	libgfortran    : ChangeLog 
	libgfortran/io : read.c 

Log message:
	PR target/23556
	* io/read.c (convert_real): Use memcpy to fill buffer.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&r1=1.288&r2=1.289
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/read.c.diff?cvsroot=gcc&r1=1.16&r2=1.17



-- 


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


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

* [Bug target/23556] FAIL: gfortran.dg/pr18122.f90
  2005-08-24 23:26 [Bug target/23556] New: FAIL: gfortran.dg/pr18122.f90 danglin at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-08-31 17:00 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-01 16:43 ` cvs-commit at gcc dot gnu dot org
  2005-09-02  8:42 ` cvs-commit at gcc dot gnu dot org
  2005-09-02 11:46 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-01 16:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-09-01 16:43 -------
Subject: Bug 23556

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	sje@gcc.gnu.org	2005-09-01 16:43:24

Modified files:
	libgfortran    : ChangeLog 
	libgfortran/io : read.c 

Log message:
	PR target/23556
	* io/read.c (convert_real): Use memcpy to fill buffer.
	(set_integer): Use memcpy to fill buffer.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.163.2.81&r2=1.163.2.82
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/read.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.8.10.6&r2=1.8.10.7



-- 


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


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

* [Bug target/23556] FAIL: gfortran.dg/pr18122.f90
  2005-08-24 23:26 [Bug target/23556] New: FAIL: gfortran.dg/pr18122.f90 danglin at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2005-09-01 16:43 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-02  8:42 ` cvs-commit at gcc dot gnu dot org
  2005-09-02 11:46 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-02  8:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-09-02 08:42 -------
Subject: Bug 23556

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	jakub@gcc.gnu.org	2005-09-02 08:41:57

Modified files:
	libgfortran    : ChangeLog 
	libgfortran/io : read.c 

Log message:
	PR target/23556
	* io/read.c (convert_real): Fix a typo from last change.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.163.2.82&r2=1.163.2.83
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/read.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.8.10.7&r2=1.8.10.8



-- 


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


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

* [Bug target/23556] FAIL: gfortran.dg/pr18122.f90
  2005-08-24 23:26 [Bug target/23556] New: FAIL: gfortran.dg/pr18122.f90 danglin at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2005-09-02  8:42 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-02 11:46 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-02 11:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-02 11:46 -------
Fixed.

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


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


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

end of thread, other threads:[~2005-09-02 11:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-24 23:26 [Bug target/23556] New: FAIL: gfortran.dg/pr18122.f90 danglin at gcc dot gnu dot org
2005-08-24 23:35 ` [Bug target/23556] " danglin at gcc dot gnu dot org
2005-08-24 23:35   ` Andrew Pinski
2005-08-24 23:49 ` pinskia at physics dot uc dot edu
2005-08-25  0:34 ` dave at hiauly1 dot hia dot nrc dot ca
2005-08-25  0:55 ` dave at hiauly1 dot hia dot nrc dot ca
2005-08-31 17:00 ` cvs-commit at gcc dot gnu dot org
2005-09-01 16:43 ` cvs-commit at gcc dot gnu dot org
2005-09-02  8:42 ` cvs-commit at gcc dot gnu dot org
2005-09-02 11:46 ` pinskia 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).