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

[Bug][C++] EdgeInfo dump got segment fault #338

Closed
1 task done
acezen opened this issue Jan 24, 2024 · 1 comment · Fixed by #339
Closed
1 task done

[Bug][C++] EdgeInfo dump got segment fault #338

acezen opened this issue Jan 24, 2024 · 1 comment · Fixed by #339
Assignees
Labels
bug Something isn't working

Comments

@acezen
Copy link
Contributor

acezen commented Jan 24, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

auto edge_info = CreateEdgeInfo("person", "knows", "person", 100, 100, 1024, true, {}, {})
edge_info->Dump()

got segment fault error

Expected Behavior

dump success

Minimal Reproducible Example

auto edge_info = CreateEdgeInfo("person", "knows", "person", 100, 100, 1024, true, {}, {})
edge_info->Dump()

Environment

  • Operating system: Ubuntu 20.04
  • GraphAr version: v0.11.0

Link to GraphAr Logs

No response

Further Information

No response

@acezen acezen self-assigned this Jan 24, 2024
@acezen
Copy link
Contributor Author

acezen commented Jan 24, 2024

The error raise because
https://github.com/alibaba/GraphAr/blob/6a50e9ee287cdea96a59d210efc4dada2443ee5a/cpp/src/graph_info.cc#L875
do not check impl_->version_ is not null before ToString

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant