The debugger-output cut-and-pasted below has me completely at a loss
(sorry about the wrapping problems).
DV is computed at line 2164. Line 2166 tests DV for strictly positive;\
one should be able to get to line 2168 only for *positive* values of DV.
But dbx's "print dv, dh" at that point shows a *negative* DV.
What the ??!?!
The debugger is sunstudio12.1/bin/dbx, with "ident" reporting version
"$FreeBSD: src/usr.bin/yacc/skeleton.c,v 1.28 2000/01/17 02:04:06 bde
Exp $". The compiler is sunstudio12.1/bin/sunf95 "Sun Fortran 95 8.4
Linux_i386 2009/06/03".
The code is compiled with "-g -C -xarch=native -xtarget=native -m64
-xdebugformat=dwarf -xs -M. -xfilebyteorder=big8:%all -openmp=noopt
-stackvar -c", in a run with OMP_NUM_THREADS=1. Both DV and DH are
PRIVATE in the enclosing parallel loop, by the way, as you can see
from the "larger context" section at the bottom...
"uname -a" gives "Linux hilbert 2.6.27.5-server-2mnb #1 SMP Thu Nov 20
16:22:43 EST 2008 x86_64 Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
GNU/Linux".
-- Carlie Coats
------------ cut here for debugger output ---------------------------
t@139859468928896 (l@6097) stopped in _$d1J2151.mod_route.routechan_ at
line 2168 in file "mod_route.f90"
2168 DH = 1.0E3 * DV / WAREA( K )
(dbx) print dv, dh
dv = -9067.942
dh = 0.0
(dbx) list 2164,2170
2164 DV = CVOLV( K ) - BFVOL( K )
2165
2166 IF ( DV .GT. 0.0 ) THEN
2167
2168 DH = 1.0E3 * DV / WAREA( K )
2169 CVOLV( K ) = BFVOL( K )
2170 HEADV( K ) = BFDEP( K )
------------ Larger context ----------------------------------------
IF ( CHNFDBK ) THEN
!$OMP PARALLEL DO DEFAULT( NONE ), &
!$OMP SHARED( NFLOWS, RCHMTHD, N0, N1, CVOLV, BFVOL,&
!$OMP WAREA, HEADV, BFDEP, STRWET, NCOLS2, &
!$OMP SFCHEADRT, NSTOVL ), &
!$OMP PRIVATE( F, K, L, M, C, R, DH, DV ), &
!$OMP SCHEDULE( DYNAMIC )
DO F = 1, NFLOWS
IF ( RCHMTHD( F ) .EQ. DIF_WAVE ) THEN
DO K = N0( F ), N1( F )
DV = CVOLV( K ) - BFVOL( K )
IF ( DV .GT. 0.0 ) THEN ! overflow
DH = 1.0E3 * DV / WAREA( K )
CVOLV( K ) = BFVOL( K )
HEADV( K ) = BFDEP( K )
DO L = STRWET( K-1 ) + 1 , STRWET( K )
M = STRWET( NSTOVL+L ) - 1
C = 1 + MOD( M , NCOLS2 )
R = 1 + M / NCOLS2
SFCHEADRT( C,R ) = SFCHEADRT( C,R ) + DH
END DO
END IF ! if overflow
END DO ! end loop on cells K in this reach
END IF ! if flow is diffusive-wave
END DO ! end loop on reaches F
END IF ! if chnfdbk
|
|
0
|
|
|
|
Reply
|
carlie (79)
|
11/6/2009 7:56:20 PM |
|
On Nov 6, 11:56 am, Carlie Coats <car...@jyarborough.com> wrote:
> The debugger-output cut-and-pasted below has me completely at a loss
> (sorry about the wrapping problems).
I can think of several reasons dbx might produce the
results you indicate, but I do not have enough
information to reproduce the problem. Please file
a bug report and include a test case that
demonstrates the problem. If you wish, you can use
http://bugs.sun.com to file the bug report.
Bob Corbett
|
|
0
|
|
|
|
Reply
|
robert.corbett2 (862)
|
11/7/2009 2:31:58 AM
|
|
|
1 Replies
58 Views
(page loaded in 0.056 seconds)
Similiar Articles: Identifying keyboard on Sunray - comp.unix.solarisjeff@cjsa.com (Jeffery Small) writes: > f95-msv@f.kth.se ... The other is the existential question of "what keyboard is plugged in to a Sun Ray session that is not ... dbx : Interpreting stack history of core - comp.unix.solaris ...... Post Question | Groups ... Try "dbxenv language_mode" command on dbx, and set it ... pragma ident "Seongbae Park, compiler, http://blogs.sun ... gdb for Solaris 10 - comp.unix.solarisI have been using dbx (by itself or with Sun Studio 11) to debug my C/C++ programs, but ... I had posted this problem on the comp.unix.programmer newsgroup, but didn't ... dbx shell arrow keys not working - comp.unix.solarissolaris 9 install problem: mouse cursor frozen, arrow keys not ... GUI ... Sun Studio 12: dbx Readme Arrow keys are now ... the Korn shell is limited on Linux ... gfortran or ifort? - comp.lang.fortran... quite new at Fortran, I hope this isn't a stupid question. ... consider to install even more compilers (g95, Sun ... pure function, which I now know is not part of the F95 ... Sun's paper about use of pstack, dbx etc? - comp.unix.solaris ...Solaris Operating System: Sun's paper about use of pstack, dbx etc ... software.itags.org: Solaris Operating System question: Sun's paper about use of pstack, dbx etc ... any good tool to analyze memory corruption problem - comp.unix ...The problem is that it's a batch job, and the current ... So I can only analyze the core file using dbx, > but it ... the AppCrash dtrace program at: http://developers.sun ... How to find memory corruption when malloc is not the cause? - comp ...... solaris] $ I've tried using libumen http://blogs.sun ... on the core file created, but that finds no problems. ... SNIP] What happens when you run it under dbx? (Or is ... Problem with cputime - comp.soft-sys.matlabHi, I have a problem with the 'cputime' function ... x86_64 Java VM Version: Java 1.6.0_12-b04 with Sun ... some problems with vector-valued functions in F90/F95 ... finding, installing dbx. - comp.unix.programmerI'm trying to use dbx to debug an application, but I can't find the dbx binary ... Purify problem or compiler problem? - comp.unix.programmer ... finding, installing dbx ... Documentation - Sun Studio 11 for Solaris PlatformsInformation about the Sun Studio dbx ... data types in the Sun Fortran 95 compiler (f95). ... to solve linear algebra problems and other numerically intensive problems. Sun ... Sun Studio 12 Update 1: dbx ReadmeSun Studio 12 Update 1 dbx Readme ... A. Introduction. This document describes the software corrections, known problems, limitations, and incompatibilities of this ... 7/24/2012 12:08:28 PM
|