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

librados: postpone cct deletion #11659

Merged
merged 1 commit into from Oct 30, 2016
Merged

Conversation

tchaikov
Copy link
Contributor

when debug refs is enabled, RefCountedObject::put() prints log using
cct, but RadosClient relinquishes the reference to cct too early, so its
when its RefCountedObject member variables print log when they are
destructed, the cct is freed. so we need postpone destructure of it
after all other RefCountedObject member variables are destroyed.

Signed-off-by: Kefu Chai kchai@redhat.com

@liewegas
Copy link
Member

lgtm

@tchaikov
Copy link
Contributor Author

changelog

  • fix syntax error in commit message.

RefCountedObject::put() prints log using cct, but RadosClient
relinquishes the reference to cct too early, so when its
`RefCountedObject` member variables print log when they are
destructed, the cct is already freed. hence we have a segfault.

to address this problem, we need postpone destructure of it after all
other RefCountedObject member variables are destroyed.

Signed-off-by: Kefu Chai <kchai@redhat.com>
@tchaikov
Copy link
Contributor Author

changelog

  • update commit message: the crash always happens, no matter what the debug level of "refs" is.

@tchaikov tchaikov self-assigned this Oct 26, 2016
@tchaikov
Copy link
Contributor Author

http://pulpito.ceph.com/kchai-2016-10-29_03:47:14-rados-wip-kefu-testing---basic-mira/

all failed tests are already tracked on tracker, a new failed noted down at http://tracker.ceph.com/issues/17743

@tchaikov tchaikov merged commit 9ae1fe8 into ceph:master Oct 30, 2016
@tchaikov tchaikov deleted the wip-delete-cct-later branch October 30, 2016 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants