Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-3088

zk c client: should delete tsd keys in a destructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 3.4.12
    • None
    • c client
    • None

    Description

      crash  when unload libzookeeper_mt.so  by dlclose,     

      the tsd keys should be deleted in a destructor in zk_log.c

      __attribute__((destructor)) void deleteTSDKeys()
      {
          pthread_setspecific(time_now_buffer, NULL);
          pthread_setspecific(format_log_msg_buffer, NULL);
          pthread_key_delete(time_now_buffer);
          pthread_key_delete(format_log_msg_buffer);
      }
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            kevinxw kevinxw
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: