Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-222

WriteConcernError can cause segfaults on Ubuntu Precise 32bit

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.4.0
    • Affects Version/s: 0.3.1
    • Component/s: None
    • None

      tests/replicaset/bug0155.phpt segfaults on 32bit Ubuntu

      Program received signal SIGSEGV, Segmentation fault.
      0xb750b7eb in zval_addref_p (pz=0xebfa2031) at /usr/include/php5/Zend/zend.h:381
      381		return ++pz->refcount__gc;
      (gdb) bt
      #0  0xb750b7eb in zval_addref_p (pz=0xebfa2031) at /usr/include/php5/Zend/zend.h:381
      #1  php_phongo_writeconcernerror_get_debug_info (object=0x898d53c, is_temp=0xbfffd17c) at /tmp/phongo/src/MongoDB/WriteConcernError.c:173
      #2  0x0827ec63 in php_var_dump (struc=0x827f0a2, level=144340388) at /build/buildd/php5-5.3.10/ext/standard/var.c:129
      #3  0x0827f0a2 in zif_var_dump (ht=144233916, return_value=0x0, return_value_ptr=0x0, this_ptr=0x0, return_value_used=-1214768127) at /build/buildd/php5-5.3.10/ext/standard/var.c:181
      #4  0x083972da in zend_do_fcall_common_helper_SPEC (execute_data=0x89a7364) at /build/buildd/php5-5.3.10/Zend/zend_vm_execute.h:320
      #5  0x0834668e in execute (op_array=0x831f359) at /build/buildd/php5-5.3.10/Zend/zend_vm_execute.h:107
      #6  0x0831f359 in zend_execute_scripts (type=0, retval=0xbffff684, file_count=0) at /build/buildd/php5-5.3.10/Zend/zend.c:1308
      #7  0x082c5a1e in php_execute_script (primary_file=0xbffff684) at /build/buildd/php5-5.3.10/main/main.c:2323
      #8  0x0806b7a1 in main (argc=2, argv=0xbffff7b4) at /build/buildd/php5-5.3.10/sapi/cli/php_cli.c:1188
      

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: