Project

General

Profile

Bug #19258

mgr: segv in PySys_GetObject / PySys_SetArgvEx / PyModules::init / Mgr::init

Added by Sage Weil 8 months ago. Updated 7 months ago.

Status:
Resolved
Priority:
Immediate
Assignee:
Category:
-
Target version:
-
Start date:
03/10/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Release:
Needs Doc:
No

Description

2017-03-10T21:55:07.188 INFO:tasks.ceph.mgr.x.smithi109.stderr:     0> 2017-03-10 21:55:07.062073 7f01e1d2a700 -1 *** Caught signal (Segmentation fault) **
2017-03-10T21:55:07.188 INFO:tasks.ceph.mgr.x.smithi109.stderr: in thread 7f01e1d2a700 thread_name:mgr-fin
2017-03-10T21:55:07.188 INFO:tasks.ceph.mgr.x.smithi109.stderr:
2017-03-10T21:55:07.188 INFO:tasks.ceph.mgr.x.smithi109.stderr: ceph version 12.0.0-1373-g25cdafd (25cdafdcb49335c0ad8505ff7568113affec53c3)
2017-03-10T21:55:07.189 INFO:tasks.ceph.mgr.x.smithi109.stderr: 1: (()+0x27f7d2) [0x55b6077937d2]
2017-03-10T21:55:07.189 INFO:tasks.ceph.mgr.x.smithi109.stderr: 2: (()+0x113e0) [0x7f01ea9ed3e0]
2017-03-10T21:55:07.189 INFO:tasks.ceph.mgr.x.smithi109.stderr: 3: (PySys_GetObject()+0xd) [0x7f01ebb3203d]
2017-03-10T21:55:07.189 INFO:tasks.ceph.mgr.x.smithi109.stderr: 4: (PySys_SetArgvEx()+0x92) [0x7f01ebb344f2]
2017-03-10T21:55:07.189 INFO:tasks.ceph.mgr.x.smithi109.stderr: 5: (PyModules::init()+0x6f) [0x55b607725ccf]
2017-03-10T21:55:07.189 INFO:tasks.ceph.mgr.x.smithi109.stderr: 6: (Mgr::init()+0x84e) [0x55b60773da6e]
2017-03-10T21:55:07.189 INFO:tasks.ceph.mgr.x.smithi109.stderr: 7: (FunctionContext::finish(int)+0x2a) [0x55b60772905a]
2017-03-10T21:55:07.190 INFO:tasks.ceph.mgr.x.smithi109.stderr: 8: (Context::complete(int)+0x9) [0x55b607714919]
2017-03-10T21:55:07.190 INFO:tasks.ceph.mgr.x.smithi109.stderr: 9: (Finisher::finisher_thread_entry()+0x49e) [0x55b6077e103e]
2017-03-10T21:55:07.190 INFO:tasks.ceph.mgr.x.smithi109.stderr: 10: (()+0x770a) [0x7f01ea9e370a]
2017-03-10T21:55:07.190 INFO:tasks.ceph.mgr.x.smithi109.stderr: 11: (clone()+0x6d) [0x7f01e9a4f82d]
2017-03-10T21:55:07.190 INFO:tasks.ceph.mgr.x.smithi109.stderr: NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.

/a/sage-2017-03-10_21:25:42-rados-wip-mgr-commands---basic-smithi/902188

a few other instances in this same suite run

History

#2 Updated by Kefu Chai 7 months ago

  • Project changed from Ceph to mgr
  • Category deleted (110)

#3 Updated by John Spray 7 months ago

Looking at the log from sage-2017-03-10_21:25:42-rados-wip-mgr-commands---basic-smithi/902188...

Seems like this is happening on the second call to PyModules::init (the daemon went inactive then active again, which it's allowed to do).

I think there's just no call to PyModules::shutdown anywhere, which would have been calling Py_Finalize and making the second call to Py_Initialize safe

#4 Updated by Kefu Chai 7 months ago

  • Assignee set to Kefu Chai

john, thanks for the RCA, let me take a stab on it!

#5 Updated by Kefu Chai 7 months ago

  • Status changed from New to Testing

#6 Updated by Kefu Chai 7 months ago

  • Status changed from Testing to Resolved

Also available in: Atom PDF