Skip to content
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

fix problematic env stray variable #35

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jingkaimori
Copy link
Contributor

When initializing drd struct from tree, some tree containing attributes is created and inserted into drd entry. These tree is supposed to be <attr|...>, but some code will return empty string as "no attributes". Because lolly 1.4.25 changes layout of string, behavior of retrieving array from atomic(string) tree differs from previous version of lolly. Thus tests in mogan on linux fails with corrupted memory. This pr use compound tree instead of string to represent <attr|>, and crash of test is fixed.

@jingkaimori jingkaimori requested a review from da-liii July 8, 2024 17:45
@jingkaimori jingkaimori marked this pull request as draft July 8, 2024 18:49
@jingkaimori jingkaimori marked this pull request as ready for review July 9, 2024 11:10
@da-liii
Copy link
Contributor

da-liii commented Jul 9, 2024

Unit tests needed for this pull request

tree_label inner= make_tree_label (as_string (t[0]));
tree_label outer= make_tree_label (as_string (t[1]));
if (get_nr_indices (inner) > 0) type= get_type_child (tree (inner, arg), 0);
if ((get_nr_indices (inner) > 0) &&
(get_accessible (inner, 0) == ACCESSIBLE_ALWAYS) &&
all_accessible (outer))
return env;
return "";
return tree (ATTR);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么用ATTR这个标记?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原来的空字符串会变成什么?为什么会造成问题?

@da-liii
Copy link
Contributor

da-liii commented Jul 12, 2024

CI卡了,需要升级macOS 11到macOS 12

@jingkaimori jingkaimori requested a review from da-liii July 12, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants