Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Errors found by Valgrind #849

Merged
merged 1 commit into from Jul 15, 2013
Merged

[BUG] Errors found by Valgrind #849

merged 1 commit into from Jul 15, 2013

Conversation

ghost
Copy link

@ghost ghost commented Jul 15, 2013

==10576== Invalid read of size 1
==10576==    at 0x10BE34AC: phalcon_alt_call_user_method (fcall.c:918)
==10576==    by 0x10BBFC8C: phalcon_call_method_params_internal (fcall.c:409)
==10576==    by 0x10BBFED3: phalcon_call_method_params (fcall.c:458)
==10576==    by 0x10BC0227: phalcon_call_method_four_params (fcall.c:520)
==10576==    by 0x10C18E84: zim_Phalcon_Db_Adapter_Pdo_connect (pdo.c:243)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==    by 0x10BBFC8C: phalcon_call_method_params_internal (fcall.c:409)
==10576==    by 0x10BBFED3: phalcon_call_method_params (fcall.c:458)
==10576==    by 0x10BBFF3F: phalcon_call_method_one_param (fcall.c:467)
==10576==    by 0x10C17D2B: zim_Phalcon_Db_Adapter_Pdo___construct (pdo.c:93)
==10576==    by 0xB0069E: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==10576==  Address 0xc6b54d7 is 3 bytes after a block of size 4 alloc'd
==10576==    at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10576==    by 0xA8FB3E: zend_strndup (zend_alloc.c:2517)
==10576==    by 0x6F4EE7: pdo_dbh_init (pdo_dbh.c:1393)
==10576==    by 0x6EFC41: zm_startup_pdo (pdo.c:379)
==10576==    by 0xAC9ACC: zend_startup_module_ex (zend_API.c:1617)
==10576==    by 0xAD473E: zend_hash_apply (zend_hash.c:674)
==10576==    by 0xAC9CE1: zend_startup_modules (zend_API.c:1666)
==10576==    by 0xA1A6B0: php_module_startup (main.c:2074)
==10576==    by 0xBCBD57: php_cli_startup (php_cli.c:398)
==10576==    by 0xBCCE2E: main (php_cli.c:770)
==10576== 
==10576== Invalid read of size 1
==10576==    at 0x10BE34AC: phalcon_alt_call_user_method (fcall.c:918)
==10576==    by 0x10BBFC8C: phalcon_call_method_params_internal (fcall.c:409)
==10576==    by 0x10BBFED3: phalcon_call_method_params (fcall.c:458)
==10576==    by 0x10BBFF3F: phalcon_call_method_one_param (fcall.c:467)
==10576==    by 0x10C1AF03: zim_Phalcon_Db_Adapter_Pdo_execute (pdo.c:536)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==    by 0x10BBFC8C: phalcon_call_method_params_internal (fcall.c:409)
==10576==    by 0x10BBFED3: phalcon_call_method_params (fcall.c:458)
==10576==    by 0x10BC00E1: phalcon_call_method_three_params (fcall.c:498)
==10576==    by 0x10C2B20F: zim_Phalcon_Db_Adapter_delete (adapter.c:723)
==10576==    by 0xB0069E: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==10576==  Address 0xc6b54d7 is 3 bytes after a block of size 4 alloc'd
==10576==    at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10576==    by 0xA8FB3E: zend_strndup (zend_alloc.c:2517)
==10576==    by 0x6F4EE7: pdo_dbh_init (pdo_dbh.c:1393)
==10576==    by 0x6EFC41: zm_startup_pdo (pdo.c:379)
==10576==    by 0xAC9ACC: zend_startup_module_ex (zend_API.c:1617)
==10576==    by 0xAD473E: zend_hash_apply (zend_hash.c:674)
==10576==    by 0xAC9CE1: zend_startup_modules (zend_API.c:1666)
==10576==    by 0xA1A6B0: php_module_startup (main.c:2074)
==10576==    by 0xBCBD57: php_cli_startup (php_cli.c:398)
==10576==    by 0xBCCE2E: main (php_cli.c:770)
==10576== 
==10576== Invalid read of size 1
==10576==    at 0x10BE34AC: phalcon_alt_call_user_method (fcall.c:918)
==10576==    by 0x10BBFC8C: phalcon_call_method_params_internal (fcall.c:409)
==10576==    by 0x10BBFED3: phalcon_call_method_params (fcall.c:458)
==10576==    by 0x10BC0065: phalcon_call_method_two_params (fcall.c:489)
==10576==    by 0x10D4B166: zim_Phalcon_Mvc_Model_Manager_load (manager.c:366)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==    by 0x10BBFC8C: phalcon_call_method_params_internal (fcall.c:409)
==10576==    by 0x10BBFED3: phalcon_call_method_params (fcall.c:458)
==10576==    by 0x10BBFF3F: phalcon_call_method_one_param (fcall.c:467)
==10576==    by 0x10D2CB9D: zim_Phalcon_Mvc_Model_Query__prepareSelect (query.c:2572)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==  Address 0x173b3bb7 is 0 bytes after a block of size 7 alloc'd
==10576==    at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10576==    by 0xA8F53E: _emalloc (zend_alloc.c:2348)
==10576==    by 0xA8FADC: _estrndup (zend_alloc.c:2503)
==10576==    by 0xA6377C: lex_scan (zend_language_scanner.l:1701)
==10576==    by 0xAA5A46: zendlex (zend_compile.c:4976)
==10576==    by 0xA543CC: zendparse (zend_language_parser.c:3285)
==10576==    by 0xA5BFA5: compile_file (zend_language_scanner.l:364)
==10576==    by 0x761D78: phar_compile_file (phar.c:3394)
==10576==    by 0xA5C1CE: compile_filename (zend_language_scanner.l:407)
==10576==    by 0xB131BC: ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (zend_vm_execute.h:5255)
==10576==    by 0xAFF5AF: execute (zend_vm_execute.h:107)
==10576==    by 0xAAE3DA: zend_call_function (zend_execute_API.c:969)
==10576== 
==10576== Invalid read of size 1
==10576==    at 0x10BE34AC: phalcon_alt_call_user_method (fcall.c:918)
==10576==    by 0x10BBF84E: phalcon_call_method_internal (fcall.c:340)
==10576==    by 0x10BBFDE3: phalcon_call_method_ex (fcall.c:438)
==10576==    by 0x10D2CD67: zim_Phalcon_Mvc_Model_Query__prepareSelect (query.c:2578)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==    by 0x10BBF84E: phalcon_call_method_internal (fcall.c:340)
==10576==    by 0x10BBFDE3: phalcon_call_method_ex (fcall.c:438)
==10576==    by 0x10D35032: zim_Phalcon_Mvc_Model_Query_parse (query.c:3503)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==    by 0x10BBF84E: phalcon_call_method_internal (fcall.c:340)
==10576==  Address 0x173b3bb7 is 0 bytes after a block of size 7 alloc'd
==10576==    at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10576==    by 0xA8F53E: _emalloc (zend_alloc.c:2348)
==10576==    by 0xA8FADC: _estrndup (zend_alloc.c:2503)
==10576==    by 0xA6377C: lex_scan (zend_language_scanner.l:1701)
==10576==    by 0xAA5A46: zendlex (zend_compile.c:4976)
==10576==    by 0xA543CC: zendparse (zend_language_parser.c:3285)
==10576==    by 0xA5BFA5: compile_file (zend_language_scanner.l:364)
==10576==    by 0x761D78: phar_compile_file (phar.c:3394)
==10576==    by 0xA5C1CE: compile_filename (zend_language_scanner.l:407)
==10576==    by 0xB131BC: ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (zend_vm_execute.h:5255)
==10576==    by 0xAFF5AF: execute (zend_vm_execute.h:107)
==10576==    by 0xAAE3DA: zend_call_function (zend_execute_API.c:969)
==10576== 
==10576== Invalid read of size 1
==10576==    at 0x10BE34AC: phalcon_alt_call_user_method (fcall.c:918)
==10576==    by 0x10BBF84E: phalcon_call_method_internal (fcall.c:340)
==10576==    by 0x10BBFDE3: phalcon_call_method_ex (fcall.c:438)
==10576==    by 0x10D2CF31: zim_Phalcon_Mvc_Model_Query__prepareSelect (query.c:2581)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==    by 0x10BBF84E: phalcon_call_method_internal (fcall.c:340)
==10576==    by 0x10BBFDE3: phalcon_call_method_ex (fcall.c:438)
==10576==    by 0x10D35032: zim_Phalcon_Mvc_Model_Query_parse (query.c:3503)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==    by 0x10BBF84E: phalcon_call_method_internal (fcall.c:340)
==10576==  Address 0x173b3bb7 is 0 bytes after a block of size 7 alloc'd
==10576==    at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10576==    by 0xA8F53E: _emalloc (zend_alloc.c:2348)
==10576==    by 0xA8FADC: _estrndup (zend_alloc.c:2503)
==10576==    by 0xA6377C: lex_scan (zend_language_scanner.l:1701)
==10576==    by 0xAA5A46: zendlex (zend_compile.c:4976)
==10576==    by 0xA543CC: zendparse (zend_language_parser.c:3285)
==10576==    by 0xA5BFA5: compile_file (zend_language_scanner.l:364)
==10576==    by 0x761D78: phar_compile_file (phar.c:3394)
==10576==    by 0xA5C1CE: compile_filename (zend_language_scanner.l:407)
==10576==    by 0xB131BC: ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (zend_vm_execute.h:5255)
==10576==    by 0xAFF5AF: execute (zend_vm_execute.h:107)
==10576==    by 0xAAE3DA: zend_call_function (zend_execute_API.c:969)
==10576== 
==10576== Invalid read of size 1
==10576==    at 0x10BE34AC: phalcon_alt_call_user_method (fcall.c:918)
==10576==    by 0x10BBF84E: phalcon_call_method_internal (fcall.c:340)
==10576==    by 0x10BBFDE3: phalcon_call_method_ex (fcall.c:438)
==10576==    by 0x10D364D4: zim_Phalcon_Mvc_Model_Query__executeSelect (query.c:3675)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==    by 0x10BBFC8C: phalcon_call_method_params_internal (fcall.c:409)
==10576==    by 0x10BBFED3: phalcon_call_method_params (fcall.c:458)
==10576==    by 0x10BC00E1: phalcon_call_method_three_params (fcall.c:498)
==10576==    by 0x10D43982: zim_Phalcon_Mvc_Model_Query_execute (query.c:5023)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==  Address 0x173b3bb7 is 0 bytes after a block of size 7 alloc'd
==10576==    at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10576==    by 0xA8F53E: _emalloc (zend_alloc.c:2348)
==10576==    by 0xA8FADC: _estrndup (zend_alloc.c:2503)
==10576==    by 0xA6377C: lex_scan (zend_language_scanner.l:1701)
==10576==    by 0xAA5A46: zendlex (zend_compile.c:4976)
==10576==    by 0xA543CC: zendparse (zend_language_parser.c:3285)
==10576==    by 0xA5BFA5: compile_file (zend_language_scanner.l:364)
==10576==    by 0x761D78: phar_compile_file (phar.c:3394)
==10576==    by 0xA5C1CE: compile_filename (zend_language_scanner.l:407)
==10576==    by 0xB131BC: ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (zend_vm_execute.h:5255)
==10576==    by 0xAFF5AF: execute (zend_vm_execute.h:107)
==10576==    by 0xAAE3DA: zend_call_function (zend_execute_API.c:969)
==10576== 
==10576== Invalid read of size 1
==10576==    at 0x10BE34AC: phalcon_alt_call_user_method (fcall.c:918)
==10576==    by 0x10BBF84E: phalcon_call_method_internal (fcall.c:340)
==10576==    by 0x10BBFDE3: phalcon_call_method_ex (fcall.c:438)
==10576==    by 0x10D07A95: zim_Phalcon_Mvc_Model_MetaData_readMetaData (metadata.c:344)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==    by 0x10BBFC8C: phalcon_call_method_params_internal (fcall.c:409)
==10576==    by 0x10BBFED3: phalcon_call_method_params (fcall.c:458)
==10576==    by 0x10BBFF3F: phalcon_call_method_one_param (fcall.c:467)
==10576==    by 0x10D0A386: zim_Phalcon_Mvc_Model_MetaData_hasAttribute (metadata.c:1050)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==  Address 0x173b3bb7 is 0 bytes after a block of size 7 alloc'd
==10576==    at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10576==    by 0xA8F53E: _emalloc (zend_alloc.c:2348)
==10576==    by 0xA8FADC: _estrndup (zend_alloc.c:2503)
==10576==    by 0xA6377C: lex_scan (zend_language_scanner.l:1701)
==10576==    by 0xAA5A46: zendlex (zend_compile.c:4976)
==10576==    by 0xA543CC: zendparse (zend_language_parser.c:3285)
==10576==    by 0xA5BFA5: compile_file (zend_language_scanner.l:364)
==10576==    by 0x761D78: phar_compile_file (phar.c:3394)
==10576==    by 0xA5C1CE: compile_filename (zend_language_scanner.l:407)
==10576==    by 0xB131BC: ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (zend_vm_execute.h:5255)
==10576==    by 0xAFF5AF: execute (zend_vm_execute.h:107)
==10576==    by 0xAAE3DA: zend_call_function (zend_execute_API.c:969)
==10576== 
==10576== Invalid read of size 1
==10576==    at 0x10BE34AC: phalcon_alt_call_user_method (fcall.c:918)
==10576==    by 0x10BBF84E: phalcon_call_method_internal (fcall.c:340)
==10576==    by 0x10BBFDE3: phalcon_call_method_ex (fcall.c:438)
==10576==    by 0x10D07AFA: zim_Phalcon_Mvc_Model_MetaData_readMetaData (metadata.c:347)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==    by 0x10BBFC8C: phalcon_call_method_params_internal (fcall.c:409)
==10576==    by 0x10BBFED3: phalcon_call_method_params (fcall.c:458)
==10576==    by 0x10BBFF3F: phalcon_call_method_one_param (fcall.c:467)
==10576==    by 0x10D0A386: zim_Phalcon_Mvc_Model_MetaData_hasAttribute (metadata.c:1050)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==  Address 0x173b3bb7 is 0 bytes after a block of size 7 alloc'd
==10576==    at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10576==    by 0xA8F53E: _emalloc (zend_alloc.c:2348)
==10576==    by 0xA8FADC: _estrndup (zend_alloc.c:2503)
==10576==    by 0xA6377C: lex_scan (zend_language_scanner.l:1701)
==10576==    by 0xAA5A46: zendlex (zend_compile.c:4976)
==10576==    by 0xA543CC: zendparse (zend_language_parser.c:3285)
==10576==    by 0xA5BFA5: compile_file (zend_language_scanner.l:364)
==10576==    by 0x761D78: phar_compile_file (phar.c:3394)
==10576==    by 0xA5C1CE: compile_filename (zend_language_scanner.l:407)
==10576==    by 0xB131BC: ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (zend_vm_execute.h:5255)
==10576==    by 0xAFF5AF: execute (zend_vm_execute.h:107)
==10576==    by 0xAAE3DA: zend_call_function (zend_execute_API.c:969)
==10576== 
==10576== Invalid read of size 1
==10576==    at 0x10BE34AC: phalcon_alt_call_user_method (fcall.c:918)
==10576==    by 0x10BBF84E: phalcon_call_method_internal (fcall.c:340)
==10576==    by 0x10BBFDE3: phalcon_call_method_ex (fcall.c:438)
==10576==    by 0x10CFE24A: zim_Phalcon_Mvc_Model_MetaData_Strategy_Introspection_getMetaData (introspection.c:90)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==    by 0x10BBFC8C: phalcon_call_method_params_internal (fcall.c:409)
==10576==    by 0x10BBFED3: phalcon_call_method_params (fcall.c:458)
==10576==    by 0x10BC0065: phalcon_call_method_two_params (fcall.c:489)
==10576==    by 0x10D06ACA: zim_Phalcon_Mvc_Model_MetaData__initialize (metadata.c:164)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==  Address 0x173b3bb7 is 0 bytes after a block of size 7 alloc'd
==10576==    at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10576==    by 0xA8F53E: _emalloc (zend_alloc.c:2348)
==10576==    by 0xA8FADC: _estrndup (zend_alloc.c:2503)
==10576==    by 0xA6377C: lex_scan (zend_language_scanner.l:1701)
==10576==    by 0xAA5A46: zendlex (zend_compile.c:4976)
==10576==    by 0xA543CC: zendparse (zend_language_parser.c:3285)
==10576==    by 0xA5BFA5: compile_file (zend_language_scanner.l:364)
==10576==    by 0x761D78: phar_compile_file (phar.c:3394)
==10576==    by 0xA5C1CE: compile_filename (zend_language_scanner.l:407)
==10576==    by 0xB131BC: ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (zend_vm_execute.h:5255)
==10576==    by 0xAFF5AF: execute (zend_vm_execute.h:107)
==10576==    by 0xAAE3DA: zend_call_function (zend_execute_API.c:969)
==10576== 
==10576== Invalid read of size 1
==10576==    at 0x10BE34AC: phalcon_alt_call_user_method (fcall.c:918)
==10576==    by 0x10BBF84E: phalcon_call_method_internal (fcall.c:340)
==10576==    by 0x10BBFDE3: phalcon_call_method_ex (fcall.c:438)
==10576==    by 0x10CFE2BE: zim_Phalcon_Mvc_Model_MetaData_Strategy_Introspection_getMetaData (introspection.c:93)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==    by 0x10BBFC8C: phalcon_call_method_params_internal (fcall.c:409)
==10576==    by 0x10BBFED3: phalcon_call_method_params (fcall.c:458)
==10576==    by 0x10BC0065: phalcon_call_method_two_params (fcall.c:489)
==10576==    by 0x10D06ACA: zim_Phalcon_Mvc_Model_MetaData__initialize (metadata.c:164)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==  Address 0x173b3bb7 is 0 bytes after a block of size 7 alloc'd
==10576==    at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10576==    by 0xA8F53E: _emalloc (zend_alloc.c:2348)
==10576==    by 0xA8FADC: _estrndup (zend_alloc.c:2503)
==10576==    by 0xA6377C: lex_scan (zend_language_scanner.l:1701)
==10576==    by 0xAA5A46: zendlex (zend_compile.c:4976)
==10576==    by 0xA543CC: zendparse (zend_language_parser.c:3285)
==10576==    by 0xA5BFA5: compile_file (zend_language_scanner.l:364)
==10576==    by 0x761D78: phar_compile_file (phar.c:3394)
==10576==    by 0xA5C1CE: compile_filename (zend_language_scanner.l:407)
==10576==    by 0xB131BC: ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (zend_vm_execute.h:5255)
==10576==    by 0xAFF5AF: execute (zend_vm_execute.h:107)
==10576==    by 0xAAE3DA: zend_call_function (zend_execute_API.c:969)
==10576== 
==10576== Invalid read of size 1
==10576==    at 0x10BE34AC: phalcon_alt_call_user_method (fcall.c:918)
==10576==    by 0x10BBF84E: phalcon_call_method_internal (fcall.c:340)
==10576==    by 0x10BBFDE3: phalcon_call_method_ex (fcall.c:438)
==10576==    by 0x10CFE332: zim_Phalcon_Mvc_Model_MetaData_Strategy_Introspection_getMetaData (introspection.c:99)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==    by 0x10BBFC8C: phalcon_call_method_params_internal (fcall.c:409)
==10576==    by 0x10BBFED3: phalcon_call_method_params (fcall.c:458)
==10576==    by 0x10BC0065: phalcon_call_method_two_params (fcall.c:489)
==10576==    by 0x10D06ACA: zim_Phalcon_Mvc_Model_MetaData__initialize (metadata.c:164)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==  Address 0x173b3bb7 is 0 bytes after a block of size 7 alloc'd
==10576==    at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10576==    by 0xA8F53E: _emalloc (zend_alloc.c:2348)
==10576==    by 0xA8FADC: _estrndup (zend_alloc.c:2503)
==10576==    by 0xA6377C: lex_scan (zend_language_scanner.l:1701)
==10576==    by 0xAA5A46: zendlex (zend_compile.c:4976)
==10576==    by 0xA543CC: zendparse (zend_language_parser.c:3285)
==10576==    by 0xA5BFA5: compile_file (zend_language_scanner.l:364)
==10576==    by 0x761D78: phar_compile_file (phar.c:3394)
==10576==    by 0xA5C1CE: compile_filename (zend_language_scanner.l:407)
==10576==    by 0xB131BC: ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (zend_vm_execute.h:5255)
==10576==    by 0xAFF5AF: execute (zend_vm_execute.h:107)
==10576==    by 0xAAE3DA: zend_call_function (zend_execute_API.c:969)
==10576== 
==10576== Invalid read of size 1
==10576==    at 0x10BE34AC: phalcon_alt_call_user_method (fcall.c:918)
==10576==    by 0x10BBF84E: phalcon_call_method_internal (fcall.c:340)
==10576==    by 0x10BBFDE3: phalcon_call_method_ex (fcall.c:438)
==10576==    by 0x10D07EC9: zim_Phalcon_Mvc_Model_MetaData_readMetaDataIndex (metadata.c:403)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==    by 0x10BBFC8C: phalcon_call_method_params_internal (fcall.c:409)
==10576==    by 0x10BBFED3: phalcon_call_method_params (fcall.c:458)
==10576==    by 0x10BC0065: phalcon_call_method_two_params (fcall.c:489)
==10576==    by 0x10D08D3D: zim_Phalcon_Mvc_Model_MetaData_getAttributes (metadata.c:618)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==  Address 0x173b3bb7 is 0 bytes after a block of size 7 alloc'd
==10576==    at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10576==    by 0xA8F53E: _emalloc (zend_alloc.c:2348)
==10576==    by 0xA8FADC: _estrndup (zend_alloc.c:2503)
==10576==    by 0xA6377C: lex_scan (zend_language_scanner.l:1701)
==10576==    by 0xAA5A46: zendlex (zend_compile.c:4976)
==10576==    by 0xA543CC: zendparse (zend_language_parser.c:3285)
==10576==    by 0xA5BFA5: compile_file (zend_language_scanner.l:364)
==10576==    by 0x761D78: phar_compile_file (phar.c:3394)
==10576==    by 0xA5C1CE: compile_filename (zend_language_scanner.l:407)
==10576==    by 0xB131BC: ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (zend_vm_execute.h:5255)
==10576==    by 0xAFF5AF: execute (zend_vm_execute.h:107)
==10576==    by 0xAAE3DA: zend_call_function (zend_execute_API.c:969)
==10576== 
==10576== Invalid read of size 1
==10576==    at 0x10BE34AC: phalcon_alt_call_user_method (fcall.c:918)
==10576==    by 0x10BBF84E: phalcon_call_method_internal (fcall.c:340)
==10576==    by 0x10BBFDE3: phalcon_call_method_ex (fcall.c:438)
==10576==    by 0x10D07F34: zim_Phalcon_Mvc_Model_MetaData_readMetaDataIndex (metadata.c:406)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==    by 0x10BBFC8C: phalcon_call_method_params_internal (fcall.c:409)
==10576==    by 0x10BBFED3: phalcon_call_method_params (fcall.c:458)
==10576==    by 0x10BC0065: phalcon_call_method_two_params (fcall.c:489)
==10576==    by 0x10D08D3D: zim_Phalcon_Mvc_Model_MetaData_getAttributes (metadata.c:618)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==  Address 0x173b3bb7 is 0 bytes after a block of size 7 alloc'd
==10576==    at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10576==    by 0xA8F53E: _emalloc (zend_alloc.c:2348)
==10576==    by 0xA8FADC: _estrndup (zend_alloc.c:2503)
==10576==    by 0xA6377C: lex_scan (zend_language_scanner.l:1701)
==10576==    by 0xAA5A46: zendlex (zend_compile.c:4976)
==10576==    by 0xA543CC: zendparse (zend_language_parser.c:3285)
==10576==    by 0xA5BFA5: compile_file (zend_language_scanner.l:364)
==10576==    by 0x761D78: phar_compile_file (phar.c:3394)
==10576==    by 0xA5C1CE: compile_filename (zend_language_scanner.l:407)
==10576==    by 0xB131BC: ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (zend_vm_execute.h:5255)
==10576==    by 0xAFF5AF: execute (zend_vm_execute.h:107)
==10576==    by 0xAAE3DA: zend_call_function (zend_execute_API.c:969)
==10576== 
==10576== Conditional jump or move depends on uninitialised value(s)
==10576==    at 0x10BD1C45: phalcon_lcfirst (string.c:1302)
==10576==    by 0x10D20CE9: zim_Phalcon_Mvc_Model_Query__getSelectColumn (query.c:1207)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==    by 0x10BBFC8C: phalcon_call_method_params_internal (fcall.c:409)
==10576==    by 0x10BBFED3: phalcon_call_method_params (fcall.c:458)
==10576==    by 0x10BBFF3F: phalcon_call_method_one_param (fcall.c:467)
==10576==    by 0x10D2E307: zim_Phalcon_Mvc_Model_Query__prepareSelect (query.c:2711)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==    by 0x10BBF84E: phalcon_call_method_internal (fcall.c:340)
==10576==    by 0x10BBFDE3: phalcon_call_method_ex (fcall.c:438)
==10576== 
==10576== Conditional jump or move depends on uninitialised value(s)
==10576==    at 0x10BCD946: _zval_dtor (zend_variables.h:32)
==10576==    by 0x10BD1C5E: phalcon_lcfirst (string.c:1303)
==10576==    by 0x10D20CE9: zim_Phalcon_Mvc_Model_Query__getSelectColumn (query.c:1207)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==    by 0x10BBFC8C: phalcon_call_method_params_internal (fcall.c:409)
==10576==    by 0x10BBFED3: phalcon_call_method_params (fcall.c:458)
==10576==    by 0x10BBFF3F: phalcon_call_method_one_param (fcall.c:467)
==10576==    by 0x10D2E307: zim_Phalcon_Mvc_Model_Query__prepareSelect (query.c:2711)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==    by 0x10BBF84E: phalcon_call_method_internal (fcall.c:340)
==10576== 
==10576== Invalid read of size 1
==10576==    at 0x10BE34AC: phalcon_alt_call_user_method (fcall.c:918)
==10576==    by 0x10BBF84E: phalcon_call_method_internal (fcall.c:340)
==10576==    by 0x10BBFDE3: phalcon_call_method_ex (fcall.c:438)
==10576==    by 0x10D4AA5E: zim_Phalcon_Mvc_Model_Manager_initialize (manager.c:248)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==    by 0x10BBFC8C: phalcon_call_method_params_internal (fcall.c:409)
==10576==    by 0x10BBFED3: phalcon_call_method_params (fcall.c:458)
==10576==    by 0x10BBFF3F: phalcon_call_method_one_param (fcall.c:467)
==10576==    by 0x10C8490C: zim_Phalcon_Mvc_Model___construct (model.c:179)
==10576==    by 0x10BE2F25: phalcon_alt_call_method (fcall.c:477)
==10576==    by 0x10BE36A2: phalcon_alt_call_user_method (fcall.c:947)
==10576==  Address 0x17857787 is 0 bytes after a block of size 7 alloc'd
==10576==    at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10576==    by 0xA8F53E: _emalloc (zend_alloc.c:2348)
==10576==    by 0xA8FADC: _estrndup (zend_alloc.c:2503)
==10576==    by 0xA6377C: lex_scan (zend_language_scanner.l:1701)
==10576==    by 0xAA5A46: zendlex (zend_compile.c:4976)
==10576==    by 0xA543CC: zendparse (zend_language_parser.c:3285)
==10576==    by 0xA5BFA5: compile_file (zend_language_scanner.l:364)
==10576==    by 0x761D78: phar_compile_file (phar.c:3394)
==10576==    by 0xA5C1CE: compile_filename (zend_language_scanner.l:407)
==10576==    by 0xB131BC: ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (zend_vm_execute.h:5255)
==10576==    by 0xAFF5AF: execute (zend_vm_execute.h:107)
==10576==    by 0xAAE3DA: zend_call_function (zend_execute_API.c:969)
==10576== 

phalcon pushed a commit that referenced this pull request Jul 15, 2013
[BUG] Errors found by Valgrind
@phalcon phalcon merged commit 61bde35 into phalcon:1.2.1 Jul 15, 2013
@ghost ghost deleted the valgrind branch July 16, 2013 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants