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

Segfault in log callback when using ssl

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 3.2.1
    • lcb, library
    • 1
    • SDK38: Conn Record/CB++

    Description

      I saw this segfault sporadically in various http functions. I was using enforce tls without certificate verification but I don't think it's specific to that. Still happens with http://review.couchbase.org/c/couchnode/+/160987

      const couchbase = require("couchbase");
       
      async function main() {
        while (true) {
          const cluster = await couchbase.connect("couchbases://172.23.111.129?ssl=no_verify", {
            username: "Administrator",
            password: "password",
          });
          const bmgr = cluster.buckets()
          await bmgr.getBucket("default")
        }
      }
       
      main();
      
      

      lcb_log logging.c:153
      log_callback ssl_common.c:242
      ssl3_read_bytes 0x0000000100b27002
      ssl3_read_internal 0x0000000100b3031f
      SSL_peek 0x0000000100b3d574
      schedule_wants ssl_c.c:242
      read_callback ssl_c.c:228
      read_cb(uv_stream_s*, long, uv_buf_t const*) plugin-libuv.c:464
      uv__stream_io 0x00000001009f5f5e
      uv__io_poll 0x00000001009fec4c
      uv_run 0x00000001009eb431
      node::NodeMainInstance::Run() 0x00000001000e5477
      node::Start(int, char**) 0x0000000100079696
      start 0x00007fff6d89dcc9
      start 0x00007fff6d89dcc9
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            brett19 Brett Lawson
            jake.rawsthorne#1 Jake Rawsthorne [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty