From: Nithya Balachandran Date: Tue, 24 Mar 2026 11:33:15 +0000 (+0000) Subject: rgw/posix: fix crash in radosgw-admin X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c8b1ae5d2ed63e08f1aa7e4fab7aba8f118ea928;p=ceph.git rgw/posix: fix crash in radosgw-admin The POSIXBucket copy constructor incorrectly calls .get() on a on a temporary unique_ptr returned by clone(), causing immediate deletion of the Directory object. This leaves a dangling pointer that triggers a segfault during destruction. Signed-off-by: Nithya Balachandran --- diff --git a/src/rgw/driver/posix/rgw_sal_posix.h b/src/rgw/driver/posix/rgw_sal_posix.h index cdab327a83f..4edc8b13abe 100644 --- a/src/rgw/driver/posix/rgw_sal_posix.h +++ b/src/rgw/driver/posix/rgw_sal_posix.h @@ -876,7 +876,7 @@ public: acls(_b.acls), ns(_b.ns) { - dir.reset(static_cast(_b.dir->clone().get())); + dir = _b.dir->clone_dir(); } virtual ~POSIXBucket() { }