Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.4
    • Fix Version/s: 1.1.0-dp4
    • Component/s: library
    • Security Level: Public
    • Labels:
      None
    • Environment:
      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)

      # Subject Project Status CR V
      For Gerrit Dashboard: &For+PCBC-75=message:PCBC-75

        Activity

        Hide
        ingenthr Matt Ingenthron added a comment -

        This seems to be affecting 1.0.5 as well.

        Show
        ingenthr Matt Ingenthron added a comment - This seems to be affecting 1.0.5 as well.
        Hide
        mnunberg Mark Nunberg added a comment -

        I have some guesses as to what might be wrong.. but I'll do some reasearch now..

        Show
        mnunberg Mark Nunberg added a comment - I have some guesses as to what might be wrong.. but I'll do some reasearch now..
        Hide
        mnunberg Mark Nunberg added a comment -

        Problem fixed. I'll be putting a patch to gerrit shortly.

        Show
        mnunberg Mark Nunberg added a comment - Problem fixed. I'll be putting a patch to gerrit shortly.
        Show
        mnunberg Mark Nunberg added a comment - http://review.couchbase.org/20591
        Hide
        mnunberg Mark Nunberg added a comment -

        still need to forward-port this into the master branch

        Show
        mnunberg Mark Nunberg added a comment - still need to forward-port this into the master branch

          People

          • Assignee:
            mnunberg Mark Nunberg
            Reporter:
            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