Valgrind Report for ext/posix/tests/posix_errno_variation2.phpt ('Test function posix_errno() by calling it with its expected arguments')
Script
1:
<?php 2: 3: echo "*** Test by calling function with pid error ***\n"; 4: 5: $pid = 10000; 6: 7: do { 8: $pid += 1; 9: $result = shell_exec("ps -p " . $pid); 10: } while (strstr($pid, $result)); 11: 12: posix_kill($pid, SIGKILL); 13: var_dump(posix_errno()); 14: 15: ?> 16:
Report
==3345== Conditional jump or move depends on uninitialised value(s)
==3345== at 0x4C2B187: __GI___rawmemchr (mc_replace_strmem.c:1154)
==3345== by 0x52E698F: _IO_str_init_static_internal (in /lib64/libc-2.12.so)
==3345== by 0x52DA934: vsscanf (in /lib64/libc-2.12.so)
==3345== by 0x52D49A7: sscanf (in /lib64/libc-2.12.so)
==3345== by 0x403096: ??? (in /bin/ps)
==3345== by 0x4022A5: ??? (in /bin/ps)
==3345== by 0x528FCDC: (below main) (in /lib64/libc-2.12.so)
==3345==
Generated at Fri, 17 May 2013 23:23:52 +0000 (42 hours ago)
|