Project

General

Profile

Bug #10775

"TestIoctx.test_aio_append ... Segmentation fault" in smoke-master-distro-basic-multi run

Added by Yuri Weinstein about 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
librados
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
giant,firefly
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Run: http://pulpito.ceph.com/teuthology-2015-02-03_02:35:02-smoke-master-distro-basic-multi/
Jobs: 738484
Logs: http://qa-proxy.ceph.com/teuthology/teuthology-2015-02-03_02:35:02-smoke-master-distro-basic-multi/738484/

2015-02-05T12:37:35.056 INFO:tasks.workunit.client.0.plana09.stderr:
2015-02-05T12:37:35.056 INFO:tasks.workunit.client.0.plana09.stderr:2015-02-05 12:37:35 (2.17 MB/s) - `test_rados.py' saved [20593]
2015-02-05T12:37:35.057 INFO:tasks.workunit.client.0.plana09.stderr:
2015-02-05T12:37:35.057 INFO:tasks.workunit.client.0.plana09.stderr:+ nosetests -v test_rados
2015-02-05T12:37:36.028 INFO:tasks.workunit.client.0.plana09.stderr:test_rados.TestCommand.test_monmap_dump ... ok
2015-02-05T12:37:36.266 INFO:tasks.workunit.client.0.plana09.stderr:test_rados.TestCommand.test_osd_bench ... ok
2015-02-05T12:37:38.459 INFO:tasks.workunit.client.0.plana09.stderr:test_rados.TestIoctx.test_aio_append ... Segmentation fault (core dumped)
2015-02-05T12:37:38.460 INFO:tasks.workunit:Stopping ['rados/test_python.sh'] on client.0...

Associated revisions

Revision 36d37aad (diff)
Added by Josh Durgin about 9 years ago

rados.py: keep reference to python callbacks

If we don't keep a reference to these, the librados aio calls will
segfault since the python-level callbacks will have been garbage
collected. Passing them to aio_create_completion() does not take a
reference to them. Keep a reference in the python Completion object
associated with the request, since they need the same lifetime.

This fixes a regression from 60b019f69aa0e39d276c669698c92fc890599f50.

Fixes: #10775
Backport: dumpling, firefly, giant
Signed-off-by: Josh Durgin <>

Revision 5f1245e1 (diff)
Added by Josh Durgin about 9 years ago

rados.py: keep reference to python callbacks

If we don't keep a reference to these, the librados aio calls will
segfault since the python-level callbacks will have been garbage
collected. Passing them to aio_create_completion() does not take a
reference to them. Keep a reference in the python Completion object
associated with the request, since they need the same lifetime.

This fixes a regression from 60b019f69aa0e39d276c669698c92fc890599f50.

Fixes: #10775
Backport: dumpling, firefly, giant
Signed-off-by: Josh Durgin <>
(cherry picked from commit 36d37aadbbbece28d70e827511f1a473d851463d)

Revision 28583276 (diff)
Added by Josh Durgin about 9 years ago

rados.py: keep reference to python callbacks

If we don't keep a reference to these, the librados aio calls will
segfault since the python-level callbacks will have been garbage
collected. Passing them to aio_create_completion() does not take a
reference to them. Keep a reference in the python Completion object
associated with the request, since they need the same lifetime.

This fixes a regression from 60b019f69aa0e39d276c669698c92fc890599f50.

Fixes: #10775
Backport: dumpling, firefly, giant
Signed-off-by: Josh Durgin <>
(cherry picked from commit 36d37aadbbbece28d70e827511f1a473d851463d)
(cherry picked from commit 5f1245e131e33a98572408c8223deed2c7cf7b75)

History

#1 Updated by Yuri Weinstein about 9 years ago

  • Priority changed from Normal to Urgent

same on hammer and master
Run: http://pulpito.ceph.redhat.com/teuthology-2015-02-09_02:27:01-smoke-hammer-distro-basic-magna/
Job: 42327
Logs: http://magna002.ceph.redhat.com/teuthology-2015-02-09_02:27:01-smoke-hammer-distro-basic-magna/42327/

2015-02-09T05:07:46.086 INFO:tasks.workunit.client.0.magna070.stderr:test_rados.TestIoctx.test_aio_append ... /home/ubuntu/cephtest/workunit.client.0/rados/test_python.sh: line 7:  6184 Segmentation fault      (core dumped) nosetests -v test_rados
2015-02-09T05:07:46.121 INFO:tasks.workunit:Stopping ['rados/test_python.sh'] on client.0...

Run: http://pulpito.front.sepia.ceph.com/teuthology-2015-02-08_02:35:02-smoke-master-distro-basic-multi/
Job: 744032
Logs: http://qa-proxy.ceph.com/teuthology/teuthology-2015-02-08_02:35:02-smoke-master-distro-basic-multi/744032/

2015-02-08T13:05:13.263 INFO:tasks.workunit.client.0.burnupi62.stderr:test_rados.TestIoctx.test_aio_append ... Illegal instruction (core dumped)
2015-02-08T13:05:13.264 INFO:tasks.workunit:Stopping ['rados/test_python.sh'] on client.0...

#2 Updated by Josh Durgin about 9 years ago

  • Category set to librados
  • Status changed from New to Fix Under Review
  • Assignee set to Josh Durgin
  • Backport set to giant,firefly,dumpling

#3 Updated by Sage Weil about 9 years ago

  • Status changed from Fix Under Review to Pending Backport

#4 Updated by Loïc Dachary about 9 years ago

  • Backport changed from giant,firefly,dumpling to giant,firefly

dumpling is end of life

#5 Updated by Loïc Dachary about 9 years ago

2858327 rados.py: keep reference to python callbacks (in giant), 5f1245e rados.py: keep reference to python callbacks (in firefly),

#6 Updated by Loïc Dachary about 9 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF