Error by compiling MKK utility


Topic author
spoofy
Contributor
Posts: 21
Joined: Fri Mar 31, 2023 6:02 pm
Reputation: 0
Location: Erlangen/Germany
Status: Offline

Error by compiling MKK utility

Post by spoofy » Thu Apr 20, 2023 7:20 am

I tryed to compile MKK utility: https://github.com/endlesssoftware/mmk
and CC Crashed.

Code: Select all

$ @compile

   MMK Bootstrap Procedure

$! If you have the SDL compiler installed, then feel free to uncomment the
$! lines below.  However, it is not absolutely necessary as the resulting
$! header files are distributed with the source kit.
$!
$!$ MESSAGE/NOOBJECT/SDL=MMK_MSG.SDL MMK_MSG.MSG
$!$ SDL/VAX/LANGUAGE=CC=ETC_DIR:MMK_MSG.H MMK_MSG.SDL
$ LIBRARY/CREATE BIN_DIR:MMK.OLB
$ CC/NOLIST/OBJECT=BIN_DIR:MMK.OBJ MMK.C
$ LIBRARY/REPLACE BIN_DIR:MMK.OLB BIN_DIR:MMK.OBJ
$ CC/NOLIST/OBJECT=BIN_DIR:FILEIO.OBJ FILEIO.C
$ LIBRARY/REPLACE BIN_DIR:MMK.OLB BIN_DIR:FILEIO.OBJ
$ CC/NOLIST/OBJECT=BIN_DIR:MEM.OBJ MEM.C
$ LIBRARY/REPLACE BIN_DIR:MMK.OLB BIN_DIR:MEM.OBJ
$ CC/NOLIST/OBJECT=BIN_DIR:GET_RDT.OBJ GET_RDT.C
%SYSTEM-F-ACCVIO, access violation, reason mask=04, virtual address=000000000343
0000, PC=00000000006C9993, PS=0000001B
%TRACE-F-TRACEBACK, symbolic stack dump follows
image     module    routine               line      rel PC           abs PC     
DECC$COMPILER  GEM_VER_AREA:<SRC>GEM_IC.BLI;1  CHECK_ATTRIBUTES
                                          #816 00000000006C9993 00000000006C9993
DECC$COMPILER  GEM_VER_AREA:<SRC>GEM_IC.BLI;1  CHECK_TUPLE
                                         #1564 00000000006CD141 00000000006CD141
DECC$COMPILER  GEM_VER_AREA:<SRC>GEM_IC.BLI;1  CHECK_TUPLE_IN_LIST
                                         #2145 00000000006D0461 00000000006D0461
DECC$COMPILER  GEM_VER_AREA:<SRC>GEM_IC.BLI;1  GEM_IC_CHECK_NODE
                                         #2635 00000000006C80BA 00000000006C80BA
DECC$COMPILER  GEM_VER_AREA:<SRC>GEM_IC.BLI;1  GEM_IC_CHECK_NODE
                                         #2671 00000000006C83EE 00000000006C83EE
DECC$COMPILER  GEM_VER_AREA:<SRC>GEM_IC.BLI;1  GEM_IC_CHECK
                                         #2276 00000000006C69BE 00000000006C69BE
DECC$COMPILER  [.src]g2l_module.cxx  G2L_COMPILE_MODULE
                                          #571 0000000000A490D3 0000000000A490D3
DECC$COMPILER  GEM_VER_AREA:<SRC>GEM_CO.BLI;1  GEM_CO_COMPILE_MODULE
                                         #3413 00000000006E2627 00000000006E2627
DECC$COMPILER  COMPILE.C;1  gemc_be_master
                                       #103705 00000000004236FE 00000000004236FE
DECC$COMPILER  COMPILE.C;1  gem_xx_compile
                                       #102916 00000000004223D7 00000000004223D7
DECC$COMPILER  GEM_VER_AREA:<SRC>GEM_CP_VMS.BLI;1  GEM_CP_MAIN
                                         #2643 00000000006D4C1E 00000000006D4C1E
DECC$COMPILER                                0 0000000000AD76D4 0000000000AD76D4
DECC$COMPILER                                0 00000000020F6D6D 00000000020F6D6D
PTHREAD$RTL                                  0 000000008004122C FFFF830008D0322C
PTHREAD$RTL                                  0 0000000080002316 FFFF830008CC4316
                                             0 FFFF8300071FBDC6 FFFF8300071FBDC6
DCL                                          0 000000008006741B 000000007ADFF41B
%TRACE-I-LINENUMBER, Leading '#' specifies a source file record number.
%TRACE-I-END, end of TRACE stack dump
$BAIL_OUT:
$ EXIT 1.or.(0*F$VERIFY(0))
$ cc/version
VSI C X7.4-726 (GEM 50X23) on OpenVMS x86_64 E9.2-1  
$ 


Last edited by mister.moderator on Thu May 25, 2023 3:04 am, edited 1 time in total.

Tags:

User avatar

volkerhalle
Master
Posts: 195
Joined: Fri Aug 14, 2020 11:31 am
Reputation: 0
Status: Offline

Re: Error by compiling MKK utility

Post by volkerhalle » Tue May 23, 2023 11:31 am

Both the PGFIPLHI crash and the DECC$COMPILER crash have been diagnosed and resolved.

Volker.


