Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-1103

Memory leak(segmentation fault) while using in flask web app

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Blocker
    • None
    • 3.0.9
    • library
    • None
    • Azure Kube Linux, Ubuntu
    • 1
    • Critical

    Description

      flask app is stopping with fatal error - segmentation fault.

      Python 3.7

      couchbase python SDK  - 3.0.9

      T*raceback is showing an issue in n1ql.py*

      Tried multiple times with using lockmod=2, but still, it seems some memory leaks in happening. in every time in the traceback n1ql.py is common.

      It is a blocker for us now.

      sample code - 

      // code placeholder
      cluster = Cluster(self.cb_url,ClusterOptions(PasswordAuthenticator(self.cb_username,self.cb_password)),lockmode=2)
       
      cb = self.cluster.bucket(bucket)
      query = ' Select **********'
      event_query_result = self.cluster.query(query, timeout= datetime.timedelta(seconds=500))
       
      eventTmp = []
      for row in event_query_result:
          eventTmp.append(row)
       
      df_event = json_normalize(eventTmp)
      
      

      PFA TRACEBACK LOG

       

      Attachments

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

        Activity

          People

            jared.casey Jared Casey
            koolmukul Mukul Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty