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
-build-file
with a core seems stateful
#6966
Comments
Hypotheses we experimented with:
|
Great timing! Ran into this bug for the 3rd time today (over the last ~6 months) and had no idea what was causing it, and wasted an hour trying to get a repro without success. I was tempted to post a completely unhelpful issue saying "there's something wrong with the dojo subject but I don't know what" but wanted to gather more information from coworkers first. So thanks for finding a repro and posting this issue. |
Yes. To test 1's viability, we renamed the hint (and initial dojo face, which was |
This is crashing in the jet dashboard. This fast hint is not valid and is ignored by the jet dashboard:
This one is valid, and tries to register
Commenting out the first line means that the subject is whatever the file was built against (presumably zuse). Adding back in the first line then matches that existing registration, and attempts to check the current subject against it (as a core). The crash in the jet dashboard is taking the head of |
The jet dashboard needs to be updated to be resilient against bad inputs. I still need to figure out where is best to add additional checks/no-ops. But it should be noted this example has an invalid in it. And, in general, it's impossible to prevent weird things from happening with stateful jet registrations while playing around with hints like this. |
Describe the bug
Flipping the definition of a core in a file back and forth between two versions breaks the compilation via
-build-file
on the second flip. See reproduction. #5242 may be related.To Reproduce
Steps to reproduce the behaviour:
vere-v3.0
fakezod running urbit/urbitdevelop
|mount %base
base/pkg/arvo/lib/vial.hoon
with contents:~zod:dojo> =v -build-file %/lib/vial/hoon
vial.hoon
|commit %base
then build againvial.hoon
|commit %base
then build againExpected behaviour
It should build successfully, as it did the first time.
System (please supply the following information, if relevant):
vere-v3.0
and%411
(I think?)%base
hash:f6n8d
The text was updated successfully, but these errors were encountered: