LiveQuerier is running after having been stopped, causing a crash

Description

https://github.com/couchbase/couchbase-lite-C/issues/235

I'm using the Couchbase Lite C Beta 2 for ubuntu20.04-x86_64.

This is the stack trace of the crashing thread:
 {{Thread 1 (Thread 0x7fc6c8ef6700 (LWP 60182)):
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007fc6d8d3b859 in __GI_abort () at abort.c:79
#2 0x00005586d1ee62f0 in ?? ()
#3 <signal handler called>
#4 0x00007fc6d116cd00 in ?? () from /home/gabriel/Dev/cbl-dart/packages/cbl_e2e_tests_standalone_dart/lib/libcblite.so.3
#5 0x00007fc6d0f112da in ?? () from /home/gabriel/Dev/cbl-dart/packages/cbl_e2e_tests_standalone_dart/lib/libcblite.so.3
#6 0x00007fc6d0f118b3 in ?? () from /home/gabriel/Dev/cbl-dart/packages/cbl_e2e_tests_standalone_dart/lib/libcblite.so.3
#7 0x00007fc6d0fc5954 in ?? () from /home/gabriel/Dev/cbl-dart/packages/cbl_e2e_tests_standalone_dart/lib/libcblite.so.3
#8 0x00007fc6d0fc59b3 in ?? () from /home/gabriel/Dev/cbl-dart/packages/cbl_e2e_tests_standalone_dart/lib/libcblite.so.3
#9 0x00007fc6d0fc5b13 in ?? () from /home/gabriel/Dev/cbl-dart/packages/cbl_e2e_tests_standalone_dart/lib/libcblite.so.3
#10 0x00007fc6d0fc5c08 in ?? () from /home/gabriel/Dev/cbl-dart/packages/cbl_e2e_tests_standalone_dart/lib/libcblite.so.3
#11 0x00007fc6d0d84de4 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#12 0x00007fc6d9060609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#13 0x00007fc6d8e38293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95}}
Theses are the logs from a test that is running at the time: logs.zip

LiveQuerier#5 seems to be the object, causing the crash. Even though it has stopped:
 07:37:58.945828| [Query]: {LiveQuerier#5} ...stopped
It is again running at a later point:
 07:37:59.427285| [Query]: {LiveQuerier#5} Running query...
until it logs an error:
 07:37:59.427628| [Query] ERROR: {LiveQuerier#5} Query failed with error LiteCore NotOpen, "database not open"

Activity

Show:

CB robot January 18, 2022 at 12:16 AM

Build couchbase-lite-c-3.1.0-68 contains couchbase-lite-core commit 3d1a9b3 with commit message:
: Don't change LiveQuery _stopping so early (#1302) (#1339)

CB robot January 5, 2022 at 4:30 AM

Build couchbase-lite-net-3.1.0-21 contains couchbase-lite-core commit 3d1a9b3 with commit message:
: Don't change LiveQuery _stopping so early (#1302) (#1339)

CB robot January 5, 2022 at 1:06 AM

Build couchbase-lite-java-3.1.0-88 contains couchbase-lite-core commit 3d1a9b3 with commit message:
: Don't change LiveQuery _stopping so early (#1302) (#1339)

CB robot January 5, 2022 at 12:46 AM

Build couchbase-lite-android-3.1.0-89 contains couchbase-lite-core commit 3d1a9b3 with commit message:
: Don't change LiveQuery _stopping so early (#1302) (#1339)

CB robot January 4, 2022 at 11:20 AM

Build couchbase-lite-ios-3.1.0-79 contains couchbase-lite-core commit 3d1a9b3 with commit message:
: Don't change LiveQuery _stopping so early (#1302) (#1339)

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Components

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created November 20, 2021 at 4:00 AM
Updated August 31, 2024 at 10:55 AM
Resolved December 22, 2021 at 7:33 PM
Instabug