PHP  
 PHP_7_2
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Valgrind Report for sapi/phpdbg/tests/watch_006.phpt ('Test multiple watch elements pointing to the same watchpoint')

Script

1: <?php
2:
3: $a 
= [0];
4:
$a[0] = 1;
5:
$b = &$a;
6:
$a[0] = 2;
7:
$a[1] = 3;
8:
$c = [1];
9:
$b = &$c;
10:

Report

==18459== Conditional jump or move depends on uninitialised value(s)
==18459==    at 0x4C2D026: __memcmp_sse4_1 (vg_replace_strmem.c:1100)
==18459==    by 0x13BD9DC: phpdbg_check_watch_diff (phpdbg_watch.c:135)
==18459==    by 0x13C35CA: phpdbg_check_watchpoint (phpdbg_watch.c:1007)
==18459==    by 0x13C4168: phpdbg_print_changed_zvals (phpdbg_watch.c:1107)
==18459==    by 0x1394B0F: phpdbg_execute_ex (phpdbg_prompt.c:1864)
==18459==    by 0x1372DD5: zend_execute (zend_vm_execute.h:63776)
==18459==    by 0x138E6A0: phpdbg_do_run (phpdbg_prompt.c:942)
==18459==    by 0x13B8125: phpdbg_internal_stack_execute (phpdbg_cmd.c:703)
==18459==    by 0x13B82F6: phpdbg_stack_execute (phpdbg_cmd.c:733)
==18459==    by 0x1392AC7: phpdbg_interactive (phpdbg_prompt.c:1631)
==18459==    by 0x137E8AF: main (phpdbg.c:2001)
==18459== 
==18459== Conditional jump or move depends on uninitialised value(s)
==18459==    at 0x4C2D026: __memcmp_sse4_1 (vg_replace_strmem.c:1100)
==18459==    by 0x13BDA14: phpdbg_check_watch_diff (phpdbg_watch.c:139)
==18459==    by 0x13C35CA: phpdbg_check_watchpoint (phpdbg_watch.c:1007)
==18459==    by 0x13C4168: phpdbg_print_changed_zvals (phpdbg_watch.c:1107)
==18459==    by 0x1394B0F: phpdbg_execute_ex (phpdbg_prompt.c:1864)
==18459==    by 0x1372DD5: zend_execute (zend_vm_execute.h:63776)
==18459==    by 0x138E6A0: phpdbg_do_run (phpdbg_prompt.c:942)
==18459==    by 0x13B8125: phpdbg_internal_stack_execute (phpdbg_cmd.c:703)
==18459==    by 0x13B82F6: phpdbg_stack_execute (phpdbg_cmd.c:733)
==18459==    by 0x1392AC7: phpdbg_interactive (phpdbg_prompt.c:1631)
==18459==    by 0x137E8AF: main (phpdbg.c:2001)
==18459== 
==18459== Conditional jump or move depends on uninitialised value(s)
==18459==    at 0x13C36A1: phpdbg_check_watchpoint (phpdbg_watch.c:1015)
==18459==    by 0x13C4168: phpdbg_print_changed_zvals (phpdbg_watch.c:1107)
==18459==    by 0x1394B0F: phpdbg_execute_ex (phpdbg_prompt.c:1864)
==18459==    by 0x1372DD5: zend_execute (zend_vm_execute.h:63776)
==18459==    by 0x138E6A0: phpdbg_do_run (phpdbg_prompt.c:942)
==18459==    by 0x13B8125: phpdbg_internal_stack_execute (phpdbg_cmd.c:703)
==18459==    by 0x13B82F6: phpdbg_stack_execute (phpdbg_cmd.c:733)
==18459==    by 0x1392AC7: phpdbg_interactive (phpdbg_prompt.c:1631)
==18459==    by 0x137E8AF: main (phpdbg.c:2001)
==18459== 
==18459== Conditional jump or move depends on uninitialised value(s)
==18459==    at 0x13C36C3: phpdbg_check_watchpoint (phpdbg_watch.c:1015)
==18459==    by 0x13C4168: phpdbg_print_changed_zvals (phpdbg_watch.c:1107)
==18459==    by 0x1394B0F: phpdbg_execute_ex (phpdbg_prompt.c:1864)
==18459==    by 0x1372DD5: zend_execute (zend_vm_execute.h:63776)
==18459==    by 0x138E6A0: phpdbg_do_run (phpdbg_prompt.c:942)
==18459==    by 0x13B8125: phpdbg_internal_stack_execute (phpdbg_cmd.c:703)
==18459==    by 0x13B82F6: phpdbg_stack_execute (phpdbg_cmd.c:733)
==18459==    by 0x1392AC7: phpdbg_interactive (phpdbg_prompt.c:1631)
==18459==    by 0x137E8AF: main (phpdbg.c:2001)
==18459== 
==18459== Conditional jump or move depends on uninitialised value(s)
==18459==    at 0x4C2CFF1: __memcmp_sse4_1 (vg_replace_strmem.c:1100)
==18459==    by 0x13BDA14: phpdbg_check_watch_diff (phpdbg_watch.c:139)
==18459==    by 0x13C35CA: phpdbg_check_watchpoint (phpdbg_watch.c:1007)
==18459==    by 0x13C4168: phpdbg_print_changed_zvals (phpdbg_watch.c:1107)
==18459==    by 0x1394B0F: phpdbg_execute_ex (phpdbg_prompt.c:1864)
==18459==    by 0x1372DD5: zend_execute (zend_vm_execute.h:63776)
==18459==    by 0x138E6A0: phpdbg_do_run (phpdbg_prompt.c:942)
==18459==    by 0x13B8125: phpdbg_internal_stack_execute (phpdbg_cmd.c:703)
==18459==    by 0x13B82F6: phpdbg_stack_execute (phpdbg_cmd.c:733)
==18459==    by 0x1392AC7: phpdbg_interactive (phpdbg_prompt.c:1631)
==18459==    by 0x137E8AF: main (phpdbg.c:2001)
==18459== 
==18459== Conditional jump or move depends on uninitialised value(s)
==18459==    at 0x4C2D00F: __memcmp_sse4_1 (vg_replace_strmem.c:1100)
==18459==    by 0x13BDA14: phpdbg_check_watch_diff (phpdbg_watch.c:139)
==18459==    by 0x13C35CA: phpdbg_check_watchpoint (phpdbg_watch.c:1007)
==18459==    by 0x13C4168: phpdbg_print_changed_zvals (phpdbg_watch.c:1107)
==18459==    by 0x1394B0F: phpdbg_execute_ex (phpdbg_prompt.c:1864)
==18459==    by 0x1372DD5: zend_execute (zend_vm_execute.h:63776)
==18459==    by 0x138E6A0: phpdbg_do_run (phpdbg_prompt.c:942)
==18459==    by 0x13B8125: phpdbg_internal_stack_execute (phpdbg_cmd.c:703)
==18459==    by 0x13B82F6: phpdbg_stack_execute (phpdbg_cmd.c:733)
==18459==    by 0x1392AC7: phpdbg_interactive (phpdbg_prompt.c:1631)
==18459==    by 0x137E8AF: main (phpdbg.c:2001)
==18459== 
==18459== Conditional jump or move depends on uninitialised value(s)
==18459==    at 0x13C35CD: phpdbg_check_watchpoint (phpdbg_watch.c:1007)
==18459==    by 0x13C4168: phpdbg_print_changed_zvals (phpdbg_watch.c:1107)
==18459==    by 0x1394B0F: phpdbg_execute_ex (phpdbg_prompt.c:1864)
==18459==    by 0x1372DD5: zend_execute (zend_vm_execute.h:63776)
==18459==    by 0x138E6A0: phpdbg_do_run (phpdbg_prompt.c:942)
==18459==    by 0x13B8125: phpdbg_internal_stack_execute (phpdbg_cmd.c:703)
==18459==    by 0x13B82F6: phpdbg_stack_execute (phpdbg_cmd.c:733)
==18459==    by 0x1392AC7: phpdbg_interactive (phpdbg_prompt.c:1631)
==18459==    by 0x137E8AF: main (phpdbg.c:2001)
==18459== 
==18459== Conditional jump or move depends on uninitialised value(s)
==18459==    at 0x4C2CFF1: __memcmp_sse4_1 (vg_replace_strmem.c:1100)
==18459==    by 0x13BD9DC: phpdbg_check_watch_diff (phpdbg_watch.c:135)
==18459==    by 0x13C35CA: phpdbg_check_watchpoint (phpdbg_watch.c:1007)
==18459==    by 0x13C4168: phpdbg_print_changed_zvals (phpdbg_watch.c:1107)
==18459==    by 0x1394B0F: phpdbg_execute_ex (phpdbg_prompt.c:1864)
==18459==    by 0x1372DD5: zend_execute (zend_vm_execute.h:63776)
==18459==    by 0x138E6A0: phpdbg_do_run (phpdbg_prompt.c:942)
==18459==    by 0x13B8125: phpdbg_internal_stack_execute (phpdbg_cmd.c:703)
==18459==    by 0x13B82F6: phpdbg_stack_execute (phpdbg_cmd.c:733)
==18459==    by 0x1392AC7: phpdbg_interactive (phpdbg_prompt.c:1631)
==18459==    by 0x137E8AF: main (phpdbg.c:2001)
==18459== 
==18459== Conditional jump or move depends on uninitialised value(s)
==18459==    at 0x4C2D00F: __memcmp_sse4_1 (vg_replace_strmem.c:1100)
==18459==    by 0x13BD9DC: phpdbg_check_watch_diff (phpdbg_watch.c:135)
==18459==    by 0x13C35CA: phpdbg_check_watchpoint (phpdbg_watch.c:1007)
==18459==    by 0x13C4168: phpdbg_print_changed_zvals (phpdbg_watch.c:1107)
==18459==    by 0x1394B0F: phpdbg_execute_ex (phpdbg_prompt.c:1864)
==18459==    by 0x1372DD5: zend_execute (zend_vm_execute.h:63776)
==18459==    by 0x138E6A0: phpdbg_do_run (phpdbg_prompt.c:942)
==18459==    by 0x13B8125: phpdbg_internal_stack_execute (phpdbg_cmd.c:703)
==18459==    by 0x13B82F6: phpdbg_stack_execute (phpdbg_cmd.c:733)
==18459==    by 0x1392AC7: phpdbg_interactive (phpdbg_prompt.c:1631)
==18459==    by 0x137E8AF: main (phpdbg.c:2001)
==18459== 
==18459== Conditional jump or move depends on uninitialised value(s)
==18459==    at 0x13BD9DF: phpdbg_check_watch_diff (phpdbg_watch.c:135)
==18459==    by 0x13C35CA: phpdbg_check_watchpoint (phpdbg_watch.c:1007)
==18459==    by 0x13C4168: phpdbg_print_changed_zvals (phpdbg_watch.c:1107)
==18459==    by 0x1394B0F: phpdbg_execute_ex (phpdbg_prompt.c:1864)
==18459==    by 0x1372DD5: zend_execute (zend_vm_execute.h:63776)
==18459==    by 0x138E6A0: phpdbg_do_run (phpdbg_prompt.c:942)
==18459==    by 0x13B8125: phpdbg_internal_stack_execute (phpdbg_cmd.c:703)
==18459==    by 0x13B82F6: phpdbg_stack_execute (phpdbg_cmd.c:733)
==18459==    by 0x1392AC7: phpdbg_interactive (phpdbg_prompt.c:1631)
==18459==    by 0x137E8AF: main (phpdbg.c:2001)
==18459== 
--18459-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--18459-- si_code=2;  Faulting address: 0x15B2AEF8;  sp: 0x1003794d00

