Actions
Bug #13824
closedorphans finish segfaults
Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:
0%
Source:
other
Tags:
Backport:
hammer,infernalis
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
The orphans finish command segfaults due to dereferencing the null pointer info, passed as NULL:
Core was generated by `radosgw-admin orphans finish --job-id=orphans1'. (gdb) bt #0 0x00007f364724bffb in raise () from /lib64/libpthread.so.0 #1 0x000000000062e16d in reraise_fatal (signum=11) at global/signal_handler.cc:59 #2 handle_fatal_signal (signum=11) at global/signal_handler.cc:109 #3 <signal handler called> #4 RGWOrphanSearch::init (this=0x7fff2eb962c0, job_name="orphans1", info=0x0) at rgw/rgw_orphan.cc:168 #5 0x00000000004fdff1 in main (argc=<optimized out>, argv=<optimized out>) at rgw/rgw_admin.cc:2628 (gdb) up #4 RGWOrphanSearch::init (this=0x7fff2eb962c0, job_name="orphans1", info=0x0) at rgw/rgw_orphan.cc:168 168 uint64_t num_shards = (info->num_shards ? info->num_shards : DEFAULT_NUM_SHARDS); (gdb) up #5 0x00000000004fdff1 in main (argc=<optimized out>, argv=<optimized out>) at rgw/rgw_admin.cc:2628 2628 int ret = search.init(job_id, NULL);
master has the same bug:
https://github.com/ceph/ceph/blob/master/src/rgw/rgw_admin.cc#L2679
https://github.com/ceph/ceph/blob/master/src/rgw/rgw_orphan.cc#L168
Actions