Uploaded image for project: 'PHP Legacy Driver'
  1. PHP Legacy Driver
  2. PHP-827

Segfault on connect when database name starts with an X

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 1.3.2
    • Fix Version/s: 1.4.1
    • Component/s: pecl-mongo
    • Labels:
      None
    • Environment:
      osx,
      php 5.4.15
    • # Replies:
      22
    • Last comment by Customer:
      true

      Description

      running a connection via the php-cli to a replica set with a single member, I get a segfault on connect

      #0 0x00007fff95d35390 in strcmp ()
      #1 0x0000000107b0d302 in mongo_find_candidate_servers ()
      #2 0x0000000107b0a7a6 in mongo_get_connection_multiple ()
      #3 0x0000000107b0a478 in mongo_get_read_write_connection ()
      #4 0x0000000107aea7f9 in php_mongo_connect ()
      #5 0x0000000107aeadc2 in php_mongo_ctor ()
      #6 0x0000000106f776c2 in dtrace_execute_internal ()
      #7 0x0000000106fe8421 in zend_do_fcall_common_helper_SPEC ()
      #8 0x0000000106fa5907 in execute ()
      #9 0x0000000106f775ff in dtrace_execute ()
      #10 0x0000000106f849ab in zend_execute_scripts ()
      #11 0x0000000106f3363e in php_execute_script ()
      #12 0x00000001070079ff in do_cli ()
      #13 0x00000001070068bd in main ()

      local client is this:
      MongoDB Support => enabled
      Version => 1.3.2

      Directive => Local Value => Master Value
      mongo.allow_empty_keys => 0 => 0
      mongo.chunk_size => 262144 => 262144
      mongo.cmd => $ => $
      mongo.default_host => localhost => localhost
      mongo.default_port => 27017 => 27017
      mongo.is_master_interval => no value => no value
      mongo.long_as_object => 0 => 0
      mongo.native_long => 0 => 0
      mongo.ping_interval => no value => no value
      mongo.utf8 => 1 => 1

        Attachments

          Activity

            People

            Assignee:
            derick Derick Rethans
            Reporter:
            nstott Nick Stott
            Participants:
            Last commenter:
            Rathi Gnanasekaran
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since reply:
              7 years, 13 weeks, 1 day ago
              Date of 1st Reply: