bucketFlush method with lower timeout causing segmentation fault

Description

When performing a flushBucket with a timeout like 1ms happens a segmentation fault.

 

{"request_id":"842f194aa5da2e7adce74c34d90d4791","elapsed_time":"226ms","component":"tvopenplatform.athena.api","timestamp":"2021-01-07T21:35:17.020Z","level":"VERB","message":"[Couchbase] Flushing Bucket. [BucketName: Bomdia; Timeout: 100]"} {"request_id":"842f194aa5da2e7adce74c34d90d4791","elapsed_time":"230ms","component":"tvopenplatform.athena.api","timestamp":"2021-01-07T21:35:17.023Z","level":"VERB","message":"[Couchbase] <couchbase2.gvp-dev.com:8091> POST http://couchbase2.gvp-dev.com:8091/pools/default/buckets/Bomdia/controller/doFlush. Body=0 bytes"} {"request_id":"842f194aa5da2e7adce74c34d90d4791","elapsed_time":"230ms","component":"tvopenplatform.athena.api","timestamp":"2021-01-07T21:35:17.024Z","level":"VERB","message":"[Couchbase] <couchbase2.gvp-dev.com:8091> (HE=0x3ba5d10) Creating new connection because none are available in the pool"} {"request_id":"842f194aa5da2e7adce74c34d90d4791","elapsed_time":"231ms","component":"tvopenplatform.athena.api","timestamp":"2021-01-07T21:35:17.024Z","level":"VERB","message":"[Couchbase] <couchbase2.gvp-dev.com:8091> (HE=0x3ba5d10) New pool entry: I=0x3ba66c0"} {"request_id":"842f194aa5da2e7adce74c34d90d4791","elapsed_time":"232ms","component":"tvopenplatform.athena.api","timestamp":"2021-01-07T21:35:17.025Z","level":"INFO","message":"[Couchbase] <couchbase2.gvp-dev.com:8091> (SOCK=470b0836741ab10d) Starting. Timeout=100000us"} {"component":"tvopenplatform.athena.api","timestamp":"2021-01-07T21:35:17.036Z","level":"VERB","message":"[Couchbase] <couchbase2.gvp-dev.com:8091> (SOCK=470b0836741ab10d) Received completion handler. Status=0. errno=0 [Success]"} {"component":"tvopenplatform.athena.api","timestamp":"2021-01-07T21:35:17.036Z","level":"INFO","message":"[Couchbase] <couchbase2.gvp-dev.com:8091> (SOCK=470b0836741ab10d) Connected established"} {"component":"tvopenplatform.athena.api","timestamp":"2021-01-07T21:35:17.037Z","level":"WARN","message":"[Couchbase] Translating errno=0, lcb=0x401 to NETWORK_ERROR"} {"component":"tvopenplatform.athena.api","timestamp":"2021-01-07T21:35:17.038Z","level":"INFO","message":"[Couchbase] <couchbase2.gvp-dev.com:8091> (SOCK=470b0836741ab10d) Couldn't set TCP_NODELAY"} {"component":"tvopenplatform.athena.api","timestamp":"2021-01-07T21:35:17.038Z","level":"VERB","message":"[Couchbase] <couchbase2.gvp-dev.com:8091> (SOCK=470b0836741ab10d) Successfully set TCP_KEEPALIVE"} {"component":"tvopenplatform.athena.api","timestamp":"2021-01-07T21:35:17.038Z","level":"VERB","message":"[Couchbase] <couchbase2.gvp-dev.com:8091> (HE=0x3ba5d10) Received result for I=0x3ba66c0,C=(nil); E=0x0"} {"component":"tvopenplatform.athena.api","timestamp":"2021-01-07T21:35:17.039Z","level":"VERB","message":"[Couchbase] <couchbase2.gvp-dev.com:8091> (HE=0x3ba5d10) Assigning R=0x3ba6320 SOCKET=0x3ba69d0"} {"component":"tvopenplatform.athena.api","timestamp":"2021-01-07T21:35:17.039Z","level":"VERB","message":"[Couchbase] <couchbase2.gvp-dev.com:8091> (CTX=0x3ae5200,unknown) Pairing with SOCK=470b0836741ab10d"} {"component":"tvopenplatform.athena.api","timestamp":"2021-01-07T21:35:17.117Z","level":"VERB","message":"[Couchbase] Refreshing current cluster map (bucket: Bomdia)"} Segmentation fault (core dumped)

 

version used: 3.1.0

 

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:

Kaio Henrique de Melo Chiarato January 7, 2021 at 10:52 PM

Stacktrace

PID 1856 received SIGSEGV for address: 0xc18c43c2 SymInit: Symbol-SearchPath: '.;C:\enterprise\api\api;C:\Program Files\nodejs;C:\WINDOWS;C:\WINDOWS\system32;SRV*C:\websymbols*http://msdl.microsoft.com/download/symbols;', symOptions: 530, UserName: 'kaio.henrique' OS-Version: 10.0.19041 () 0x100-0x1 c:\enterprise\api\api\node_modules\segfault-handler\src\stackwalker.cpp (941): StackWalker::ShowCallstack c:\enterprise\api\api\node_modules\segfault-handler\src\segfault-handler.cpp (242): segfault_handler 00007FF9E5C883DC (ntdll): (filename not available): RtlDeleteAce 00007FF9E5C5B406 (ntdll): (filename not available): RtlRaiseException 00007FF9E5CAFE3E (ntdll): (filename not available): KiUserExceptionDispatcher c:\enterprise\api\api\node_modules\couchbase\src\connection_callbacks.cpp (428): couchnode::Connection::lcbHttpDataHandler c:\enterprise\api\api\node_modules\couchbase\deps\lcb\src\http\http.cc (320): lcb::http::Request::finish c:\enterprise\api\api\node_modules\couchbase\deps\lcb\src\http\http.cc (208): lcb::http::Request::finish_or_retry c:\enterprise\api\api\node_modules\couchbase\deps\lcb\src\lcbio\manager.cc (327): lcb::io::PoolRequest::invoke c:\enterprise\api\api\node_modules\couchbase\deps\lcb\src\lcbio\timer.c (45): timer_callback 00007FF62DEC1BB1 (node): (filename not available): uv_timer_get_repeat 00007FF62DEDB533 (node): (filename not available): uv_run 00007FF62DE8CFAE (node): (filename not available): node::CreatePlatform 00007FF62DE8D3FF (node): (filename not available): node::CreatePlatform 00007FF62DE8D76A (node): (filename not available): node::Start 00007FF62E828DA1 (node): (filename not available): v8_inspector::protocol::Runtime::API::StackTrace::fromJSONString 00007FF9E4797034 (KERNEL32): (filename not available): BaseThreadInitThunk 00007FF9E5C5D0D1 (ntdll): (filename not available): RtlUserThreadStart [nodemon] app crashed - waiting for file changes before starting...
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created January 7, 2021 at 9:44 PM
Updated May 6, 2021 at 9:26 PM
Resolved May 6, 2021 at 9:26 PM
Instabug