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

BSON\Javascript 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

      tarting program: /usr/bin/php /usr/share/php/test/mongodb/tests/bson/bson-javascript-001.phpt
      [Thread debugging using libthread_db enabled]
      Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
      --TEST--
      BSON BSON\Javascript #001
      --SKIPIF--
      --FILE--
      
      Program received signal SIGSEGV, Segmentation fault.
      bson_destroy (bson=0xbb2c6612) at /tmp/pear/temp/mongodb/src/libbson/src/bson/bson.c:2151
      2151	   if (!(bson->flags &
      (gdb) bt
      #0  bson_destroy (bson=0xbb2c6612) at /tmp/pear/temp/mongodb/src/libbson/src/bson/bson.c:2151
      #1  0xb7518f40 in php_phongo_javascript_free_object (object=0x898590c)
          at /tmp/pear/temp/mongodb/src/BSON/Javascript.c:105
      #2  0x08345632 in zend_objects_store_del_ref_by_handle_ex (handle=<unknown type>, handlers=0x5)
          at /build/buildd/php5-5.3.10/Zend/zend_objects_API.c:220
      #3  0x0834566f in zend_objects_store_del_ref (zobject=0x831cd61)
          at /build/buildd/php5-5.3.10/Zend/zend_objects_API.c:172
      #4  0x0831cd61 in _zval_dtor_func (zvalue=0x830e8d5) at /build/buildd/php5-5.3.10/Zend/zend_variables.c:55
      #5  0x0830e8d5 in _zval_ptr_dtor (zval_ptr=0x8396b6a) at /build/buildd/php5-5.3.10/Zend/zend_variables.h:35
      #6  0x08396b6a in zend_do_fcall_common_helper_SPEC (execute_data=0x89a3864)
          at /build/buildd/php5-5.3.10/Zend/zend_vm_execute.h:400
      #7  0x0834668e in execute (op_array=0x831f359) at /build/buildd/php5-5.3.10/Zend/zend_vm_execute.h:107
      #8  0x0831f359 in zend_execute_scripts (type=0, retval=0xbffff654, file_count=0)
          at /build/buildd/php5-5.3.10/Zend/zend.c:1308
      #9  0x082c5a1e in php_execute_script (primary_file=0xbffff654) at /build/buildd/php5-5.3.10/main/main.c:2323
      #10 0x0806b7a1 in main (argc=2, argv=0xbffff784) 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: