-
Notifications
You must be signed in to change notification settings - Fork 165
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
Segmentation fault when drgn finishes with libkdumpfile #280
Comments
Please let me know if you want me to upload the |
So what happens is that void
attr_dict_free(struct attr_dict *dict)
{
dealloc_attr(dgattr(dict, GKI_dir_root));
if (dict->shared->arch_ops && dict->shared->arch_ops->attr_cleanup)
dict->shared->arch_ops->attr_cleanup(dict);
if (dict->shared->ops && dict->shared->ops->attr_cleanup)
dict->shared->ops->attr_cleanup(dict);
... where attr_remove_override(dgattr(dict, GKI_page_size),
&ddp->page_size_override); and apparently |
Yes, thanks for the reminder… 😩 Attributes must be reference-counted. I'll track this as a libkdumpfile issue. |
Thanks for digging into this! @ptesarik is there something specific drgn is doing to trigger this, or something we can do to work around it? (I guess in the worst case, we could not call |
No, this is a real bug that can be also reproduced without drgn. I have just made a quick fix. There are still other bugs lurking in the code because of missing refcounting, but that was not needed to fix this issue. |
You may want to retest with ptesarik/libkdumpfile@97c716a. |
Works for me, thank you Petr! |
Using a small
vmcore
from an openSUSE Leap 15.5, I get the following on my openSUSE Tumbleweed system:The text was updated successfully, but these errors were encountered: