Description
Segmentation fault observed with the following stack trace when invoking subdocument API with the couchbase python client.
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread |
0 _libcouchbase.so 0x000000010fbe1372 pycbc_Context_deref + 18 |
1 _libcouchbase.so 0x000000010fbe5d9b operation_completed_with_err_info + 283 |
2 _libcouchbase.so 0x000000010fbe58ec subdoc_callback + 668 |
3 libcouchbase.2.dylib 0x000000010fc4e681 mcreq_dispatch_response + 1417 |
4 libcouchbase.2.dylib 0x000000010fc6be6b lcb::Server::try_read(lcbio_CTX*, rdb_IOROPE*) + 867 |
5 libcouchbase.2.dylib 0x000000010fc6ceec on_read(lcbio_CTX*, unsigned int) + 58 |
6 libcouchbase.2.dylib 0x000000010fc2eb03 E_handler + 402 |
7 libevent_core-2.1.6.dylib 0x00000001105e9837 event_process_active_single_queue + 1009 |
8 libevent_core-2.1.6.dylib 0x00000001105e6b7d event_base_loop + 1180 |
9 libcouchbase.2.dylib 0x000000010fc7769d lcb_wait3 + 44 |
10 _libcouchbase.so 0x000000010fbeffeb pycbc_common_vars_wait + 299 |
11 _libcouchbase.so 0x000000010fbe9f3e set_common + 958 |
12 _libcouchbase.so 0x000000010fbea63a pycbc_Bucket_mutate_in + 90 |
13 libpython2.7.dylib 0x000000010f8119d7 PyEval_EvalFrameEx + 32215 |
14 libpython2.7.dylib 0x000000010f8098f2 PyEval_EvalCodeEx + 1538 |
15 libpython2.7.dylib 0x000000010f816015 fast_function + 117 |
16 libpython2.7.dylib 0x000000010f810db3 PyEval_EvalFrameEx + 29107 |
17 libpython2.7.dylib 0x000000010f8098f2 PyEval_EvalCodeEx + 1538 |
18 libpython2.7.dylib 0x000000010f8092e6 PyEval_EvalCode + 54 |
19 libpython2.7.dylib 0x000000010f838254 PyRun_FileExFlags + 164 |
20 libpython2.7.dylib 0x000000010f837dd1 PyRun_SimpleFileExFlags + 769 |
21 libpython2.7.dylib 0x000000010f84da12 Py_Main + 3154 |
22 python 0x000000010f75df24 start + 52 |
|
Steps to reproduce
- Update libcouchbase to 2.9.0 using homebrew
- Install couchbase python client using instructions at https://github.com/couchbase/couchbase-python-client
- start cluster_run on either 5.5 or 5.1.0 versions
- run the attached python script