Topic author
spoofy
Contributor
Posts: 21
Joined: Fri Mar 31, 2023 6:02 pm
Reputation: 0
Location: Erlangen/Germany
Status: Offline

Re: Error by compiling MKK utility

Post by spoofy » Tue May 23, 2023 12:20 pm

When will patch be available?


jreagan
VSI Expert
Master
Posts: 133
Joined: Tue Dec 01, 2020 8:40 am
Reputation: 0
Status: Offline

Re: Error by compiling MKK utility

Post by jreagan » Wed May 24, 2023 11:01 am

There are two bugs here.

1. C compiler touches a bad address. That's a C compiler issue. We're still working on it.

2. C compiler touches a really bad address and the system crashed trying to figure out the ACCVIO to report back to the C compiler. That is fixed in the final V9.2-1 kit.

User avatar

arne_v
Master
Posts: 281
Joined: Fri Apr 17, 2020 7:31 pm
Reputation: 0
Location: Rhode Island, USA
Status: Offline
Contact:

Re: Error by compiling MKK utility

Post by arne_v » Wed May 24, 2023 11:40 am

I am a bit curious about the:
PGFIPLHI, Pagefault with IPL too high

I assume this is the classic error of accessing virtual memory not in physical memory at elevated IPL.

But how can this be triggered by a compiler?

30 years ago on VAX I remember writing code like:

pushl #0
pushab qkast
calls #2,G^SYS$CMKRNL ; call qkast in kernel mode

.entry qkast,^m<r2,r3,r4,r5>
...
UNLOCK SCHED,newipl=#IPL$_ASTDEL
...
; doing stuff and if accessed virtual memory was not in RAM then system crash
...
SETIPL #0 ; reset IPL
movl #SS$_NORMAL,r0 ; ok
ret ; return

and I saw a lot of system crashes before that code worked.

:-)

But the compiler is supposed to be all user mode right?

And even if it for some weird reason decided to CMKRNL then it should not raise IPL.

And "trying to figure out the ACCVIO to report back" confuses me even more, because you have a few integers like mode (00 or 04), the address accessed and the PC of the code doing it. But after the ACCVIO wouldn't that just be integer data and no need to actually try and access the addresses??
Arne
arne@vajhoej.dk
VMS user since 1986


sms
Master
Posts: 288
Joined: Fri Aug 21, 2020 5:18 pm
Reputation: 0
Status: Offline

Re: Error by compiling MKK utility

Post by sms » Wed May 24, 2023 12:42 pm

Code: Select all

> When will patch be available?

   Who cares?  Between the changes in the Git pull request, and the
change to get_rdt.c shown above, what's stopping your progress?


hb
Valued Contributor
Posts: 57
Joined: Mon May 01, 2023 12:11 pm
Reputation: 0
Status: Offline

Re: Error by compiling MKK utility

Post by hb » Thu May 25, 2023 6:23 am

arne_v wrote:
Wed May 24, 2023 11:40 am
I am a bit curious about the:
PGFIPLHI, Pagefault with IPL too high
...
It's all in the forum's entry where this was reported. The current image is DECC$COMPILER.EXE, the bugcheck happened in EXCEPTION. You should be able to see the IPL as well.


jreagan
VSI Expert
Master
Posts: 133
Joined: Tue Dec 01, 2020 8:40 am
Reputation: 0
Status: Offline

Re: Error by compiling MKK utility

Post by jreagan » Thu May 25, 2023 10:08 am

> And "trying to figure out the ACCVIO to report back" confuses me even more

For the ACCVIO, the system has to determine if the address exists but you aren't allowed to see it or if the virtual address doesn't even exist. The system tripped over itself due to different sized page table entries (we take advantage of different sized page table entries in x86 for efficiency)

The fact that it was the C compiler running is just an accident.


willowtech
Visitor
Posts: 1
Joined: Thu Jun 08, 2023 4:26 pm
Reputation: 0
Status: Offline

Re: Error by compiling MKK utility

Post by willowtech » Thu Jun 08, 2023 4:36 pm

I have a working mmk v5.1 on x86 if anyone is interested in testing a copy. Using it on a complex build project without any issues so far.


sms
Master
Posts: 288
Joined: Fri Aug 21, 2020 5:18 pm
Reputation: 0
Status: Offline

Re: Error by compiling MKK utility

Post by sms » Thu Jun 08, 2023 6:19 pm

Code: Select all

> I have a working mmk v5.1 on x86 [...]

   Did you make any changes other than the ones already discussed here?

> [...] Using it on a complex build project without any issues so far.

   If you're looking for problems, many of the freeware ports on
antinode.info use MMS /EXTENDED_SYNTAX for their automatic dependency
generation.  II haven't tried it lately, but I've never seen MMK work
for them.

User avatar

arne_v
Master
Posts: 281
Joined: Fri Apr 17, 2020 7:31 pm
Reputation: 0
Location: Rhode Island, USA
Status: Offline
Contact:

Re: Error by compiling MKK utility

Post by arne_v » Thu Jun 08, 2023 6:46 pm

willowtech wrote:
Thu Jun 08, 2023 4:36 pm
I have a working mmk v5.1 on x86 if anyone is interested in testing a copy. Using it on a complex build project without any issues so far.
Could you put it up for general download via link?
Arne
arne@vajhoej.dk
VMS user since 1986

Post Reply