Bug 695191
Summary: | segfault due to invalid 'conn' pointer after killing "corosync-cfgtool -r" | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tim Serong <tserong> | ||||
Component: | corosync | Assignee: | Jan Friesse <jfriesse> | ||||
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rawhide | CC: | agk, fdinitto, sdake | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 696887 (view as bug list) | Environment: | |||||
Last Closed: | 2011-04-15 07:15:32 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 696887 | ||||||
Attachments: |
|
Description
Tim Serong
2011-04-11 04:13:04 UTC
Created attachment 491962 [details]
proposed patch
I had some discussion about this issue with asalkeld on IRC, and he suggested this patch, which seems to work for me.
I wondered though if the refcounting should go further out, say, in cfg_lib_init_fn() and cfg_lib_exit_fn() in services/cfg.c (similar to the init and exit functions in services/cpg.c)? Or would you like me to take this discussion back to the mailing list?
Thanks,
Tim
Tim, Patch looks good as is. Please post to ml with signoff and I'll get it merged. I'd rather not use refcount in lib_init_fn and lib_exit_fn but it was necessary because of the design of cpg. Regards -steve Patch committed in upstream git as 5b92829d6c20ab550aca6c0b273618577ea92b23 |