Skip to contentSkip to conversation

OSD crashing in ~Job()

DISCUSSION Willem Jan Withagen 3 participants 4 messages Feb 27, 2017 – Feb 28, 2017

lore
Share & tools
lore
#0 lore raw

Hi,

Once every 10 runs test-erasure-code.sh is terminated with a timeout during my FreeBSD tests.

It receives an assert in:
/usr/srcs/Ceph/work/ceph/src/osd/OSDMapMapping.h:31 class ParallelPGMapper {
public:
struct Job {
....

    virtual ~Job() {
      assert(shards == 0);
    }
} }

Anydody any suggestions on what this can be, and/or how to start debugging this?

--WjW

2017-02-27 14:15:28.034683 b134480 -1

/usr/srcs/Ceph/work/ceph/src/osd/OSDMapMapping.h: In function 'virtual ParallelPGMapper::Job::~Job()' thread b134480 time 2017 -02-27 14:15:27.975342 /usr/srcs/Ceph/work/ceph/src/osd/OSDMapMapping.h: 31: FAILED assert(shards == 0)

ceph version Development (no_version)
1: <ceph::__ceph_assert_fail(char const*, char const, int, char
const)+0xb21> at /usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
2: <ParallelPGMapper::Job::~Job(void)+0x50> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
3: <OSDMapMapping::MappingJob::~MappingJob(void)+0x15> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
4: <OSDMapMapping::MappingJob::~MappingJob(void)+0x19> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
5:
<OSDMonitor::encode_pending(std::__1::shared_ptr<MonitorDBStore::Transaction>)+0xefd> at /usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
6: <PaxosService::propose_pending(void)+0x91d> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
7:
<PaxosService::dispatch(boost::intrusive_ptr<MonOpRequest>)::C_Propose::finish(int)+0x3a> at /usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
8: <Context::complete(int)+0x22> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
9: <SafeTimer::timer_thread(void)+0x8d7> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
10: <SafeTimerThread::entry(void)+0x19> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
11: <Thread::entry_wrapper(void)+0xc6> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
12: <Thread::_entry_func(void*)+0x15> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
NOTE: a copy of the executable, or objdump -rdS <executable> is
needed to interpret this.

#1 lore raw
Quoted 11 lines · Willem Jan Withagen

Hi,

Once every 10 runs test-erasure-code.sh is terminated with a timeout during my FreeBSD tests.

It receives an assert in:
/usr/srcs/Ceph/work/ceph/src/osd/OSDMapMapping.h:31 class ParallelPGMapper {
public:
struct Job {
....

Quoted 7 lines
    virtual ~Job() {
      assert(shards == 0);
    }
} }

Anydody any suggestions on what this can be, and/or how to start debugging this?

Sounds like maybe
1) your test hardware is slower than what we mostly use, in this particular job, and
2) the OSDMapMapping code doesn't shut down cleanly when it gets a TERM signal. :/

So, extend the timeout or fix the OSDMapMapping, I guess? -Greg

Quoted 45 lines

--WjW

2017-02-27 14:15:28.034683 b134480 -1

/usr/srcs/Ceph/work/ceph/src/osd/OSDMapMapping.h: In function 'virtual ParallelPGMapper::Job::~Job()' thread b134480 time 2017 -02-27 14:15:27.975342 /usr/srcs/Ceph/work/ceph/src/osd/OSDMapMapping.h: 31: FAILED assert(shards == 0)

ceph version Development (no_version)
1: <ceph::__ceph_assert_fail(char const*, char const, int, char
const)+0xb21> at /usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
2: <ParallelPGMapper::Job::~Job(void)+0x50> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
3: <OSDMapMapping::MappingJob::~MappingJob(void)+0x15> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
4: <OSDMapMapping::MappingJob::~MappingJob(void)+0x19> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
5:
<OSDMonitor::encode_pending(std::__1::shared_ptr<MonitorDBStore::Transaction>)+0xefd> at /usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
6: <PaxosService::propose_pending(void)+0x91d> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
7:
<PaxosService::dispatch(boost::intrusive_ptr<MonOpRequest>)::C_Propose::finish(int)+0x3a> at /usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
8: <Context::complete(int)+0x22> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
9: <SafeTimer::timer_thread(void)+0x8d7> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
10: <SafeTimerThread::entry(void)+0x19> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
11: <Thread::entry_wrapper(void)+0xc6> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
12: <Thread::_entry_func(void*)+0x15> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
NOTE: a copy of the executable, or objdump -rdS <executable> is
needed to interpret this.

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 20 lines · Gregory Farnum
Quoted 11 lines · Willem Jan Withagen

Hi,

Once every 10 runs test-erasure-code.sh is terminated with a timeout during my FreeBSD tests.

