¿ªÔÆÌåÓý

Re: Do I have a looping issue?


 

¿ªÔÆÌåÓý

Joe,

A bit of researching turned this up from 19 years ago.

?

?

if you scroll down you will see:-

?

I am now getting

HCCP014I CPU0000: Protection exception CODE=0004 ILC=4
SW=078C2000 00050528 INST=BA661000 CS 6,6,0(1)
:00FD2070:K:06=009EC818 809ECF98 00404040 40404040 ..H.

?

So the same as Jim reports. Volker responded

?

This particular program interrupt does not lead to a dump. It is
"working as designed" - the CS instruction is issued by an IBM module
to test if a certain address is valid or not. If there is a program
interrupt, MVS knows the address in question is not "valid" - and
goes on with its merry business. It never bothers to write an SVC
dump in this case

?

So not as I suggested but working as designed.

Dave

?

?

From: [email protected] <[email protected]> On Behalf Of Joe Monk
Sent: 26 October 2022 13:41
To: [email protected]
Subject: Re: [h390-vm] Do I have a looping issue?

?

Also dave,

?

If you look at the instruction, it is RS ?R1,R3,B2,D2

?

So, BA6610000 which is a compare and swap R6 and R1, moving R6 to R1 if they are equal...

?

Here are the registers:

?

22:21:46.722 000060B8 HHC02269I GR00=00000001 GR01=00FE3E30 GR02=00FE3000 GR03=00FE3000

22:21:46.722 000060B8 HHC02269I GR04=009BC7B0 GR05=00000C5C GR06=009BCD10 GR07=00000C54

?

I dont see anything about R6 or R1 that would be an issue? R6 =9BCD10, R1=FE3E30...

?

Joe

?

On Wed, Oct 26, 2022 at 7:06 AM Joe Monk via <joemonk64=[email protected]> wrote:

Dave,

?

Compare_and_swap is a non-privileged instruction.? But he's getting a protection exception. Now how is that possible?

?

If we look at his PSW ... 078D2000000383EC?

?

DAT is controlled by bit 5 in a EC mode PSW. He's got a 7 in the second nibble, so the DAT bit is on. Thus, DAT is on.? So, with DAT on, how is he getting a protection exception?

?

Compare and swap is two registers and a memory location. Nothing requiring a supervisor?key...

?

Joe

?

On Wed, Oct 26, 2022 at 6:27 AM Dave Wade <dave.g4ugm@...> wrote:

Joe,

But isn¡¯t this VM/370 and classic MVS 3.8J?

Dave

?

From: [email protected] <[email protected]> On Behalf Of Joe Monk
Sent: 26 October 2022 11:39
To: [email protected]
Subject: Re: [h390-vm] Do I have a looping issue?

?

ISTM that this is normal for VM ...

?

"Some?instructions are?valid?either?in the?370-XA mode?or in the System/370?mode,?but not in both modes.?If instruction?interception?is either?mandatory or conditional in?the?mode?in which the instruction?is valid,?then?it?is?undefined whether?instruction interception?is?recognized unconditionally or?an?operation exception?is?recognized in the invalid?mode.

When?code?04?is?stored, guest?instruction?execution?is?suppressed, except for the?COMPARE AND?SWAP,?COMPARE?DOUBLE?AND?SWAP,?and?TEST?AND?SET?instructions?(which are completed)."

page 11

Note that his code 4 is occurring on a compare_and_swap ...

?

Joe

?

?

?

On Tue, Oct 25, 2022 at 11:29 PM Fish Fish <david.b.trout@...> wrote:

Jim Snellen wrote:

> I am running VM/370 with DOS/VS as a guest machine and
> MVS 3.8J TK4- as a guest machine.? I use HercGUI

Which should not make any difference.

> and Hercules version 4.4.1.10647-SDL-gd0ccfbc9.? I've recently
> noticed that a recurring display occurs:
>
> HHC02324I PSW=078D2000000383EC INST=BA661000 CS 6,6,0(1) compare_and_swap
> HHC02326I V:00FE3E30:R:00000000007E3E30:K:06=009BCD10 809BCF98 ...
[...]
> HHC00801I Processor CP00: Protection exception code 0004 ilc 4

[...]
> Am I doing something wrong to cause this?? It looks like
> these messages are going to the log file and there's a lot
> of these!

They *appear* to be legitimate errors, as in whatever you're running in/on your guest is not doing something correctly (i.e. something is malfunctioning, i.e. some piece of software you're running is buggy).

According to the PSW, the program is running in Problem State with PSW Key 8 (the "8D" in your PSW), but the storage the 'CS' (Compare and Swap) instruction is trying to access is Key 0 (the '0' in "K:06"), which by my calculations would indeed cause a bona fide Protection Exception Program Interrupt.

<shrug>

Check your code. I suspect it's buggy.

--
"Fish" (David B. Trout)
Software Development Laboratories

mail: fish@...







Join [email protected] to automatically receive all group messages.