valgrind: the 'impossible' happened:
   Killed by fatal signal

host stacktrace:
==18459==    at 0x58046BE9: set_prev_b (m_mallocfree.c:415)
==18459==    by 0x58046BE9: unlinkBlock (m_mallocfree.c:1700)
==18459==    by 0x58049640: vgPlain_arena_malloc (m_mallocfree.c:1875)
==18459==    by 0x580050D4: vgMemCheck_new_block (mc_malloc_wrappers.c:372)
==18459==    by 0x580055BF: vgMemCheck_malloc (mc_malloc_wrappers.c:407)
==18459==    by 0x58092FA5: do_client_request (scheduler.c:1866)
==18459==    by 0x5809444A: vgPlain_scheduler (scheduler.c:1433)
==18459==    by 0x580CAB9F: thread_wrapper (syswrap-linux.c:103)
==18459==    by 0x580CAB9F: run_a_thread_NORETURN (syswrap-linux.c:156)

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable (lwpid 18459)
==18459==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==18459==    by 0x108BA70: __zend_malloc (zend_alloc.c:2829)
==18459==    by 0x108A1F0: _emalloc (zend_alloc.c:2429)
==18459==    by 0x1394D05: zend_string_alloc (zend_string.h:134)
==18459==    by 0x1394D05: zend_string_init (zend_string.h:170)
==18459==    by 0x1394D05: phpdbg_execute_ex (phpdbg_prompt.c:1865)
==18459==    by 0x1372DD5: zend_execute (zend_vm_execute.h:63776)
==18459==    by 0x138E6A0: phpdbg_do_run (phpdbg_prompt.c:942)
==18459==    by 0x13B8125: phpdbg_internal_stack_execute (phpdbg_cmd.c:703)
==18459==    by 0x13B82F6: phpdbg_stack_execute (phpdbg_cmd.c:733)
==18459==    by 0x1392AC7: phpdbg_interactive (phpdbg_prompt.c:1631)
==18459==    by 0x137E8AF: main (phpdbg.c:2001)


Note: see also the FAQ in the source distribution.
It contains workarounds to several common problems.
In particular, if Valgrind aborted or crashed after
identifying problems in your program, there's a good chance
that fixing those problems will prevent Valgrind aborting or
crashing, especially if it happened in m_mallocfree.c.

If that doesn't help, please report this bug to: www.valgrind.org

In the bug report, send all the above text, the valgrind
version, and what OS and version you are using.  Thanks.

 

Generated at Mon, 08 Oct 2018 02:05:35 +0000 (10 days ago)

Copyright © 2005-2018 The PHP Group
All rights reserved.