It receives an assert in:
/usr/srcs/Ceph/work/ceph/src/osd/OSDMapMapping.h:31 class ParallelPGMapper {
public:
struct Job {
....

Quoted 7 lines
    virtual ~Job() {
      assert(shards == 0);
    }
} }

Anydody any suggestions on what this can be, and/or how to start debugging this?

Quoted 7 lines

Sounds like maybe
1) your test hardware is slower than what we mostly use, in this particular job, and
2) the OSDMapMapping code doesn't shut down cleanly when it gets a TERM signal. :/

So, extend the timeout or fix the OSDMapMapping, I guess?

Got a fix-PR from Sage, and now it complets 100 testruns wiithout any trouble. Timeouts were due to the test started only one mon, and that made the next rados command hang and ctest timeout.

--WjW

Quoted 47 lines

-Greg

Quoted 45 lines

--WjW

2017-02-27 14:15:28.034683 b134480 -1

/usr/srcs/Ceph/work/ceph/src/osd/OSDMapMapping.h: In function 'virtual ParallelPGMapper::Job::~Job()' thread b134480 time 2017 -02-27 14:15:27.975342 /usr/srcs/Ceph/work/ceph/src/osd/OSDMapMapping.h: 31: FAILED assert(shards == 0)

ceph version Development (no_version)
1: <ceph::__ceph_assert_fail(char const*, char const, int, char
const)+0xb21> at /usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
2: <ParallelPGMapper::Job::~Job(void)+0x50> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
3: <OSDMapMapping::MappingJob::~MappingJob(void)+0x15> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
4: <OSDMapMapping::MappingJob::~MappingJob(void)+0x19> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
5:
<OSDMonitor::encode_pending(std::__1::shared_ptr<MonitorDBStore::Transaction>)+0xefd> at /usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
6: <PaxosService::propose_pending(void)+0x91d> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
7:
<PaxosService::dispatch(boost::intrusive_ptr<MonOpRequest>)::C_Propose::finish(int)+0x3a> at /usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
8: <Context::complete(int)+0x22> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
9: <SafeTimer::timer_thread(void)+0x8d7> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
10: <SafeTimerThread::entry(void)+0x19> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
11: <Thread::entry_wrapper(void)+0xc6> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
12: <Thread::_entry_func(void*)+0x15> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
NOTE: a copy of the executable, or objdump -rdS <executable> is
needed to interpret this.

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
In reply to Willem Jan Withagen
Quoted 11 lines · Willem Jan Withagen

Hi,

Once every 10 runs test-erasure-code.sh is terminated with a timeout during my FreeBSD tests.

It receives an assert in:
/usr/srcs/Ceph/work/ceph/src/osd/OSDMapMapping.h:31 class ParallelPGMapper {
public:
struct Job {
....

Quoted 7 lines
    virtual ~Job() {
      assert(shards == 0);
    }
} }

Anydody any suggestions on what this can be, and/or how to start debugging this?

I'm guessing this fixes it: https://github.com/ceph/ceph/pull/13574

sage

Quoted 47 lines

--WjW

2017-02-27 14:15:28.034683 b134480 -1

/usr/srcs/Ceph/work/ceph/src/osd/OSDMapMapping.h: In function 'virtual ParallelPGMapper::Job::~Job()' thread b134480 time 2017 -02-27 14:15:27.975342 /usr/srcs/Ceph/work/ceph/src/osd/OSDMapMapping.h: 31: FAILED assert(shards == 0)

ceph version Development (no_version)
1: <ceph::__ceph_assert_fail(char const*, char const, int, char
const)+0xb21> at /usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
2: <ParallelPGMapper::Job::~Job(void)+0x50> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
3: <OSDMapMapping::MappingJob::~MappingJob(void)+0x15> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
4: <OSDMapMapping::MappingJob::~MappingJob(void)+0x19> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
5:
<OSDMonitor::encode_pending(std::__1::shared_ptr<MonitorDBStore::Transaction>)+0xefd> at /usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
6: <PaxosService::propose_pending(void)+0x91d> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
7:
<PaxosService::dispatch(boost::intrusive_ptr<MonOpRequest>)::C_Propose::finish(int)+0x3a> at /usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
8: <Context::complete(int)+0x22> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
9: <SafeTimer::timer_thread(void)+0x8d7> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
10: <SafeTimerThread::entry(void)+0x19> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
11: <Thread::entry_wrapper(void)+0xc6> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
12: <Thread::_entry_func(void*)+0x15> at
/usr/srcs/Ceph/work/ceph/build/bin/ceph-mon
NOTE: a copy of the executable, or objdump -rdS <executable> is
needed to interpret this.

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html