- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- f90 compilation core dumps on an array constructor...
Operating System - Linux
1753499
Members
4472
Online
108794
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2007 08:44 AM
02-23-2007 08:44 AM
f90 compilation core dumps on an array constructor statement
-- f90 core dumps on the following code:
program test
! character(len=5) :: a_list(2) = (/ '12345','1234' /)
character(len=5) :: a_list(2) = (/ '1234','12345' /)
end do
] f90 +source=free 03.f
03.f
program TEST
** Floating Point Exception **
( 0) 0x002481a0 coredump + 0x10 [/opt/fortran90/lbin/f90com32]
( 1) 0x001f809c cry_and_die + 0x3c [/opt/fortran90/lbin/f90com32]
( 2) 0x001f8738 f_onsignal + 0x30 [/opt/fortran90/lbin/f90com32]
( 3) 0x002d95ac compsignal + 0x1c [/opt/fortran90/lbin/f90com32]
( 4) 0x009d4d98 _sigreturn [/opt/fortran90/lbin/f90com32]
( 5) 0x00246840 blockcopy + 0x28 [/opt/fortran90/lbin/f90com32]
( 6) 0x0028305c arrayconaction1 + 0xfcc [/opt/fortran90/lbin/f90com32]
( 7) 0x00287b04 evalinitexpr + 0x290 [/opt/fortran90/lbin/f90com32]
( 8) 0x001c9764 generatetriads + 0xfc64 [/opt/fortran90/lbin/f90com32]
( 9) 0x001a8e2c processprogramblock + 0x64 [/opt/fortran90/lbin/f90com32]
(10) 0x001b6dd4 visitpreorder + 0x58 [/opt/fortran90/lbin/f90com32]
(11) 0x001b6e80 visitprogramblocklist + 0x20 [/opt/fortran90/lbin/f90com32]
(12) 0x001cf528 seman2 + 0x144 [/opt/fortran90/lbin/f90com32]
(13) 0x0021f17c fort90 + 0x1bd14 [/opt/fortran90/lbin/f90com32]
(14) 0x001ae378 main + 0x18 [/opt/fortran90/lbin/f90com32]
(15) 0x009864d8 _start + 0x80 [/opt/fortran90/lbin/f90com32]
(16) 0x001a82a0 $START$ + 0x1a0 [/opt/fortran90/lbin/f90com32]
f90: error 71: Signal 6 (abort) while compiling 03.f
-- The fix appears to be having the first string element in the array constructor match the "len" of the declaration. For instance:
character(len=5) :: a_list(2) = (/ '12345','1234' /)
Question1: When using an array constructor on an array of strings should each elements character length match exactly the declared length?
Question2: Is the workaround (of having the first alement in the array constructor exactly match the declaration length, but elements that follow can have any length not to exceed the delclared max character length) going to cause some memory nastiness in the executable?
--some system information
hpux pa-risc
] what /opt/fortran90/bin/f90
/opt/fortran90/bin/f90:
HP-UX f90 B3907DB/B3909DB B.11.11.99.02 PHSS_34398 / B.11.23.33 PHSS_34399 (PA RISC) Tue Oct 31 09:12:32 CST 2006
HP F90 v3.1.2
$ PATCH/11.00:PHCO_95167 Oct 1 1998 13:46:32 $
program test
! character(len=5) :: a_list(2) = (/ '12345','1234' /)
character(len=5) :: a_list(2) = (/ '1234','12345' /)
end do
] f90 +source=free 03.f
03.f
program TEST
** Floating Point Exception **
( 0) 0x002481a0 coredump + 0x10 [/opt/fortran90/lbin/f90com32]
( 1) 0x001f809c cry_and_die + 0x3c [/opt/fortran90/lbin/f90com32]
( 2) 0x001f8738 f_onsignal + 0x30 [/opt/fortran90/lbin/f90com32]
( 3) 0x002d95ac compsignal + 0x1c [/opt/fortran90/lbin/f90com32]
( 4) 0x009d4d98 _sigreturn [/opt/fortran90/lbin/f90com32]
( 5) 0x00246840 blockcopy + 0x28 [/opt/fortran90/lbin/f90com32]
( 6) 0x0028305c arrayconaction1 + 0xfcc [/opt/fortran90/lbin/f90com32]
( 7) 0x00287b04 evalinitexpr + 0x290 [/opt/fortran90/lbin/f90com32]
( 8) 0x001c9764 generatetriads + 0xfc64 [/opt/fortran90/lbin/f90com32]
( 9) 0x001a8e2c processprogramblock + 0x64 [/opt/fortran90/lbin/f90com32]
(10) 0x001b6dd4 visitpreorder + 0x58 [/opt/fortran90/lbin/f90com32]
(11) 0x001b6e80 visitprogramblocklist + 0x20 [/opt/fortran90/lbin/f90com32]
(12) 0x001cf528 seman2 + 0x144 [/opt/fortran90/lbin/f90com32]
(13) 0x0021f17c fort90 + 0x1bd14 [/opt/fortran90/lbin/f90com32]
(14) 0x001ae378 main + 0x18 [/opt/fortran90/lbin/f90com32]
(15) 0x009864d8 _start + 0x80 [/opt/fortran90/lbin/f90com32]
(16) 0x001a82a0 $START$ + 0x1a0 [/opt/fortran90/lbin/f90com32]
f90: error 71: Signal 6 (abort) while compiling 03.f
-- The fix appears to be having the first string element in the array constructor match the "len" of the declaration. For instance:
character(len=5) :: a_list(2) = (/ '12345','1234' /)
Question1: When using an array constructor on an array of strings should each elements character length match exactly the declared length?
Question2: Is the workaround (of having the first alement in the array constructor exactly match the declaration length, but elements that follow can have any length not to exceed the delclared max character length) going to cause some memory nastiness in the executable?
--some system information
hpux pa-risc
] what /opt/fortran90/bin/f90
/opt/fortran90/bin/f90:
HP-UX f90 B3907DB/B3909DB B.11.11.99.02 PHSS_34398 / B.11.23.33 PHSS_34399 (PA RISC) Tue Oct 31 09:12:32 CST 2006
HP F90 v3.1.2
$ PATCH/11.00:PHCO_95167 Oct 1 1998 13:46:32 $
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP