PHP  
 PHP_HEAD
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

==1427== Conditional jump or move depends on uninitialised value(s)
==1427==    at 0x4C2D026: __memcmp_sse4_1 (vg_replace_strmem.c:1100)
==1427==    by 0x13CE49F: phpdbg_check_watch_diff (phpdbg_watch.c:135)
==1427==    by 0x13D420A: phpdbg_check_watchpoint (phpdbg_watch.c:1008)
==1427==    by 0x13D4DDF: phpdbg_print_changed_zvals (phpdbg_watch.c:1108)
==1427==    by 0x13A548F: phpdbg_execute_ex (phpdbg_prompt.c:1864)
==1427==    by 0x13831E3: zend_execute (zend_vm_execute.h:59987)
==1427==    by 0x139EEBB: phpdbg_do_run (phpdbg_prompt.c:942)
==1427==    by 0x13C8B3E: phpdbg_internal_stack_execute (phpdbg_cmd.c:703)
==1427==    by 0x13C8D0F: phpdbg_stack_execute (phpdbg_cmd.c:733)
==1427==    by 0x13A331A: phpdbg_interactive (phpdbg_prompt.c:1631)
==1427==    by 0x138EF47: main (phpdbg.c:2003)
==1427== 
==1427== Conditional jump or move depends on uninitialised value(s)
==1427==    at 0x4C2D026: __memcmp_sse4_1 (vg_replace_strmem.c:1100)
==1427==    by 0x13CE4D7: phpdbg_check_watch_diff (phpdbg_watch.c:139)
==1427==    by 0x13D420A: phpdbg_check_watchpoint (phpdbg_watch.c:1008)
==1427==    by 0x13D4DDF: phpdbg_print_changed_zvals (phpdbg_watch.c:1108)
==1427==    by 0x13A548F: phpdbg_execute_ex (phpdbg_prompt.c:1864)
==1427==    by 0x13831E3: zend_execute (zend_vm_execute.h:59987)
==1427==    by 0x139EEBB: phpdbg_do_run (phpdbg_prompt.c:942)
==1427==    by 0x13C8B3E: phpdbg_internal_stack_execute (phpdbg_cmd.c:703)
==1427==    by 0x13C8D0F: phpdbg_stack_execute (phpdbg_cmd.c:733)
==1427==    by 0x13A331A: phpdbg_interactive (phpdbg_prompt.c:1631)
==1427==    by 0x138EF47: main (phpdbg.c:2003)
==1427== 
==1427== Conditional jump or move depends on uninitialised value(s)
==1427==    at 0x13D42E1: phpdbg_check_watchpoint (phpdbg_watch.c:1016)
==1427==    by 0x13D4DDF: phpdbg_print_changed_zvals (phpdbg_watch.c:1108)
==1427==    by 0x13A548F: phpdbg_execute_ex (phpdbg_prompt.c:1864)
==1427==    by 0x13831E3: zend_execute (zend_vm_execute.h:59987)
==1427==    by 0x139EEBB: phpdbg_do_run (phpdbg_prompt.c:942)
==1427==    by 0x13C8B3E: phpdbg_internal_stack_execute (phpdbg_cmd.c:703)
==1427==    by 0x13C8D0F: phpdbg_stack_execute (phpdbg_cmd.c:733)
==1427==    by 0x13A331A: phpdbg_interactive (phpdbg_prompt.c:1631)
==1427==    by 0x138EF47: main (phpdbg.c:2003)
==1427== 
==1427== Conditional jump or move depends on uninitialised value(s)
==1427==    at 0x13D4303: phpdbg_check_watchpoint (phpdbg_watch.c:1016)
==1427==    by 0x13D4DDF: phpdbg_print_changed_zvals (phpdbg_watch.c:1108)
==1427==    by 0x13A548F: phpdbg_execute_ex (phpdbg_prompt.c:1864)
==1427==    by 0x13831E3: zend_execute (zend_vm_execute.h:59987)
==1427==    by 0x139EEBB: phpdbg_do_run (phpdbg_prompt.c:942)
==1427==    by 0x13C8B3E: phpdbg_internal_stack_execute (phpdbg_cmd.c:703)
==1427==    by 0x13C8D0F: phpdbg_stack_execute (phpdbg_cmd.c:733)
==1427==    by 0x13A331A: phpdbg_interactive (phpdbg_prompt.c:1631)
==1427==    by 0x138EF47: main (phpdbg.c:2003)
==1427== 
==1427== Conditional jump or move depends on uninitialised value(s)
==1427==    at 0x4C2CFF1: __memcmp_sse4_1 (vg_replace_strmem.c:1100)
==1427==    by 0x13CE4D7: phpdbg_check_watch_diff (phpdbg_watch.c:139)
==1427==    by 0x13D420A: phpdbg_check_watchpoint (phpdbg_watch.c:1008)
==1427==    by 0x13D4DDF: phpdbg_print_changed_zvals (phpdbg_watch.c:1108)
==1427==    by 0x13A548F: phpdbg_execute_ex (phpdbg_prompt.c:1864)
==1427==    by 0x13831E3: zend_execute (zend_vm_execute.h:59987)
==1427==    by 0x139EEBB: phpdbg_do_run (phpdbg_prompt.c:942)
==1427==    by 0x13C8B3E: phpdbg_internal_stack_execute (phpdbg_cmd.c:703)
==1427==    by 0x13C8D0F: phpdbg_stack_execute (phpdbg_cmd.c:733)
==1427==    by 0x13A331A: phpdbg_interactive (phpdbg_prompt.c:1631)
==1427==    by 0x138EF47: main (phpdbg.c:2003)
==1427== 
==1427== Conditional jump or move depends on uninitialised value(s)
==1427==    at 0x13D420D: phpdbg_check_watchpoint (phpdbg_watch.c:1008)
==1427==    by 0x13D4DDF: phpdbg_print_changed_zvals (phpdbg_watch.c:1108)
==1427==    by 0x13A548F: phpdbg_execute_ex (phpdbg_prompt.c:1864)
==1427==    by 0x13831E3: zend_execute (zend_vm_execute.h:59987)
==1427==    by 0x139EEBB: phpdbg_do_run (phpdbg_prompt.c:942)
==1427==    by 0x13C8B3E: phpdbg_internal_stack_execute (phpdbg_cmd.c:703)
==1427==    by 0x13C8D0F: phpdbg_stack_execute (phpdbg_cmd.c:733)
==1427==    by 0x13A331A: phpdbg_interactive (phpdbg_prompt.c:1631)
==1427==    by 0x138EF47: main (phpdbg.c:2003)
==1427== 
==1427== Conditional jump or move depends on uninitialised value(s)
==1427==    at 0x4C2CFF1: __memcmp_sse4_1 (vg_replace_strmem.c:1100)
==1427==    by 0x13CE49F: phpdbg_check_watch_diff (phpdbg_watch.c:135)
==1427==    by 0x13D420A: phpdbg_check_watchpoint (phpdbg_watch.c:1008)
==1427==    by 0x13D4DDF: phpdbg_print_changed_zvals (phpdbg_watch.c:1108)
==1427==    by 0x13A548F: phpdbg_execute_ex (phpdbg_prompt.c:1864)
==1427==    by 0x13831E3: zend_execute (zend_vm_execute.h:59987)
==1427==    by 0x139EEBB: phpdbg_do_run (phpdbg_prompt.c:942)
==1427==    by 0x13C8B3E: phpdbg_internal_stack_execute (phpdbg_cmd.c:703)
==1427==    by 0x13C8D0F: phpdbg_stack_execute (phpdbg_cmd.c:733)
==1427==    by 0x13A331A: phpdbg_interactive (phpdbg_prompt.c:1631)
==1427==    by 0x138EF47: main (phpdbg.c:2003)
==1427== 
==1427== Conditional jump or move depends on uninitialised value(s)
==1427==    at 0x13CE4A2: phpdbg_check_watch_diff (phpdbg_watch.c:135)
==1427==    by 0x13D420A: phpdbg_check_watchpoint (phpdbg_watch.c:1008)
==1427==    by 0x13D4DDF: phpdbg_print_changed_zvals (phpdbg_watch.c:1108)
==1427==    by 0x13A548F: phpdbg_execute_ex (phpdbg_prompt.c:1864)
==1427==    by 0x13831E3: zend_execute (zend_vm_execute.h:59987)
==1427==    by 0x139EEBB: phpdbg_do_run (phpdbg_prompt.c:942)
==1427==    by 0x13C8B3E: phpdbg_internal_stack_execute (phpdbg_cmd.c:703)
==1427==    by 0x13C8D0F: phpdbg_stack_execute (phpdbg_cmd.c:733)
==1427==    by 0x13A331A: phpdbg_interactive (phpdbg_prompt.c:1631)
==1427==    by 0x138EF47: main (phpdbg.c:2003)
==1427== 
--1427-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--1427-- si_code=2;  Faulting address: 0x14ECFF18;  sp: 0x1003a1dd00

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

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

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable (lwpid 1427)
==1427==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==1427==    by 0x10CD97D: __zend_malloc (zend_alloc.c:2886)
==1427==    by 0x10C9A44: _emalloc (zend_alloc.c:2480)
==1427==    by 0x13A5693: zend_string_alloc (zend_string.h:137)
==1427==    by 0x13A5693: zend_string_init (zend_string.h:159)
==1427==    by 0x13A5693: phpdbg_execute_ex (phpdbg_prompt.c:1865)
==1427==    by 0x13831E3: zend_execute (zend_vm_execute.h:59987)
==1427==    by 0x139EEBB: phpdbg_do_run (phpdbg_prompt.c:942)
==1427==    by 0x13C8B3E: phpdbg_internal_stack_execute (phpdbg_cmd.c:703)
==1427==    by 0x13C8D0F: phpdbg_stack_execute (phpdbg_cmd.c:733)
==1427==    by 0x13A331A: phpdbg_interactive (phpdbg_prompt.c:1631)
==1427==    by 0x138EF47: main (phpdbg.c:2003)


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 Thu, 19 Apr 2018 02:25:01 +0000 (30 hours ago)

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