swoole / yasd

Yet Another Swoole Debugger
https://huanghantao.github.io/yasd-wiki/
Apache License 2.0
357 stars 35 forks source link

phpstorm yasd hyperf debug报错 #156

Closed htcud closed 1 year ago

htcud commented 2 years ago

image

hyperf应用程序报以下错误,程序就会死掉 php(55540,0x111bc9dc0) malloc: Incorrect checksum for freed object 0x7fb28940daa8: probably modified after being freed. Corrupt value: 0x0 php(55541,0x111bc9dc0) malloc: Incorrect checksum for freed object 0x7fb28931dd38: probably modified after being freed. Corrupt value: 0x0 php(55541,0x111bc9dc0) malloc: set a breakpoint in malloc_error_break to debug php(55540,0x111bc9dc0) malloc: set a breakpoint in malloc_error_break to debug php(55545,0x111bc9dc0) malloc: Incorrect checksum for freed object 0x7fb289614208: probably modified after being freed. Corrupt value: 0x0 php(55544,0x111bc9dc0) malloc: Incorrect checksum for freed object 0x7fb28931eed8: probably modified after being freed. Corrupt value: 0x0 php(55545,0x111bc9dc0) malloc: set a breakpoint in malloc_error_break to debug php(55544,0x111bc9dc0) malloc: set a breakpoint in malloc_error_break to debug php(55546,0x111bc9dc0) malloc: Incorrect checksum for freed object 0x7fb28940b818: probably modified after being freed. Corrupt value: 0x0

huanghantao commented 1 year ago

可以考虑使用 swoole-src的 xdebug分支,https://github.com/swoole/swoole-src/tree/support-xdebug 可以直接使用xdebug进行调试,前提是PHP版本要大于等于8.1