* Re: pow() Alpha problem (from Risks Digest, InfoWorld)
[not found] <5tkqjn$a14@usenet.pa.dec.com>
@ 1997-08-27 4:00 ` Chris Chiesa
1997-08-28 4:00 ` Dave Green
1 sibling, 0 replies; 6+ messages in thread
From: Chris Chiesa @ 1997-08-27 4:00 UTC (permalink / raw)
Stephen Hoff Hoffman wrote:
>
> "Digital has investigated the issue surrounding the pow() function returning
> different results on two Digital Alpha systems, which was highlighted in
> the InfoWorld article from July 21, 1997. Digital was unable to verify,
> duplicate or confirm that there is a problem in any of our hardware, and we
> strongly believe that this was an isolated issue pertaining to one system.
> There have been no additional problems reported to Digital pertaining to
> this matter."
>
> Background: The first widely-distributed report of a problem with the
> pow() routine on a particular system I am aware of was made in Risks
> Digest 19.24. This initial report was apparently submitted by Gregory
> F. March, and -- per a later message in Risks Digest -- was resolved
> after an on-site repair visit by a DIGITAL service representative;
> the pow() function is now operating as expected.
For what it's worth, I just now encountered a weird situation on an
Alpha (not
sure precisely which "model") CPU running <cringe> Windows NT 3.51,
while
developing an ANSI C program using <cringe> Microsoft Visual C++ 2.0.
Is any-
one here interested in hearing the details? Anyone think he/she might
be able
to shed some light on it if I go into detail? If so, read on. If not,
feel
free to bail right now. And if you DO have something to add, please
e-mail me
even if you ALSO POST, as my newsfeed here is very unstable and I rarely
see
even my OWN articles, much less any FOLLOWUPS. I thank you in advance
and
will happily do the same for YOU someday if and when you request it in
an area
where I can be of help.
Details follow.
Scenario: Compiling, linking, and executing ANSI C "console
application" in
MSVC++ (2.0) environment. Upon attempting to execute a statement
involving
a test-for-inequality between two entries in a two-dimensional array of
double (displayed in Locals Window as 3.0000000000000 and
0.20000000000000
respectively, which is AS EXPECTED), the app pops up the message
"Unhandled Exception in <appname>: 0xC0000090: Float Invalid Option"
and essentially "crashes."
Investigation: MSVC++ Debugger's Disassembly Window reveals the
offending
instruction as
cmptlt psr,f0,psr
I don't recognize Alpha register-name "psr," and Alpha Architecture
Handbook
does not list it. Register Window lists many similarly unfamiliar
register-
names: "v0," "t0" through "t12," "s0" through "s5," "a0" through "a5,"
"ra,"
"fir," "fpcr," and "softFpcr." FWIW, _no_ "pc" appears; instruction's
address is observed in register "fir." Contents of register "psr" are
displayed
as
psr = 00000003 mode=1 ie=1 irq1=0 int5=0 int4=0 int3=0 int2=0 int1=0
int0=0
and of register "f0" as
f0 = +3.00000000000000E+000
Memory at instruction's PC contains longword
0x580114C0
Hand-disassembly against Alpha Architecture Handbook discloses
instruction
characteristics/properties:
Opcode: 0x16 -- IEEE FP instruction
Fa: 0
Fb: 1
Function: 0x0A6 ==> CMPTLT
Fc: 0
Instruction would _seem_ to disassemble as
CMPTLT F0,F1,F0
Contents of register "f1" are displayed as
f1 = +4.94065645841247E-324
Discussion: The good news is that both the MSVC++ Debugger and I
disassemble
the offending instruction to the same opcode: CMPTLT ("Compare
T_floating
Less Than"), which correlates well with the "double-comparison" portion
of
the source statement. The bad news is everything else. To wit:
- MSVC++ disassembles the instruction as referencing "f0" once and
"psr" twice, whereas I disassemble it as referencing "F0" twice and
"F1" twice. At first glance one assumes that "f0" <--> "F0", but
this is inconsistent with the two different disassemblies. The
only possible conclusion, but a disturbing one, is that "f0" <-->
"F1"
and "psr" <--> "F0". Does anyone know whether that is correct, or
even possible? NT/MSVC++ seem to have a penchant for "renaming" the
Alpha registers...
- It doesn't seem to make much sense to perform a comparison (CMPTLT
instruction) between two registers ("psr" and "f0") whose values
MSVC++ displays in such different formats; clearly, "f0" is a float-
ing-point register, and indeed it appears to contain an (IEEE?) FP
value appropriate to the source-level variable on the left-hand
side of the comparison expression. But "psr" is almost just as
clearly NOT an FP register of ANY stripe -- and the FP value of the
variable on the RIGHT-hand side of the source expression is not in
evidence in ANY of the displayed "FP registers."
It almost appears that the code has been somehow "miscompiled." That
would
have to be a bug in MSVC++. Moreover, this SAME SOURCE STATEMENT
compiles, links,
and EXECUTES PROPERLY, in another application that uses a slight
modification
of the SAME SOURCE FILE. (Alas, I do not currently have that
application built
nor buildable, having LOST the "original" source file in the course of
making
the "modified" one.)
I would be VERY interested in any light that anyone might be able to
shed on
this. I would also be very interested in any suggestions of OTHER
PLACES TO
GO for help with this situation! The only alternative I can currently
envision,
is to outright REPLACE my Alpha NT system with an <cringe> INTEL system.
:-(
Thanks in advance,
Chris Chiesa
lvt-cfc@servtech.com
displayed in such drastically different formats in the Register Win-
dow
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: pow() Alpha problem (from Risks Digest, InfoWorld)
[not found] <5tkqjn$a14@usenet.pa.dec.com>
1997-08-27 4:00 ` pow() Alpha problem (from Risks Digest, InfoWorld) Chris Chiesa
@ 1997-08-28 4:00 ` Dave Green
1997-08-28 4:00 ` fun and games with 11/40 microcode (was Re: pow() Alpha problem (from Risks Digest, InfoWorld)) Mark Bartelt
[not found] ` <5uk5ap$spq@milo.mcs.anl.gov>
1 sibling, 2 replies; 6+ messages in thread
From: Dave Green @ 1997-08-28 4:00 UTC (permalink / raw)
Stephen Hoff Hoffman wrote:
>
>
> [problem with pow() function...]
>
> -- was resolved
> after an on-site repair visit by a DIGITAL service representative;
> the pow() function is now operating as expected.
>
>
Hey, these things happen ... back in my techie days I worked on a
PDP11/40 running RSX that would boot up perfectly OK but as soon as any
command was typed in and <cr> pressed RSX came back with a command
syntax error message. No commands could be entered.
Running the trusty CPU diags revealed an error with the setting of the
overflow (V) bit.
I was able to setup a microcode trap using the ucode stepper card and
step through the code that set the bit. Scoping out the relevant chip
saw the correct inputs but incorrect output.
Replacing the chip fixed the problem (you could do that on an 11/40).
Best fix I ever did.
Dave
--
** Please remove the -anon from my address if replying by email **
^ permalink raw reply [flat|nested] 6+ messages in thread
* fun and games with 11/40 microcode (was Re: pow() Alpha problem (from Risks Digest, InfoWorld))
1997-08-28 4:00 ` Dave Green
@ 1997-08-28 4:00 ` Mark Bartelt
[not found] ` <3406047E.F469FE7F@bcl-anon.co.nz>
[not found] ` <5uk5ap$spq@milo.mcs.anl.gov>
1 sibling, 1 reply; 6+ messages in thread
From: Mark Bartelt @ 1997-08-28 4:00 UTC (permalink / raw)
[ Dave Green ]
>> Hey, these things happen ... back in my techie days I worked on a
>> PDP11/40 running RSX that would boot up perfectly OK but as soon as any
>> command was typed in and <cr> pressed RSX came back with a command
>> syntax error message. No commands could be entered.
>>
>> Running the trusty CPU diags revealed an error with the setting of the
>> overflow (V) bit.
>>
>> I was able to setup a microcode trap using the ucode stepper card and
>> step through the code that set the bit. Scoping out the relevant chip
>> saw the correct inputs but incorrect output.
>>
>> Replacing the chip fixed the problem (you could do that on an 11/40).
>>
>> Best fix I ever did.
Heh, that *does* bring back memories. One of the most amazing examples of
hardware wizardry that I remember from those days involved an 11/40 which
had been sitting around unused for a few years, until someone in the group
I was working with at the time decided to resurrect it.
However, it had a tendency to crash randomly. Not often, but enough to be
annoying. And, seemingly, randomly. However, the person who intended to
use this machine was astoundingly talented, so he got out the schematics
(yes, remember when we got full schematics with every DEC machine we got?)
and started poring over them. The schematics included not only the circuit
diagrams, but also a complete listing of the microcode. (I no longer recall
whether the microcode listings were in octal or binary, though. ;-)
Anyway, to make a very long story short, he determined that these crashes
would occur only when ...
(1) A "negate" instruction was immediately followed by a "jump" instruction.
(2) There was a DMA transfer in progress during the time that the "negate"
and "jump" were executed.
When this combination of conditions occurred, the "jump" would jump to the
wrong address!
Don't ask me how he managed to characterize the problem to this degree. As
I said, he's a sharp guy. And from the microcode listings, he found the bug
which was causing the misbehaviour. So he called somebody in DEC's central
engineering world, and found out that DEC had discovered this bug themselves
a few years previously, and had issued an ECO. But because this machine had
just been sitting around unused, it hadn't been covered by a service contract,
so the ECO never got installed on it.
Mark Bartelt 416/978-5619
Canadian Institute for mark@cita.utoronto.ca
Theoretical Astrophysics http://www.cita.utoronto.ca/~mark
"Clothes not busy being worn are busy drying." -- Dylan, on laundry day
[ singing "It's all right, ma (I'm only bleaching)" ]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: fun and games with 11/40 microcode (was Re: pow() Alpha problem (from Risks Digest, InfoWorld))
[not found] ` <tater-skins-ya023180003008971305560001@news.patriot.net>
@ 1997-09-02 4:00 ` Dave Green
0 siblings, 0 replies; 6+ messages in thread
From: Dave Green @ 1997-09-02 4:00 UTC (permalink / raw)
Ramon L. Tate wrote:
>
> Well, guys, at the risk of starting a p*ssing contest, there are
> SEVERAL
> ancient PDP-11 systems humming along at the National Institutes of
> Health
> where I hang out during the daytime. I can't say authoritatively which
> one
> is the oldest, but this thread has activated my curiosity
> sufficiently to
> do a bit of digging...(that's archeological, of course :-)
>
> Reporting back some day soon,
Feel free to p*ss :)
... I'd be interested to hear what sort of aged PDP's are still in
revenue earning service.
Dave
--
** Please remove the -anon from my address if replying by email **
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: fun and games with 11/40 microcode (was Re: pow() Alpha problem
[not found] ` <5uk5ap$spq@milo.mcs.anl.gov>
@ 1997-09-04 4:00 ` Joe Landis
1997-09-05 4:00 ` Alan Frisbie
0 siblings, 1 reply; 6+ messages in thread
From: Joe Landis @ 1997-09-04 4:00 UTC (permalink / raw)
I wonder how many Bridgeport Series I CNC vertical mills are still running in
machine shops out there? We shipped thousands of these in the late 70's- early
80's with an LSI-11 running the show. OS in 4KW ROM and another 4KW of onboard
RAM that was shared part program store and system/stack space. 3 axis linear
and 2 axis circular interpolation was done in software, one .0005" step ahead,
and hardware registers were INC/DEC'd in an ISR for the "line time clock" which
was really a ramped VCO peaking at 20khz or so. Our clock board also had a
cycle stealing DRAM refresh so we could disable the CPU board DRAM refresh. It
ran in burst mode and preempted the clock interrupt, making the axis step
motors misstep.
Joe Landis
(landisj@nad.com)
Control systems programmer and hardware hacker in another life.
Systems/Network Manager for now...
P.S. Jim if you're out there, Hi! You too Art.
In article <5uk5ap$spq@milo.mcs.anl.gov>, scandora@cmt.anl.gov (Tony Scandora 630-252-7541) writes:
> In article <340B9823.D8C3675@bcl.co.nz>, Dave Green <dave@bcl.co.nz> writes:
>>.... I'd be interested to hear what sort of aged PDP's are still in
>>revenue earning service.
>
> Our Analytical Chemistry Laboratory has an ICP mass spec (a big
> expensive instrument to non-chemists like me) controlled by a Falcon.
> The Falcon, also called an SBC-11/21 if my memory serves me correctly,
> is a dual size board containing a T11 unmapped PDP-11 on a chip, 16KW
> of RAM, a pair of serial interfaces, and a parallel interface. The
> parallel interface goes to to the instrument's control circuitry and
> one of the serial interfaces goes to an LSI-11/73.
>
> The LSI-11/73 originally ran RSX-11M/Plus booted from an RL02, but now
> has a SCSI disk on a CMD host adaptor. It talks to the Falcon using
> direct QIOs to Jim McGlinchey's DZV driver. The RSX terminal driver
> keeps up with the DZV most of the time, but the instrument's
> communication protocol doesn't recover from lost interrupts, which
> loses measurements. We switched to Jim McGlinchey's driver, and it
> has never lost an interrupt.
>
> Unfortunately, to reload the Falcon, we have to boot RT-11 from an RL02
> on the LSI-11/73 and plug the Falcon into a DLVJ port because RT-11
> won't load over a DZV and we don't have an RSX Falcon loader.
>
> It's not pretty, but it works, requires almost no maintenance, and we
> have lots of spare parts. The Falcon only has to be reloaded after
> power failures, and RSX and the instrument software work. We could
> switch to a PC, but that would require upgrading all of the control
> electronics in the instrument, a very expensive proposition.
>
> Tony Scandora, Argonne National Lab, 630-252-7541
> scandora@cmt.anl.gov
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: fun and games with 11/40 microcode (was Re: pow() Alpha problem
1997-09-04 4:00 ` fun and games with 11/40 microcode (was Re: pow() Alpha problem Joe Landis
@ 1997-09-05 4:00 ` Alan Frisbie
0 siblings, 0 replies; 6+ messages in thread
From: Alan Frisbie @ 1997-09-05 4:00 UTC (permalink / raw)
In article <1997Sep4.225051.723@main03>,
landisj@nad.com (Joe Landis) writes:
> I wonder how many Bridgeport Series I CNC vertical mills are still
> running in machine shops out there? We shipped thousands of these in
> the late 70's- early 80's with an LSI-11 running the show.
I don't know about machine shops, but I have one (BOSS-5) running in
my garage. Besides the mundane jobs like cutting the lock strike
cutouts in the gate posts for my new fence, I am using it to sculpt
the turbine blades for a model jet engine (the Schreckling turbine,
for those of you who are into that sort of thing).
My Bridgeport CNC is very unusual. It was the one that Bridgeport
brought to the Los Angeles WESTEC machinery convention to announce
the product. As such, it had been given a special paint job: gold,
instead of the traditional Bridgeport gray. When I bought it (I am
the third owner), it was in excellent condition, needing only a good
cleaning and painting. This led to the wrenching decision of
whether to keep the special gold color or return to traditional
gray. I chose to keep gold, even though I could not match the
color exactly.
I would dearly love to know more about the internals of the software.
(source code would be wonderful!). The maintenance manual is one
of the best I have ever seen. It even has the CSR map and the
micro-ODT commands to use when debugging! However, there are
a few minor annoyances in the logic that I would like to change,
but this would require a source listing.
What was the operating system for the BOSS-5? Jim McGlinchey
recalls that it was a severely-hacked RSX-11S, but someone else
told me that it was derived from RT-11. The editor is obviously
a slightly modified EDI (EDIT-11), with a minor bug added.
Can you tell me how the second serial port (RDI) is used? I cannot
find anything in the manuals about it.
Also, who were the people who worked on the software?
--
-- "From:" line deliberatly munged to prevent harvesting by spambots.
-- Alan E. Frisbie Frisbie "@" Flying-Disk.Com
-- Flying Disk Systems, Inc. (Remove quotes before replying)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1997-09-05 4:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <5tkqjn$a14@usenet.pa.dec.com>
1997-08-27 4:00 ` pow() Alpha problem (from Risks Digest, InfoWorld) Chris Chiesa
1997-08-28 4:00 ` Dave Green
1997-08-28 4:00 ` fun and games with 11/40 microcode (was Re: pow() Alpha problem (from Risks Digest, InfoWorld)) Mark Bartelt
[not found] ` <3406047E.F469FE7F@bcl-anon.co.nz>
[not found] ` <tater-skins-ya023180003008971305560001@news.patriot.net>
1997-09-02 4:00 ` Dave Green
[not found] ` <5uk5ap$spq@milo.mcs.anl.gov>
1997-09-04 4:00 ` fun and games with 11/40 microcode (was Re: pow() Alpha problem Joe Landis
1997-09-05 4:00 ` Alan Frisbie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox