Closed juber-nunes closed 3 years ago
You need to set debug_mode as remote, not cmd
Hi @sy-records
That's what've done
Can you use the following command to connect?
nc host.docker.internal 9003 -vv
And don't forget the -e
option, for example:
php -e bin/index.php
Port seems to be refusing connections, weird as I have it opened on firewall
By the way, yasd
currently does not support remote_host
using domain name. Maybe you should use IP instead.
Port seems to be refusing connections, weird as I have it opened on firewall
Has your IDE started listening? You can check the port.
@huanghantao by having the ip set resolves the connection issue by running rc, I cann see connection opened and if I close it on IDE I get appropriate response, but still not debugging it
on VSCode I have this
I'm using "laravels" to serve the application
Can you show me the contents of the terminal? There is no problem with your VS Code configuration.
Sure. Just to let you know, it seems to connect as you can see "running" on editor call stack but it doesn't seem to hold it.
Have you set a breakpoint? Perhaps you can set a breakpoint in the entry file to test.
If the project paths of your virtual machine and your host do not match, you need to set path mapping, just like:
// virtual machine -> local
"pathMappings": {
"/var/www": "${workspaceRoot}/www",
}
I did indeed, also included "everything" just in case but I got nothing. I've done the same with sdebug and the only reason I got a little further was because of a flag "xdebug.remote_autostart=on"
I did indeed, also included "everything" just in case but I got nothing. I've done the same with sdebug and the only reason I got a little further was because of a flag "xdebug.remote_autostart=on"
yasd does not need to configure any Xdebug configuration items, just remote_host and remote_port
Can you configure the following configuration? After debugging, the debug.log
file will be generated in the current directory, you can provide me with a look:
yasd.log_level=0
which is great. :) . One step forward with pathmappings
debug.log
breakpoint_list -i 1 179<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_list -i 2 179<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_list -i 3 179<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_list -i 4 179<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_list -i 5 179<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_set -i 6 -t line -f file:///engage-web/bootstrap/autoload.php -n 3 192<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_set -i 7 -t line -f file:///engage-web/app/Http/Controllers/Auth/ForgotPasswordController.php -n 45 192<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_set -i 8 -t line -f file:///engage-web/public/index.php -n 52 192<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_set -i 9 -t line -f file:///engage-web/app/Notifications/ResetPassword.php -n 42 192<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_list -i 10 180<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_list -i 11 180<?xml version="1.0" encoding="iso-8859-1"?>
run -i 12 286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
1 286<?xml version="1.0" encoding="iso-8859-1"?>
Removed the breakpoint from autoload and the error stopped. Went to the browser to capture other entrypoints but no luck
498<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_list -i 1 179<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_list -i 2 179<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_list -i 3 179<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_list -i 4 179<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_list -i 5 179<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_set -i 6 -t line -f file:///engage-web/bootstrap/autoload.php -n 3 192<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_set -i 7 -t line -f file:///engage-web/app/Http/Controllers/Auth/ForgotPasswordController.php -n 45 192<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_set -i 8 -t line -f file:///engage-web/public/index.php -n 52 192<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_set -i 9 -t line -f file:///engage-web/app/Notifications/ResetPassword.php -n 42 192<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_list -i 10 180<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_list -i 11 180<?xml version="1.0" encoding="iso-8859-1"?>
run -i 12 286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
286<?xml version="1.0" encoding="iso-8859-1"?>
1 286<?xml version="1.0" encoding="iso-8859-1"?>
498<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_list -i 1 179<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_list -i 2 179<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_list -i 3 179<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_list -i 4 179<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_list -i 5 179<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_set -i 6 -t line -f file:///engage-web/app/Http/Controllers/Auth/ForgotPasswordController.php -n 45 192<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_set -i 7 -t line -f file:///engage-web/public/index.php -n 52 192<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_set -i 8 -t line -f file:///engage-web/app/Notifications/ResetPassword.php -n 42 192<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_list -i 9 179<?xml version="1.0" encoding="iso-8859-1"?>
breakpoint_list -i 10 180<?xml version="1.0" encoding="iso-8859-1"?>
run -i 11
Can you provide valgrind log? for example:
USE_ZEND_ALLOC=0 valgrind --log-file=valgrind.log --trace-children=yes php -e xxx.php
then show me the valgrind.log
.
I'd need to install valgring as it's not at the moment. give me few moments please
==9546== by 0x25F164: ??? (in /usr/local/bin/php)
==9546==
==9546== Conditional jump or move depends on uninitialised value(s)
==9546== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9546== by 0x55992A: ??? (in /usr/local/bin/php)
==9546== by 0x536CB5: zend_register_class_alias_ex (in /usr/local/bin/php)
==9546== by 0x597B181: sw_zend_register_class_alias (php_swoole.h:742)
==9546== by 0x597B181: php_swoole_server_minit (swoole_server.cc:713)
==9546== by 0x5911F47: zm_startup_swoole (php_swoole.cc:770)
==9546== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9546== by 0x534DCB: ??? (in /usr/local/bin/php)
==9546== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9546== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9546== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9546== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9546== by 0x25F164: ??? (in /usr/local/bin/php)
==9546==
==9546== Conditional jump or move depends on uninitialised value(s)
==9546== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9546== by 0x55992A: ??? (in /usr/local/bin/php)
==9546== by 0x536CB5: zend_register_class_alias_ex (in /usr/local/bin/php)
==9546== by 0x5985D88: sw_zend_register_class_alias (php_swoole.h:742)
==9546== by 0x5985D88: php_swoole_server_port_minit (swoole_server_port.cc:166)
==9546== by 0x5911F4E: zm_startup_swoole (php_swoole.cc:771)
==9546== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9546== by 0x534DCB: ??? (in /usr/local/bin/php)
==9546== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9546== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9546== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9546== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9546== by 0x25F164: ??? (in /usr/local/bin/php)
==9546==
==9546== Conditional jump or move depends on uninitialised value(s)
==9546== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9546== by 0x55992A: ??? (in /usr/local/bin/php)
==9546== by 0x536CB5: zend_register_class_alias_ex (in /usr/local/bin/php)
==9546== by 0x5938CAC: sw_zend_register_class_alias (php_swoole.h:742)
==9546== by 0x5938CAC: php_swoole_http_request_minit (swoole_http_request.cc:290)
==9546== by 0x5911F55: zm_startup_swoole (php_swoole.cc:772)
==9546== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9546== by 0x534DCB: ??? (in /usr/local/bin/php)
==9546== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9546== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9546== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9546== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9546== by 0x25F164: ??? (in /usr/local/bin/php)
==9546==
==9546== Conditional jump or move depends on uninitialised value(s)
==9546== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9546== by 0x55992A: ??? (in /usr/local/bin/php)
==9546== by 0x536CB5: zend_register_class_alias_ex (in /usr/local/bin/php)
==9546== by 0x593CDE6: sw_zend_register_class_alias (php_swoole.h:742)
==9546== by 0x593CDE6: php_swoole_http_response_minit (swoole_http_response.cc:289)
==9546== by 0x5911F5C: zm_startup_swoole (php_swoole.cc:773)
==9546== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9546== by 0x534DCB: ??? (in /usr/local/bin/php)
==9546== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9546== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9546== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9546== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9546== by 0x25F164: ??? (in /usr/local/bin/php)
==9546==
==9546== Conditional jump or move depends on uninitialised value(s)
==9546== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9546== by 0x55992A: ??? (in /usr/local/bin/php)
==9546== by 0x536CB5: zend_register_class_alias_ex (in /usr/local/bin/php)
==9546== by 0x593E5BD: sw_zend_register_class_alias (php_swoole.h:742)
==9546== by 0x593E5BD: php_swoole_http_server_minit (swoole_http_server.cc:159)
==9546== by 0x5911F63: zm_startup_swoole (php_swoole.cc:774)
==9546== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9546== by 0x534DCB: ??? (in /usr/local/bin/php)
==9546== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9546== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9546== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9546== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9546== by 0x25F164: ??? (in /usr/local/bin/php)
==9546==
==9546== Conditional jump or move depends on uninitialised value(s)
==9546== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9546== by 0x55992A: ??? (in /usr/local/bin/php)
==9546== by 0x536CB5: zend_register_class_alias_ex (in /usr/local/bin/php)
==9546== by 0x5940537: sw_zend_register_class_alias (php_swoole.h:742)
==9546== by 0x5940537: php_swoole_http_server_coro_minit (swoole_http_server_coro.cc:277)
==9546== by 0x5911F6A: zm_startup_swoole (php_swoole.cc:775)
==9546== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9546== by 0x534DCB: ??? (in /usr/local/bin/php)
==9546== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9546== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9546== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9546== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9546== by 0x25F164: ??? (in /usr/local/bin/php)
==9546==
==9546== Conditional jump or move depends on uninitialised value(s)
==9546== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9546== by 0x55992A: ??? (in /usr/local/bin/php)
==9546== by 0x536CB5: zend_register_class_alias_ex (in /usr/local/bin/php)
==9546== by 0x59953F9: sw_zend_register_class_alias (php_swoole.h:742)
==9546== by 0x59953F9: php_swoole_websocket_server_minit (swoole_websocket_server.cc:643)
==9546== by 0x5911F71: zm_startup_swoole (php_swoole.cc:776)
==9546== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9546== by 0x534DCB: ??? (in /usr/local/bin/php)
==9546== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9546== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9546== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9546== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9546== by 0x25F164: ??? (in /usr/local/bin/php)
==9546==
==9546== Conditional jump or move depends on uninitialised value(s)
==9546== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9546== by 0x55992A: ??? (in /usr/local/bin/php)
==9546== by 0x536CB5: zend_register_class_alias_ex (in /usr/local/bin/php)
==9546== by 0x599567F: sw_zend_register_class_alias (php_swoole.h:742)
==9546== by 0x599567F: php_swoole_websocket_server_minit (swoole_websocket_server.cc:654)
==9546== by 0x5911F71: zm_startup_swoole (php_swoole.cc:776)
==9546== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9546== by 0x534DCB: ??? (in /usr/local/bin/php)
==9546== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9546== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9546== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9546== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9546== by 0x25F164: ??? (in /usr/local/bin/php)
==9546==
==9546== Conditional jump or move depends on uninitialised value(s)
==9546== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9546== by 0x55992A: ??? (in /usr/local/bin/php)
==9546== by 0x536CB5: zend_register_class_alias_ex (in /usr/local/bin/php)
==9546== by 0x596EF00: sw_zend_register_class_alias (php_swoole.h:742)
==9546== by 0x596EF00: php_swoole_redis_server_minit (swoole_redis_server.cc:69)
==9546== by 0x5911F78: zm_startup_swoole (php_swoole.cc:777)
==9546== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9546== by 0x534DCB: ??? (in /usr/local/bin/php)
==9546== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9546== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9546== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9546== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9546== by 0x25F164: ??? (in /usr/local/bin/php)
==9546==
==9546== Conditional jump or move depends on uninitialised value(s)
==9546== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9546== by 0x55992A: ??? (in /usr/local/bin/php)
==9546== by 0x59170B4: zend::known_strings_init() (php_swoole_cxx.cc:90)
==9546== by 0x5911FA3: zm_startup_swoole (php_swoole.cc:789)
==9546== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9546== by 0x534DCB: ??? (in /usr/local/bin/php)
==9546== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9546== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9546== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9546== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9546== by 0x25F164: ??? (in /usr/local/bin/php)
==9546== by 0x401C1EE: ??? (in /lib/ld-musl-x86_64.so.1)
==9546==
==9546== Conditional jump or move depends on uninitialised value(s)
==9546== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9546== by 0x542FDF: zend_hash_find (in /usr/local/bin/php)
==9546== by 0x54A691: zend_register_ini_entries (in /usr/local/bin/php)
==9546== by 0x53CF4CE: zm_startup_yasd(int, int) (yasd.cc:114)
==9546== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9546== by 0x536AD5: zend_startup_module (in /usr/local/bin/php)
==9546== by 0x53C1F7: ??? (in /usr/local/bin/php)
==9546== by 0x52572F: zend_llist_apply_with_del (in /usr/local/bin/php)
==9546== by 0x53C336: ??? (in /usr/local/bin/php)
==9546== by 0x4D437A: php_module_startup (in /usr/local/bin/php)
==9546== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9546== by 0x25F164: ??? (in /usr/local/bin/php)
==9546==
==9546== Conditional jump or move depends on uninitialised value(s)
==9546== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9546== by 0x55992A: ??? (in /usr/local/bin/php)
==9546== by 0x54A6E5: zend_register_ini_entries (in /usr/local/bin/php)
==9546== by 0x53CF4CE: zm_startup_yasd(int, int) (yasd.cc:114)
==9546== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9546== by 0x536AD5: zend_startup_module (in /usr/local/bin/php)
==9546== by 0x53C1F7: ??? (in /usr/local/bin/php)
==9546== by 0x52572F: zend_llist_apply_with_del (in /usr/local/bin/php)
==9546== by 0x53C336: ??? (in /usr/local/bin/php)
==9546== by 0x4D437A: php_module_startup (in /usr/local/bin/php)
==9546== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9546== by 0x25F164: ??? (in /usr/local/bin/php)
==9546==
==9546== Conditional jump or move depends on uninitialised value(s)
==9546== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9546== by 0x542FDF: zend_hash_find (in /usr/local/bin/php)
==9546== by 0x51B481: ??? (in /usr/local/bin/php)
==9546== by 0x5175DF: ??? (in /usr/local/bin/php)
==9546== by 0x51DFC6: ??? (in /usr/local/bin/php)
==9546== by 0x520B0D: ??? (in /usr/local/bin/php)
==9546== by 0x520B67: ??? (in /usr/local/bin/php)
==9546== by 0x4FA55B: ??? (in /usr/local/bin/php)
==9546== by 0x4FC2F7: compile_string (in /usr/local/bin/php)
==9546== by 0x5916D59: swoole_compile_string(_zval_struct, char) (php_swoole_cxx.cc:27)
==9546== by 0x524117: zend_eval_stringl (in /usr/local/bin/php)
==9546== by 0x5916FAF: zend::eval(std::cxx11::basic_string<char, std::char_traits
which is great. :) . One step forward with pathmappings
I don't find any errors in valgrind.log. I need you to trigger this error.
I've triggered that error once more and captured valgrind.log
==9714== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9714== by 0x534DCB: ??? (in /usr/local/bin/php)
==9714== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9714== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9714== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9714== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9714== by 0x25F164: ??? (in /usr/local/bin/php)
==9714== by 0x401C1EE: ??? (in /lib/ld-musl-x86_64.so.1)
==9714==
==9714== Conditional jump or move depends on uninitialised value(s)
==9714== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9714== by 0x542FDF: zend_hash_find (in /usr/local/bin/php)
==9714== by 0x597A0E4: zend_hash_find_ptr (zend_hash.h:792)
==9714== by 0x597A0E4: sw_zend_register_function_alias (php_swoole.h:710)
==9714== by 0x597A0E4: php_swoole_server_minit (swoole_server.cc:659)
==9714== by 0x5911F47: zm_startup_swoole (php_swoole.cc:770)
==9714== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9714== by 0x534DCB: ??? (in /usr/local/bin/php)
==9714== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9714== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9714== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9714== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9714== by 0x25F164: ??? (in /usr/local/bin/php)
==9714== by 0x401C1EE: ??? (in /lib/ld-musl-x86_64.so.1)
==9714==
==9714== Conditional jump or move depends on uninitialised value(s)
==9714== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9714== by 0x542FDF: zend_hash_find (in /usr/local/bin/php)
==9714== by 0x597A240: zend_hash_find_ptr (zend_hash.h:792)
==9714== by 0x597A240: sw_zend_register_function_alias (php_swoole.h:710)
==9714== by 0x597A240: php_swoole_server_minit (swoole_server.cc:660)
==9714== by 0x5911F47: zm_startup_swoole (php_swoole.cc:770)
==9714== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9714== by 0x534DCB: ??? (in /usr/local/bin/php)
==9714== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9714== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9714== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9714== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9714== by 0x25F164: ??? (in /usr/local/bin/php)
==9714== by 0x401C1EE: ??? (in /lib/ld-musl-x86_64.so.1)
==9714==
==9714== Conditional jump or move depends on uninitialised value(s)
==9714== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9714== by 0x542FDF: zend_hash_find (in /usr/local/bin/php)
==9714== by 0x597A3AD: zend_hash_find_ptr (zend_hash.h:792)
==9714== by 0x597A3AD: sw_zend_register_function_alias (php_swoole.h:710)
==9714== by 0x597A3AD: php_swoole_server_minit (swoole_server.cc:662)
==9714== by 0x5911F47: zm_startup_swoole (php_swoole.cc:770)
==9714== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9714== by 0x534DCB: ??? (in /usr/local/bin/php)
==9714== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9714== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9714== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9714== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9714== by 0x25F164: ??? (in /usr/local/bin/php)
==9714== by 0x401C1EE: ??? (in /lib/ld-musl-x86_64.so.1)
==9714==
==9714== Conditional jump or move depends on uninitialised value(s)
==9714== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9714== by 0x55992A: ??? (in /usr/local/bin/php)
==9714== by 0x536CB5: zend_register_class_alias_ex (in /usr/local/bin/php)
==9714== by 0x597A5AD: sw_zend_register_class_alias (php_swoole.h:742)
==9714== by 0x597A5AD: php_swoole_server_minit (swoole_server.cc:665)
==9714== by 0x5911F47: zm_startup_swoole (php_swoole.cc:770)
==9714== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9714== by 0x534DCB: ??? (in /usr/local/bin/php)
==9714== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9714== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9714== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9714== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9714== by 0x25F164: ??? (in /usr/local/bin/php)
==9714==
==9714== Conditional jump or move depends on uninitialised value(s)
==9714== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9714== by 0x55992A: ??? (in /usr/local/bin/php)
==9714== by 0x536CB5: zend_register_class_alias_ex (in /usr/local/bin/php)
==9714== by 0x597B181: sw_zend_register_class_alias (php_swoole.h:742)
==9714== by 0x597B181: php_swoole_server_minit (swoole_server.cc:713)
==9714== by 0x5911F47: zm_startup_swoole (php_swoole.cc:770)
==9714== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9714== by 0x534DCB: ??? (in /usr/local/bin/php)
==9714== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9714== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9714== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9714== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9714== by 0x25F164: ??? (in /usr/local/bin/php)
==9714==
==9714== Conditional jump or move depends on uninitialised value(s)
==9714== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9714== by 0x55992A: ??? (in /usr/local/bin/php)
==9714== by 0x536CB5: zend_register_class_alias_ex (in /usr/local/bin/php)
==9714== by 0x5985D88: sw_zend_register_class_alias (php_swoole.h:742)
==9714== by 0x5985D88: php_swoole_server_port_minit (swoole_server_port.cc:166)
==9714== by 0x5911F4E: zm_startup_swoole (php_swoole.cc:771)
==9714== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9714== by 0x534DCB: ??? (in /usr/local/bin/php)
==9714== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9714== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9714== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9714== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9714== by 0x25F164: ??? (in /usr/local/bin/php)
==9714==
==9714== Conditional jump or move depends on uninitialised value(s)
==9714== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9714== by 0x55992A: ??? (in /usr/local/bin/php)
==9714== by 0x536CB5: zend_register_class_alias_ex (in /usr/local/bin/php)
==9714== by 0x5938CAC: sw_zend_register_class_alias (php_swoole.h:742)
==9714== by 0x5938CAC: php_swoole_http_request_minit (swoole_http_request.cc:290)
==9714== by 0x5911F55: zm_startup_swoole (php_swoole.cc:772)
==9714== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9714== by 0x534DCB: ??? (in /usr/local/bin/php)
==9714== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9714== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9714== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9714== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9714== by 0x25F164: ??? (in /usr/local/bin/php)
==9714==
==9714== Conditional jump or move depends on uninitialised value(s)
==9714== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9714== by 0x55992A: ??? (in /usr/local/bin/php)
==9714== by 0x536CB5: zend_register_class_alias_ex (in /usr/local/bin/php)
==9714== by 0x593CDE6: sw_zend_register_class_alias (php_swoole.h:742)
==9714== by 0x593CDE6: php_swoole_http_response_minit (swoole_http_response.cc:289)
==9714== by 0x5911F5C: zm_startup_swoole (php_swoole.cc:773)
==9714== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9714== by 0x534DCB: ??? (in /usr/local/bin/php)
==9714== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9714== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9714== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9714== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9714== by 0x25F164: ??? (in /usr/local/bin/php)
==9714==
==9714== Conditional jump or move depends on uninitialised value(s)
==9714== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9714== by 0x55992A: ??? (in /usr/local/bin/php)
==9714== by 0x536CB5: zend_register_class_alias_ex (in /usr/local/bin/php)
==9714== by 0x593E5BD: sw_zend_register_class_alias (php_swoole.h:742)
==9714== by 0x593E5BD: php_swoole_http_server_minit (swoole_http_server.cc:159)
==9714== by 0x5911F63: zm_startup_swoole (php_swoole.cc:774)
==9714== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9714== by 0x534DCB: ??? (in /usr/local/bin/php)
==9714== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9714== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9714== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9714== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9714== by 0x25F164: ??? (in /usr/local/bin/php)
==9714==
==9714== Conditional jump or move depends on uninitialised value(s)
==9714== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9714== by 0x55992A: ??? (in /usr/local/bin/php)
==9714== by 0x536CB5: zend_register_class_alias_ex (in /usr/local/bin/php)
==9714== by 0x5940537: sw_zend_register_class_alias (php_swoole.h:742)
==9714== by 0x5940537: php_swoole_http_server_coro_minit (swoole_http_server_coro.cc:277)
==9714== by 0x5911F6A: zm_startup_swoole (php_swoole.cc:775)
==9714== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9714== by 0x534DCB: ??? (in /usr/local/bin/php)
==9714== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9714== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9714== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9714== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9714== by 0x25F164: ??? (in /usr/local/bin/php)
==9714==
==9714== Conditional jump or move depends on uninitialised value(s)
==9714== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9714== by 0x55992A: ??? (in /usr/local/bin/php)
==9714== by 0x536CB5: zend_register_class_alias_ex (in /usr/local/bin/php)
==9714== by 0x59953F9: sw_zend_register_class_alias (php_swoole.h:742)
==9714== by 0x59953F9: php_swoole_websocket_server_minit (swoole_websocket_server.cc:643)
==9714== by 0x5911F71: zm_startup_swoole (php_swoole.cc:776)
==9714== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9714== by 0x534DCB: ??? (in /usr/local/bin/php)
==9714== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9714== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9714== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9714== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9714== by 0x25F164: ??? (in /usr/local/bin/php)
==9714==
==9714== Conditional jump or move depends on uninitialised value(s)
==9714== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9714== by 0x55992A: ??? (in /usr/local/bin/php)
==9714== by 0x536CB5: zend_register_class_alias_ex (in /usr/local/bin/php)
==9714== by 0x599567F: sw_zend_register_class_alias (php_swoole.h:742)
==9714== by 0x599567F: php_swoole_websocket_server_minit (swoole_websocket_server.cc:654)
==9714== by 0x5911F71: zm_startup_swoole (php_swoole.cc:776)
==9714== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9714== by 0x534DCB: ??? (in /usr/local/bin/php)
==9714== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9714== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9714== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9714== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9714== by 0x25F164: ??? (in /usr/local/bin/php)
==9714==
==9714== Conditional jump or move depends on uninitialised value(s)
==9714== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9714== by 0x55992A: ??? (in /usr/local/bin/php)
==9714== by 0x536CB5: zend_register_class_alias_ex (in /usr/local/bin/php)
==9714== by 0x596EF00: sw_zend_register_class_alias (php_swoole.h:742)
==9714== by 0x596EF00: php_swoole_redis_server_minit (swoole_redis_server.cc:69)
==9714== by 0x5911F78: zm_startup_swoole (php_swoole.cc:777)
==9714== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9714== by 0x534DCB: ??? (in /usr/local/bin/php)
==9714== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9714== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9714== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9714== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9714== by 0x25F164: ??? (in /usr/local/bin/php)
==9714==
==9714== Conditional jump or move depends on uninitialised value(s)
==9714== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9714== by 0x55992A: ??? (in /usr/local/bin/php)
==9714== by 0x59170B4: zend::known_strings_init() (php_swoole_cxx.cc:90)
==9714== by 0x5911FA3: zm_startup_swoole (php_swoole.cc:789)
==9714== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9714== by 0x534DCB: ??? (in /usr/local/bin/php)
==9714== by 0x5412F1: zend_hash_apply (in /usr/local/bin/php)
==9714== by 0x5350A9: zend_startup_modules (in /usr/local/bin/php)
==9714== by 0x4D4375: php_module_startup (in /usr/local/bin/php)
==9714== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9714== by 0x25F164: ??? (in /usr/local/bin/php)
==9714== by 0x401C1EE: ??? (in /lib/ld-musl-x86_64.so.1)
==9714==
==9714== Conditional jump or move depends on uninitialised value(s)
==9714== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9714== by 0x542FDF: zend_hash_find (in /usr/local/bin/php)
==9714== by 0x54A691: zend_register_ini_entries (in /usr/local/bin/php)
==9714== by 0x53CF4CE: zm_startup_yasd(int, int) (yasd.cc:114)
==9714== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9714== by 0x536AD5: zend_startup_module (in /usr/local/bin/php)
==9714== by 0x53C1F7: ??? (in /usr/local/bin/php)
==9714== by 0x52572F: zend_llist_apply_with_del (in /usr/local/bin/php)
==9714== by 0x53C336: ??? (in /usr/local/bin/php)
==9714== by 0x4D437A: php_module_startup (in /usr/local/bin/php)
==9714== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9714== by 0x25F164: ??? (in /usr/local/bin/php)
==9714==
==9714== Conditional jump or move depends on uninitialised value(s)
==9714== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9714== by 0x55992A: ??? (in /usr/local/bin/php)
==9714== by 0x54A6E5: zend_register_ini_entries (in /usr/local/bin/php)
==9714== by 0x53CF4CE: zm_startup_yasd(int, int) (yasd.cc:114)
==9714== by 0x534D36: zend_startup_module_ex (in /usr/local/bin/php)
==9714== by 0x536AD5: zend_startup_module (in /usr/local/bin/php)
==9714== by 0x53C1F7: ??? (in /usr/local/bin/php)
==9714== by 0x52572F: zend_llist_apply_with_del (in /usr/local/bin/php)
==9714== by 0x53C336: ??? (in /usr/local/bin/php)
==9714== by 0x4D437A: php_module_startup (in /usr/local/bin/php)
==9714== by 0x5B8A8C: ??? (in /usr/local/bin/php)
==9714== by 0x25F164: ??? (in /usr/local/bin/php)
==9714==
==9714== Conditional jump or move depends on uninitialised value(s)
==9714== at 0x559612: zend_string_equal_val (in /usr/local/bin/php)
==9714== by 0x542FDF: zend_hash_find (in /usr/local/bin/php)
==9714== by 0x51B481: ??? (in /usr/local/bin/php)
==9714== by 0x5175DF: ??? (in /usr/local/bin/php)
==9714== by 0x51DFC6: ??? (in /usr/local/bin/php)
==9714== by 0x520B0D: ??? (in /usr/local/bin/php)
==9714== by 0x520B67: ??? (in /usr/local/bin/php)
==9714== by 0x4FA55B: ??? (in /usr/local/bin/php)
==9714== by 0x4FC2F7: compile_string (in /usr/local/bin/php)
==9714== by 0x5916D59: swoole_compile_string(_zval_struct, char) (php_swoole_cxx.cc:27)
==9714== by 0x524117: zend_eval_stringl (in /usr/local/bin/php)
==9714== by 0x5916FAF: zend::eval(std::cxx11::basic_string<char, std::char_traits
Sorry, I didn't find any useful log.
You can delete yasd.debug_log
. It is possible that this was configured to cause the problem.
done
any other suggestions, anything at this stage :)
Maybe you can see if you can debug single file.
And are you Chinese? May be I can help you remotely.
I'm not Chinese. I feel the whole thing is almost there, perhaps the way "laravels" is setup. https://github.com/hhxsv5/laravel-s
As well, the browser doen't seem to trigger breakpoints. If you want me to try PHPStorm I can try that as well
I'm not Chinese. I feel the whole thing is almost there, perhaps the way "laravels" is setup. https://github.com/hhxsv5/laravel-s
OK, I'll try laravel-s today
That's brilliant. Out of curiosity what are you using to serve your application with swoole?
Hi, I find this is a yasd
bug.
laravel-s will execute:
php -c php.ini artisan laravels config
but it will coredump:
Hi, I found this problem because Opcache was installed. When I disable opcache, I can debug laravel-s:
I am debugging on the host, so path mapping is not configured, you should configure it.
That's brilliant, I'll test it right away.
Still no luck on that on VSCode but I'll try those steps on PHPStorm. My scenario is like this, app, db, redis are conteinerized and working fine. Serving the application with laravel-s. VSCode picks it something but not the application.
I've stopped laravel-s and served the application with php -S x.x.x.x:3000 and using the Xdebug and a browser plugin I was able to debug the application. Something funny with laravel-s perhaps.
Can you use yasd to debug the entry file bin/laravels
?Maybe you can set a breakpoint in 'bin/laravels'.
The same I'm afraid. :(
You don't seem to have set breakpoints in bin/laravels. Just like:
The installation is done
I'm using laravel-s on a containerized environment.
zend_extension=yasd yasd.debug_mode=remote yasd.remote_host=127.0.0.1 yasd.remote_port=9000
but not connecting on VsCode
Originally posted by @juberjj in https://github.com/swoole/yasd/issues/78#issuecomment-760904975