Project

General

Profile

Actions

Bug #13824

closed

orphans finish segfaults

Added by Dan van der Ster over 8 years ago. Updated about 8 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 2 (0 open2 closed)

Copied to rgw - Backport #13887: infernalis: orphans finish segfaultsResolvedAbhishek VarshneyActions
Copied to rgw - Backport #13888: hammer: orphans finish segfaultsResolvedLoïc DacharyActions
Actions #2

Updated by Abhishek Varshney over 8 years ago

Actions #3

Updated by Abhishek Varshney over 8 years ago

Actions #4

Updated by Igor Fedotov about 8 years ago

Please mark as resolved.

Actions #5

Updated by Nathan Cutler about 8 years ago

  • Status changed from New to Pending Backport

Will be marked Resolved after infernalis backport is merged.

Actions #6

Updated by Loïc Dachary about 8 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF