I use php5.3.6, mongodb1.8.2 (show result in
pastebin.com:
http://pastebin.com/raw.php?i=kHPNQV8u)
[root@imobile-test4-181 local]# gdb php
(gdb) run /home/codebase/toolbox/mongodb.php
Starting program: /bin/php /home/codebase/toolbox/mongodb.php
warning: no loadable sections found in added symbol-file system-
supplied DSO at 0x2aaaaaaab000
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x00000000005891ed in mongo_db__create_fake_cursor (current=0x1a5ddf0,
cmd=0x1a63b48) at /root/php-5.3.6/ext/mongo/db.c:567
567 memcpy(".$cmd", cursor->ns+strlen(current->db), 5);
(gdb) bt
#0 0x00000000005891ed in mongo_db__create_fake_cursor
(current=0x1a5ddf0, cmd=0x1a63b48) at /root/php-5.3.6/ext/mongo/db.c:
567
#1 0x00000000005892f0 in mongo_db_cmd (current=0x1a5ddf0,
cmd=0x1a63b48) at /root/php-5.3.6/ext/mongo/db.c:603
#2 0x0000000000594836 in mongo_util_server__other_le
(server=0x1a5ddf0) at /root/php-5.3.6/ext/mongo/util/server.c:186
#3 0x0000000000594a28 in mongo_util_server__get_info
(server=0x1a5ddf0) at /root/php-5.3.6/ext/mongo/util/server.c:239
#4 0x0000000000594ef6 in mongo_util_server_get_bson_size
(server=0x1a5d058) at /root/php-5.3.6/ext/mongo/util/server.c:133
#5 0x0000000000587934 in zim_MongoCollection_insert (ht=<value
optimized out>, return_value=0x1a5f298, return_value_ptr=<value
optimized out>, this_ptr=0x1c44130, return_value_used=<value optimized
out>)
at /root/php-5.3.6/ext/mongo/collection.c:417
#6 0x00002aaaaf5d836d in xdebug_execute_internal
(current_execute_data=0x2aaab380b1e0, return_value_used=0) at /home/
codebase/software/xdebug/xdebug.c:1379
#7 0x00000000007346a5 in zend_do_fcall_common_helper_SPEC
(execute_data=0x2aaab380b1e0) at /root/php-5.3.6/Zend/
zend_vm_execute.h:318
#8 0x0000000000733e5c in execute (op_array=0x1ac56d0) at /root/
php-5.3.6/Zend/zend_vm_execute.h:107
#9 0x00002aaaaf5d7fb0 in xdebug_execute (op_array=0x1ac56d0) at /home/
codebase/software/xdebug/xdebug.c:1308
#10 0x0000000000734382 in zend_do_fcall_common_helper_SPEC
(execute_data=0x2aaab380b050) at /root/php-5.3.6/Zend/
zend_vm_execute.h:340
#11 0x0000000000733e5c in execute (op_array=0x1a5b3d0) at /root/
php-5.3.6/Zend/zend_vm_execute.h:107
#12 0x00002aaaaf5d7fb0 in xdebug_execute (op_array=0x1a5b3d0) at /home/
codebase/software/xdebug/xdebug.c:1308
#13 0x000000000070e1fd in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /root/php-5.3.6/Zend/zend.c:1202
#14 0x00000000006bdb8d in php_execute_script
(primary_file=0x7fffffffe780) at /root/php-5.3.6/main/main.c:2291
#15 0x000000000079379c in main (argc=2, argv=0x7fffffffe9f8) at /root/
php-5.3.6/sapi/cli/php_cli.c:1193
(gdb) quit