Project

General

Profile

Bug #13824

orphans finish segfaults

Added by Dan van der Ster about 7 years ago. Updated almost 7 years ago.

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


Related issues

Copied to rgw - Backport #13887: infernalis: orphans finish segfaults Resolved
Copied to rgw - Backport #13888: hammer: orphans finish segfaults Resolved

History

#2 Updated by Abhishek Varshney about 7 years ago

#3 Updated by Abhishek Varshney about 7 years ago

#4 Updated by Igor Fedotov almost 7 years ago

Please mark as resolved.

#5 Updated by Nathan Cutler almost 7 years ago

  • Status changed from New to Pending Backport

Will be marked Resolved after infernalis backport is merged.

#6 Updated by Loïc Dachary almost 7 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF