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

Error due to empty field #14520

Open
LeoneChen opened this issue Jul 7, 2024 · 0 comments
Open

Error due to empty field #14520

LeoneChen opened this issue Jul 7, 2024 · 0 comments

Comments

@LeoneChen
Copy link

In get_stack_frame, it assumes that the subfields in stack_frame_index_ all have valid values, for example file_location.function_name_id() must have a non-zero value, and then it will be used in this line:

stack_frame_index_->function_names(file_location.function_name_id() - 1);

But when I have such a xla::HloModuleProto, corresponde json likes this file test.json . Pay special attention to this field fileLocations, the second item of function_name_id is empty, so the result in the above code line is '0 - 1'.

"fileLocations": [
            {
                "fileNameId": 1,
                "functionNameId": 1,
                "line": 67
            },
            {
                "fileNameId": 1,
                "line": 59
            }
        ],
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

No branches or pull requests

1 participant