==24335== Memcheck, a memory error detector for x86-linux. ==24335== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==24335== Using valgrind-2.4.1, a program supervision framework for x86-linux. ==24335== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. ==24335== ==24335== My PID = 24335, parent PID = 10725. Prog and args are: ==24335== sapi/cli/php ==24335== ../overflow.php ==24335== For more details, rerun with: -v ==24335== ==24335== Invalid read of size 4 ==24335== at 0x1C2274C5: mempcpy (in /lib/libc-2.3.5.so) ==24335== by 0x1C21D280: _IO_file_xsputn (in /lib/libc-2.3.5.so) ==24335== by 0x1C2139A8: fwrite (in /lib/libc-2.3.5.so) ==24335== by 0x82CF544: sapi_cli_ub_write (php_cli.c:204) ==24335== by 0x821DFF0: php_ub_body_write_no_header (output.c:684) ==24335== by 0x81E93D4: php_var_dump (var.c:126) ==24335== by 0x81E983D: zif_var_dump (var.c:192) ==24335== by 0x82698D5: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:184) ==24335== by 0x82690A8: execute (zend_vm_execute.h:87) ==24335== by 0x826948C: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:215) ==24335== by 0x82690A8: execute (zend_vm_execute.h:87) ==24335== by 0x826948C: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:215) ==24335== Address 0x1C7019A4 is 0 bytes after a block of size 332 alloc'd ==24335== at 0x1B9042A6: malloc (vg_replace_malloc.c:130) ==24335== by 0x823335E: _emalloc (zend_alloc.c:181) ==24335== by 0x823A722: zend_do_begin_class_declaration (zend_compile.c:2617) ==24335== by 0x822C0DA: zendparse (zend_language_parser.y:290) ==24335== by 0x822DA5C: compile_file (zend_language_scanner.l:394) ==24335== by 0x82486F1: zend_execute_scripts (zend.c:1070) ==24335== by 0x8211EAA: php_execute_script (main.c:1672) ==24335== by 0x82D07F9: main (php_cli.c:1039) ==24335== ==24335== Syscall param write(buf) points to uninitialised byte(s) ==24335== at 0x1C26A2D8: write (in /lib/libc-2.3.5.so) ==24335== by 0x1C21BBD7: (within /lib/libc-2.3.5.so) ==24335== by 0x1C21BCDC: _IO_do_write (in /lib/libc-2.3.5.so) ==24335== by 0x1C21C5BF: _IO_file_overflow (in /lib/libc-2.3.5.so) ==24335== by 0x1C21D218: _IO_file_xsputn (in /lib/libc-2.3.5.so) ==24335== by 0x1C2139A8: fwrite (in /lib/libc-2.3.5.so) ==24335== by 0x82CF544: sapi_cli_ub_write (php_cli.c:204) ==24335== by 0x821DFF0: php_ub_body_write_no_header (output.c:684) ==24335== by 0x81E93D4: php_var_dump (var.c:126) ==24335== by 0x81E983D: zif_var_dump (var.c:192) ==24335== by 0x82698D5: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:184) ==24335== by 0x82690A8: execute (zend_vm_execute.h:87) ==24335== Address 0x1B908001 is not stack'd, malloc'd or (recently) free'd ==24335== ==24335== Syscall param write(buf) points to unaddressable byte(s) ==24335== at 0x1C26A2D8: write (in /lib/libc-2.3.5.so) ==24335== by 0x1C21BBD7: (within /lib/libc-2.3.5.so) ==24335== by 0x1C21D2AE: _IO_file_xsputn (in /lib/libc-2.3.5.so) ==24335== by 0x1C2139A8: fwrite (in /lib/libc-2.3.5.so) ==24335== by 0x82CF544: sapi_cli_ub_write (php_cli.c:204) ==24335== by 0x821DFF0: php_ub_body_write_no_header (output.c:684) ==24335== by 0x81E93D4: php_var_dump (var.c:126) ==24335== by 0x81E983D: zif_var_dump (var.c:192) ==24335== by 0x82698D5: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:184) ==24335== by 0x82690A8: execute (zend_vm_execute.h:87) ==24335== by 0x826948C: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:215) ==24335== by 0x82690A8: execute (zend_vm_execute.h:87) ==24335== Address 0x1C701C64 is 60 bytes inside a block of size 85 free'd ==24335== at 0x1B9047C7: free (vg_replace_malloc.c:152) ==24335== by 0x8250571: zend_hash_del_key_or_index (zend_hash.c:495) ==24335== by 0x823B2B0: zend_do_early_binding (zend_compile.c:2351) ==24335== by 0x822CE22: zendparse (zend_language_parser.y:164) ==24335== by 0x822DA5C: compile_file (zend_language_scanner.l:394) ==24335== by 0x82486F1: zend_execute_scripts (zend.c:1070) ==24335== by 0x8211EAA: php_execute_script (main.c:1672) ==24335== by 0x82D07F9: main (php_cli.c:1039) ==24335== ==24335== Syscall param write(buf) points to uninitialised byte(s) ==24335== at 0x1C26A2D8: write (in /lib/libc-2.3.5.so) ==24335== by 0x1C21BBD7: (within /lib/libc-2.3.5.so) ==24335== by 0x1C21D2AE: _IO_file_xsputn (in /lib/libc-2.3.5.so) ==24335== by 0x1C2139A8: fwrite (in /lib/libc-2.3.5.so) ==24335== by 0x82CF544: sapi_cli_ub_write (php_cli.c:204) ==24335== by 0x821DFF0: php_ub_body_write_no_header (output.c:684) ==24335== by 0x81E93D4: php_var_dump (var.c:126) ==24335== by 0x81E983D: zif_var_dump (var.c:192) ==24335== by 0x82698D5: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:184) ==24335== by 0x82690A8: execute (zend_vm_execute.h:87) ==24335== by 0x826948C: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:215) ==24335== by 0x82690A8: execute (zend_vm_execute.h:87) ==24335== Address 0x1C705C8A is 226 bytes inside a block of size 1004 alloc'd ==24335== at 0x1B904CE5: realloc (vg_replace_malloc.c:196) ==24335== by 0x8233663: _erealloc (zend_alloc.c:366) ==24335== by 0x823FE72: pass_two (zend_opcode.c:354) ==24335== by 0x8238B6B: zend_do_end_function_declaration (zend_compile.c:1206) ==24335== by 0x822AF30: zendparse (zend_language_parser.y:493) ==24335== by 0x822DA5C: compile_file (zend_language_scanner.l:394) ==24335== by 0x82486F1: zend_execute_scripts (zend.c:1070) ==24335== by 0x8211EAA: php_execute_script (main.c:1672) ==24335== by 0x82D07F9: main (php_cli.c:1039) ==24335== ==24335== Process terminating with default action of signal 11 (SIGSEGV) ==24335== Access not within mapped region at address 0x1C769000 ==24335== at 0x1C2274C5: mempcpy (in /lib/libc-2.3.5.so) ==24335== by 0x1C21D280: _IO_file_xsputn (in /lib/libc-2.3.5.so) ==24335== by 0x1C2139A8: fwrite (in /lib/libc-2.3.5.so) ==24335== by 0x82CF544: sapi_cli_ub_write (php_cli.c:204) ==24335== by 0x821DFF0: php_ub_body_write_no_header (output.c:684) ==24335== by 0x81E93D4: php_var_dump (var.c:126) ==24335== by 0x81E983D: zif_var_dump (var.c:192) ==24335== by 0x82698D5: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:184) ==24335== by 0x82690A8: execute (zend_vm_execute.h:87) ==24335== by 0x826948C: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:215) ==24335== by 0x82690A8: execute (zend_vm_execute.h:87) ==24335== by 0x826948C: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:215) ==24335== ==24335== ERROR SUMMARY: 9629 errors from 11 contexts (suppressed: 1 from 1) ==24335== malloc/free: in use at exit: 813727 bytes in 14260 blocks. ==24335== malloc/free: 15052 allocs, 792 frees, 994497 bytes allocated. ==24335== For counts of detected errors, rerun with: -v ==24335== searching for pointers to 14260 not-freed blocks. ==24335== checked 2626600 bytes. ==24335== ==24335== LEAK SUMMARY: ==24335== definitely lost: 54 bytes in 2 blocks. ==24335== possibly lost: 0 bytes in 0 blocks. ==24335== still reachable: 813673 bytes in 14258 blocks. ==24335== suppressed: 0 bytes in 0 blocks. ==24335== Use --leak-check=full to see details of leaked memory.