Uploaded image for project: 'Couchbase PHP client library'
  1. Couchbase PHP client library
  2. PCBC-75

segfault when using persistent connections

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.1.0-dp4
    • 1.0.4
    • library
    • Security Level: Public
    • None
    • CentOS 5.8 w/ php 5.3.3; Mac OS 10.6 w/ php 5.3.8

    Description

      When configuring the PHP client for persistent connections, a segmentation fault is seen upon the second request for a connection within an Apache MPM environment.

      The test script is as follows:

      <?php

      $iterations = 1;
      $time_start = microtime(true);
      //$cb = new Couchbase("192.168.1.200:8091"); // uses the default bucket
      $cb = new Couchbase("192.168.1.200:8091", "newcachebucket", "password", "newcachebucket", true); // uses the default bucket

      for ($i = 1; $i <=$iterations; $i++)

      { $cb->set("a" . $i, 1); //var_dump($cb->get("a" . $i)); $cb->get("a" . $i); }

      $time_end = microtime(true);
      $time = $time_end - $time_start;

      echo "Did $iterations iterations in $time seconds\n";

      If making a request of this script with curl, I see the following:
      [root@centosb httpd]# for i in

      {1..16}

      ; do curl http://localhost/;done
      Did 1 iterations in 0.009458065032959 seconds

      Did 1 iterations in 0.0088930130004883 seconds

      Did 1 iterations in 0.0089321136474609 seconds

      Did 1 iterations in 0.0089690685272217 seconds

      Did 1 iterations in 0.0090639591217041 seconds

      Did 1 iterations in 0.0095789432525635 seconds

      Did 1 iterations in 0.0090429782867432 seconds

      Did 1 iterations in 0.0094709396362305 seconds

      curl: (52) Empty reply from server
      curl: (52) Empty reply from server
      curl: (52) Empty reply from server
      curl: (52) Empty reply from server
      curl: (52) Empty reply from server
      curl: (52) Empty reply from server
      curl: (52) Empty reply from server
      curl: (52) Empty reply from server

      The error_log shows lots of:
      [Sun Jun 17 19:22:32 2012] [notice] child pid 2031 exit signal Segmentation fault (11)

      Attachments

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

        Activity

          People

            mnunberg Mark Nunberg (Inactive)
            ingenthr Matt Ingenthron
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty