swoole / yasd

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

提示 free(): invalid next size (fast) 或者内存溢出 #90

Closed ZhangTianyi-1998 closed 3 years ago

ZhangTianyi-1998 commented 3 years ago

您好, 我在调试的时候会提示free(): invalid next size (fast) 或者内存溢出,不使用调试的时候程序正常运行 想问下调试的时候怎么设置内存大小呀 或者解决这个问题

huanghantao commented 3 years ago

能否提供一份valgrind日志?

USE_ZEND_ALLOC=0 valgrind --trace-children=yes --log-file=valgrind.log php -e xxx.php

触发了你这个错误之后,把这个valgrind.log文件给我看看。

ZhangTianyi-1998 commented 3 years ago

valgrind.log 您好 这是我的日志 今天运行的时候又出现了corrupted double-linked list 这个问题

huanghantao commented 3 years ago

你执行php -m我看看。

ZhangTianyi-1998 commented 3 years ago

[PHP Modules] bcmath bz2 calendar Core ctype curl date dba dom enchant exif fileinfo filter ftp gd gettext gmp hash iconv igbinary imap interbase intl json ldap libxml mbstring mysql mysqli mysqlnd odbc openssl pcntl pcre PDO pdo_dblib PDO_Firebird pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite pgsql Phar posix pspell readline recode redis Reflection session shmop SimpleXML snmp soap sockets sodium SPL sqlite3 standard swoole sysvmsg sysvsem sysvshm tidy tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl yasd Zend OPcache zip zlib

[Zend Modules] Yasd Zend OPcache

huanghantao commented 3 years ago

opcache关掉试试?另外,yasd你用的是最新的吗?

ZhangTianyi-1998 commented 3 years ago

我把cpcache关掉了 重新编译了一个最新的yasd root@DESKTOP-CFFM9HI:/etc/php/7.2/cli/conf.d# php --ri yasd

yasd

Yasd => enabled Author => codinghuang codinghuang@qq.com Version => 0.3.7 Built => Feb 4 2021 16:17:33

Directive => Local Value => Master Value yasd.breakpoints_file => no value => no value yasd.debug_mode => remote => remote yasd.remote_host => 192.168.1.125 => 192.168.1.125 yasd.remote_port => 9000 => 9000 yasd.depth => 1 => 1 yasd.log_level => -1 => -1 yasd.max_executed_opline_num => 0 => 0 xdebug.coverage_enable => 1 => 1 xdebug.profiler_enable => 1 => 1 xdebug.remote_autostart => 1 => 1 xdebug.remote_connect_back => 0 => 0 xdebug.remote_mode => req => req 还会出现下面两种问题 corrupted size vs. prev_size free(): invalid next size (fast) valgrind.log

huanghantao commented 3 years ago

方便加一个微信吗?我的微信:codinghuang

ZhangTianyi-1998 commented 3 years ago

加您了

huanghantao commented 3 years ago

初步判断是因为某种原因,导致堆栈被破坏了