Segfault in libcouchbase

I am not 100% sure but I think this segfault is comming from the libcouchbase

# gdb `which php` core-php-sig11-user48-group48-pid10946-time1604236027                                                                                                              GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-119.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/php...Reading symbols from /usr/lib/debug/usr/bin/php.debug...done.
done.
[New LWP 10946]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/bin/php /var/www/redacetd-hostname/redacated/vendor/spatie/asy'.
Program terminated with signal 11, Segmentation fault.
#0  _int_malloc (av=av@entry=0x7f24bb5e2760 <main_arena>, bytes=bytes@entry=15) at malloc.c:3411
3411            if (__builtin_expect (bck->fd != victim, 0))
(gdb) bt
#0  _int_malloc (av=av@entry=0x7f24bb5e2760 <main_arena>, bytes=bytes@entry=15) at malloc.c:3411
#1  0x00007f24bb2a06fc in __GI___libc_malloc (bytes=15) at malloc.c:2905
#2  0x00007f24a614aee4 in duplicateStringValue (length=14, value=0x7f24a6176e19 "operation_name") at /usr/src/debug/libcouchbase-3.0.6/contrib/lcb-jsoncpp/lcb-jsoncpp.cpp:2278
#3  Json::Value::CZString::CZString (this=0x7fff43b04c10, other=...) at /usr/src/debug/libcouchbase-3.0.6/contrib/lcb-jsoncpp/lcb-jsoncpp.cpp:2422
#4  0x00007f24a6154fd4 in pair<Json::Value::CZString&, void> (__y=..., __x=..., this=0x7fff43b04c10) at /usr/include/c++/4.8.2/bits/stl_pair.h:134
#5  Json::Value::resolveReference (this=this@entry=0x7fff43b04e30, key=key@entry=0x7f24a6176e19 "operation_name", cend=<optimized out>)
    at /usr/src/debug/libcouchbase-3.0.6/contrib/lcb-jsoncpp/lcb-jsoncpp.cpp:3176
#6  0x00007f24a6155119 in Json::Value::operator[] (this=this@entry=0x7fff43b04e30, key=key@entry=0x7f24a6176e19 "operation_name")
    at /usr/src/debug/libcouchbase-3.0.6/contrib/lcb-jsoncpp/lcb-jsoncpp.cpp:3214
#7  0x00007f24a6143f94 in lcb::trace::ThresholdLoggingTracer::convert (this=this@entry=0x55a272e02000, span=0x55a272dfbc60)
    at /usr/src/debug/libcouchbase-3.0.6/src/tracing/threshold_logging_tracer.cc:94
#8  0x00007f24a6144653 in lcb::trace::ThresholdLoggingTracer::check_threshold (this=0x55a272e02000, span=<optimized out>)
    at /usr/src/debug/libcouchbase-3.0.6/src/tracing/threshold_logging_tracer.cc:124
#9  0x00007f24a6144b35 in tlt_report (wrapper=<optimized out>, span=0x55a272dfbc60) at /usr/src/debug/libcouchbase-3.0.6/src/tracing/threshold_logging_tracer.cc:65
#10 0x00007f24a61468de in lcbtrace_span_finish (span=0x55a272dfbc60, now=<optimized out>) at /usr/src/debug/libcouchbase-3.0.6/src/tracing/span.cc:71
#11 0x00007f24a63dd6ec in zim_Collection_get (execute_data=<optimized out>, return_value=0x7f24b9e13750) at /var/tmp/couchbase/src/couchbase/bucket/get.c:157
#12 0x00007f24b33f72bd in xdebug_execute_internal (current_execute_data=0x7f24b9e13940, return_value=0x7f24b9e13750) at /usr/src/debug/php-pecl-xdebug-2.9.8/NTS/src/base/base.c:466
#13 0x000055a2715ee968 in ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER () at /usr/src/debug/php-7.4.12/Zend/zend_vm_execute.h:1732
#14 0x000055a271875afd in execute_ex () at /usr/src/debug/php-7.4.12/Zend/zend_vm_execute.h:53937
#15 0x00007f24b33f6916 in xdebug_execute_ex (execute_data=0x7f24b9e13660) at /usr/src/debug/php-pecl-xdebug-2.9.8/NTS/src/base/base.c:380
#16 0x000055a2715ee904 in ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER () at /usr/src/debug/php-7.4.12/Zend/zend_vm_execute.h:1714
#17 0x000055a271875afd in execute_ex () at /usr/src/debug/php-7.4.12/Zend/zend_vm_execute.h:53937
#18 0x00007f24b33f6916 in xdebug_execute_ex (execute_data=0x7f24b9e133c0) at /usr/src/debug/php-pecl-xdebug-2.9.8/NTS/src/base/base.c:380
#19 0x000055a2715ee904 in ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER () at /usr/src/debug/php-7.4.12/Zend/zend_vm_execute.h:1714
#20 0x000055a271875afd in execute_ex () at /usr/src/debug/php-7.4.12/Zend/zend_vm_execute.h:53937
#21 0x00007f24b33f6916 in xdebug_execute_ex (execute_data=0x7f24b9e13020) at /usr/src/debug/php-pecl-xdebug-2.9.8/NTS/src/base/base.c:380
#22 0x000055a27187ce71 in zend_execute (op_array=0x7f24b9e762a0, return_value=<optimized out>) at /usr/src/debug/php-7.4.12/Zend/zend_vm_execute.h:57957
#23 0x000055a2717f5f23 in zend_execute_scripts () at /usr/src/debug/php-7.4.12/Zend/zend.c:1677
#24 0x000055a271794730 in php_execute_script () at /usr/src/debug/php-7.4.12/main/main.c:2621
#25 0x000055a27187efec in do_cli (argc=5, argv=0x55a272936230) at /usr/src/debug/php-7.4.12/sapi/cli/php_cli.c:964
#26 0x000055a2715fc6fb in main (argc=5, argv=0x55a272936230) at /usr/src/debug/php-7.4.12/sapi/cli/php_cli.c:1359

@avsej can you review this please ?

I will check it, thanks