Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: lucia@savvy.zko.dec.com (Tim Lucia)
Subject: Re: Debugger problems on DEC Alpha "DEC3000_500"
Date: 1995/07/07	[thread overview]
Message-ID: <3tjb0k$bl0@nntpd.lkg.dec.com> (raw)
In-Reply-To: 3tj4a0$bes@fstgds15.tu-graz.ac.at


In article <3tj4a0$bes@fstgds15.tu-graz.ac.at>, heidrun@fmechds01.tu-graz.ac.at (Heidrun Kirchweger) writes:
|>I work on a DEC Alpha "DEC3000_500" and get a lot
|>of troubles debugging Fortran code with dbx and gdb 4.14
|>
|>System:
|>DEC OSF/1 V3.0 (Rev. 347); Mon Feb 27 10:32:32 MET 1995 
|>DEC OSF/1 V3.0 Worksystem Software (Rev. 347)
|>
|>The debuggers show error messages or false values like the following:
|>
|>gdb:
|>----
|>#1  0x1203e6c60 in vhelv_ (NELE=
|>Error accessing memory address 0xffffffffffffffec: Invalid argument.
|>
|>#3  0x1204005e8 in vhptpl_ (PHIO=
|>Error accessing memory address 0xffffffffffffffec: Invalid argument.
|>
|>But NELE and PHIO have the correct values if I put a print statement
|>in my code.
|>
|>Breakpoint 1, vhptpl_ (PHIO=0.0944537073, PHIN=0.106241979, IBORD=622770257921,
|>    IBPE=(300647710765), IBPF=(17179869188), NPBN=4294967304, NHEX=(1241245548833),
|>    IBVE=(523986010126), IBVF=(8589934594), DIFFM=0.472291797) at vhptpl.f:68
|>
|>These values are ridiculous, because print-Statements in the code show the
|>correct values. Strangely the same error occurs with dbx:
|>
|>dbx:
|>----
|>   1 vhelv(NELE = [bad address (0xffffffffffffffec)], VX = [bad address (0xea60)],
|>VY = [bad address (0x3cf4cd37)], VZ = [bad address (0x0)], FBND = (...)) 
|>["vhelv.f":29, 0x1203e6c5c]
|>
|>   3 vhptpl(PHIO = [bad address (0xffffffffffffffec)], PHIN = [bad address (0xea60)],
|>IBORD = [bad address (0x3cf4cd37)], IBPE = [bad address (0x0)], IBPF = [1]
|>   -1040915918 , NPBN = 916501059, NHEX = [1]  289
|>
|>If I debug on a DECstation 5100 everything works fine, and the correct
|>values are shown.
|>
|>Is this a known bug, and are there fixes to it?
|>
|>Another question: Is there a switch in gdb so that it works 
|>case-insensitive?
|>
|>--
|>  ,-~~-.___.      Heidrun Kirchweger          ,-~~-.___.
|> / |  '     \     Department of Mechanics    / ()=(()   \
|>(  )         0    TU Graz, Austria          (  |         0    \,`/ /
|> \_/-, ,----'                                \_,\, ,----'    _)..  `_
|>    ====           //   A collection of ##XXXxxxxxxx        ( __  -\
|>    /  \-'~;    /~~~(O) 3-d images              /  ---'~;       '`.
|>   /  __/~|   /       | can be viewed at:      /  __/~|-       ( \>_-_,
|> =(  _____| (_________|                      =(_______|        _||_ ~-/
|>          http://fmechds01.tu-graz.ac.at/heidrun/heidrun.html
|>

Which Fortran compiler (f77 or f90) and what version are you using?  Can
you post (or mail me) some sample code to look at?  Have you tried 
DECladebug on it?  DECladebug has very good (and ever getting better)
support for Fortran.  

From the symptoms, I'd say that dbx & gdb are decoding the parameters 
NELE and PHIO incorrectly.  The large hex number (actually, a small 
negative offset) generally indicate parameters passed on the stack,
rather than in registers.  I'd need to see the symbol type and storage
class information to be sure.  Are they dynamic arrays by any chance?

Regards,
Tim

-- 
Timothy J. Lucia - DECladebug            Email:    mailto:lucia@zko.dec.com
Digital Equipment Corporation            Phone:           603.881.2615
110 Spitbrook Road ZKO2-3/K06            Fax:             603.881.0120
Nashua, NH  USA  03062-2698              I'd rather be fishing, thanks.



      reply	other threads:[~1995-07-07  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-07-07  4:00 Debugger problems on DEC Alpha "DEC3000_500" Heidrun Kirchweger
1995-07-07  4:00 ` Tim Lucia [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox