Uploaded image for project: 'Couchbase node.js Client Library'
  1. Couchbase node.js Client Library
  2. JSCBC-1043

Segfault opening bucket after creating cluster with deprecated new couchbase.Cluster() API

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • 4.x
    • 4.0.0
    • None
    • None
    • 1

    Description

      I think this is the issue someone on the forum is hitting. It is a deprecated API but probably shouldn't segfault.

      https://forums.couchbase.com/t/not-able-to-connect-to-cluster-anymore-suddenly/28745/30

      const cluster = new couchbase.Cluster("couchbase://10.112.220.101",{username:"Administrator",password:"password"})
      const bucket = cluster.bucket("default")
      

      PID 51705 received SIGSEGV for address: 0x0
      0   segfault-handler.node               0x000000010cbebc08 _ZL16segfault_handleriP9__siginfoPv + 312
      1   libsystem_platform.dylib            0x00007fff6752e5fd _sigtramp + 29
      2   ???                                 0x0000000113366b8d 0x0 + 4617300877
      3   couchbase_impl.node                 0x000000010c2eab1c _ZN9couchbase2io12mcbp_session18initiate_bootstrapEv + 492
      4   couchbase_impl.node                 0x000000010c2c30c1 _ZN9couchbase2io12mcbp_session9bootstrapEONS_5utils16movable_functionIFvNSt3__110error_codeENS_8topology13configurationEEEEb + 433
      5   couchbase_impl.node                 0x000000010c296666 _ZN9couchnode10Connection12jsOpenBucketERKN4Napi12CallbackInfoE + 2182
      6   couchbase_impl.node                 0x000000010c2a2af3 _ZN4Napi7detailsL25TemplatedInstanceCallbackIN9couchnode10ConnectionEXadL_ZNS3_12jsOpenBucketERKNS_12CallbackInfoEEEEEP12napi_value__P10napi_env__P20napi_callback_info__ + 99
      7   node                                0x0000000107d6cc16 _ZN6v8impl12_GLOBAL__N_123FunctionCallbackWrapper6InvokeERKN2v820FunctionCallbackInfoINS2_5ValueEEE + 134
      8   node                                0x0000000107fc8fee _ZN2v88internal25FunctionCallbackArguments4CallENS0_15CallHandlerInfoE + 462
      9   node                                0x0000000107fc864a _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE + 586
      10  node                                0x0000000107fc7d2d _ZN2v88internalL26Builtin_Impl_HandleApiCallENS0_16BuiltinArgumentsEPNS0_7IsolateE + 269
      11  node                                0x000000010885c959 Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit + 57
      

      Attachments

        Issue Links

          Activity

            People

              brett19 Brett Lawson
              jake.rawsthorne Jake Rawsthorne
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                PagerDuty