-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AuthPool (C1) on first block: 2 new items in the auth pool for each core, 1 expected #90
Comments
Moving my comment this to this issue.
I think this is why I hardcoded the gas limit previously when testing this. With my implementation I need the gas to be >= 155 to not end up with OOG.
My instruction 636 loads from memory location 4278124587 which exists. Reg 6=4278124591 and immediate=-4 and I end up with a matching code length same as the vector. I do not receive any traps. |
@davxy, @sourabhniyogi Program:
Actual Operation Results (All Values in Decimal):
The bootstrap service blob contains the following opcodes. You can check them to see if they contain any bugs.
Because the information you provided is limited, we can only provide the actual results of our operation. We hope this is useful. |
Ok @davxy we arrive at
in our 64-bit interpreter which matches up with the desired preimage length so why do we get this from the disassembler
whereas your trap report from your "direct" @koute PolkaVM integration (?) has
It is as if you are running 32-bit PVM and we are running our 64-bit interpreter? |
Looks like in our trace s0 and s1 are both 0 before |
From what I can see the trapping is most likely a symptom of the test program being buggy when it gets inputs it doesn't expect, and has nothing to do with PVM. @sourabhniyogi Can you please paste the contents of the memory starting at 0xfeff0000 for this test vector? From the JavaJAM traces pasted in the previous issues they have this blob over there:
which if I try to decode with our code I get:
...which looks like nonsense as the result error is 141 for some reason here? So either this blob is incorrect, or our code is incorrect. While we are passing this blob in our failed run:
...which decodes like this:
and the first divergence between our run and JavaJAM run happens when the first byte of the package hash is compared at offset 339 ( |
Contents of the memory starting at 0xfeff0000:
The way we decode AccumulateParams:
The reason why our results are different is due to the way we encode the Wrangled Operand Tuples (12.18), as shown below: Your encoding of (12.18) is: Our encoding of (12.18) is: and use same way to decode it as shown in bootstrap.pvm Since GP doesn't define a codec for Wrangled Operand Tuples, as @sourabhniyogi mention before, I followed the original order to encode it. Hope this makes sense! |
@clw8998 looks like using the same order as 12.18 we're able to proceed. Unfortunately the last vectors revision introduced a regression for what concerns the AuthPool (C1).
What we Expect
What we get:
|
* genesis has 2 preimages, must have 2x81 * authorization c1 single apply #90
* genesis has 2 preimages, must have 2x81 * authorization c1 single apply #90
@davxy |
Alright we're almost there :-))) |
Cool @davxy -- it appears with #101 we have come full circle back to the |
@davxy your review at this would be super appreciated https://github.com/gavofyork/graypaper/pull/251/files |
Closing this as we appear to have enough people not having an auth pool/queue issue, but look forward to your next issue @davxy |
From @davxy in #74:
@sourabhniyogi @jaymansfield
Alright, from the disassembled blob I can see the HF calls, but we never reach them during execution because of 2 independent problems:
From what I can can tell instruction at 636 tries to load in
a1
4 bytes from address 0xfffffffc .This is most certainly due to this code here:
jamtestnet/services/jam-duna/bootstrap/src/main.rs
Lines 147 to 148 in f5b2a03
Where apparently the
work_report_address
is 0? So maybe is not correctly assigned in the loop above?The text was updated successfully, but these errors were encountered: