首页
下载
文档
问答社区
视频
捐赠
源代码
AI 助理
赞助商
CRMEB
Apipost
腾讯云
微擎
禅道
51Talk
商业产品
Swoole AI 智能文档翻译器
Swoole-Compiler PHP 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
swoole_async_dns_lookup 会coredump
发现用了swoole_async_dns_lookup 就会core dump 运行的例子 weather_server.php ```shell Core was generated by `php -f weather_server.php'. Program terminated with signal SIGSEGV, Segmentation fault. #0 zend_mm_free_heap (ptr=0xb1f59038, heap=0xb6600040) at /home/paul/php-7.0.7/Zend/zend_alloc.c:1408 1408 ZEND_MM_CHECK(chunk->heap == heap, "zend_mm_heap corrupted"); (gdb) bt #0 zend_mm_free_heap (ptr=0xb1f59038, heap=0xb6600040) at /home/paul/php-7.0.7/Zend/zend_alloc.c:1408 #1 _efree (ptr=ptr@entry=0xb1f59038) at /home/paul/php-7.0.7/Zend/zend_alloc.c:2466 #2 0x0846572f in zend_hash_do_resize (ht=ht@entry=0xb1f59008) at /home/paul/php-7.0.7/Zend/zend_hash.c:893 #3 0x08466a8f in _zend_hash_add_or_update_i (flag=1, pData=0xbfd740b0, key=0xb665d4b0, ht=0xb1f59008) at /home/paul/php-7.0.7/Zend/zend_hash.c:604 #4 _zend_hash_str_update (ht=ht@entry=0xb1f59008, str=str@entry=0xb6243ec1 "open_length_check", len=17, pData=pData@entry=0xbfd740b0) at /home/paul/php-7.0.7/Zend/zend_hash.c:667 #5 0x0845ce31 in zend_symtable_str_update (pData=0xbfd740b0, len=<optimized out>, str=0xb6243ec1 "open_length_check", ht=0xb1f59008) at /home/paul/php-7.0.7/Zend/zend_hash.h:407 #6 add_assoc_bool_ex (arg=arg@entry=0xb665e7b0, key=key@entry=0xb6243ec1 "open_length_check", key_len=key_len@entry=17, b=b@entry=0) at /home/paul/php-7.0.7/Zend/zend_API.c:1351 #7 0xb6207cfb in zim_swoole_http_server_start (execute_data=0xb66130d0, return_value=0xb66130c0) at /home/paul/swoole-src/swoole_http_server.c:1357 #8 0x084d4fe5 in ZEND_DO_FCALL_SPEC_HANDLER () at /home/paul/php-7.0.7/Zend/zend_vm_execute.h:842 #9 0x084964da in execute_ex (ex=0xb6613020) at /home/paul/php-7.0.7/Zend/zend_vm_execute.h:414 ```
发布于7年前 · 1 次浏览 · 来自
提问
r
rambo
发现用了swoole_async_dns_lookup 就会core dump 运行的例子 weather_server.php ```shell Core was generated by `php -f weather_server.php'. Program terminated with signal SIGSEGV, Segmentation fault. #0 zend_mm_free_heap (ptr=0xb1f59038, heap=0xb6600040) at /home/paul/php-7.0.7/Zend/zend_alloc.c:1408 1408 ZEND_MM_CHECK(chunk->heap == heap, "zend_mm_heap corrupted"); (gdb) bt #0 zend_mm_free_heap (ptr=0xb1f59038, heap=0xb6600040) at /home/paul/php-7.0.7/Zend/zend_alloc.c:1408 #1 _efree (ptr=ptr@entry=0xb1f59038) at /home/paul/php-7.0.7/Zend/zend_alloc.c:2466 #2 0x0846572f in zend_hash_do_resize (ht=ht@entry=0xb1f59008) at /home/paul/php-7.0.7/Zend/zend_hash.c:893 #3 0x08466a8f in _zend_hash_add_or_update_i (flag=1, pData=0xbfd740b0, key=0xb665d4b0, ht=0xb1f59008) at /home/paul/php-7.0.7/Zend/zend_hash.c:604 #4 _zend_hash_str_update (ht=ht@entry=0xb1f59008, str=str@entry=0xb6243ec1 "open_length_check", len=17, pData=pData@entry=0xbfd740b0) at /home/paul/php-7.0.7/Zend/zend_hash.c:667 #5 0x0845ce31 in zend_symtable_str_update (pData=0xbfd740b0, len=<optimized out>, str=0xb6243ec1 "open_length_check", ht=0xb1f59008) at /home/paul/php-7.0.7/Zend/zend_hash.h:407 #6 add_assoc_bool_ex (arg=arg@entry=0xb665e7b0, key=key@entry=0xb6243ec1 "open_length_check", key_len=key_len@entry=17, b=b@entry=0) at /home/paul/php-7.0.7/Zend/zend_API.c:1351 #7 0xb6207cfb in zim_swoole_http_server_start (execute_data=0xb66130d0, return_value=0xb66130c0) at /home/paul/swoole-src/swoole_http_server.c:1357 #8 0x084d4fe5 in ZEND_DO_FCALL_SPEC_HANDLER () at /home/paul/php-7.0.7/Zend/zend_vm_execute.h:842 #9 0x084964da in execute_ex (ex=0xb6613020) at /home/paul/php-7.0.7/Zend/zend_vm_execute.h:414 ```
赞
0
分享
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
评论
2017-10-25
i
imjerrybao
此问题是PHP7与Swoole兼容性问题,在最新的1.8.7版本(目前还在alpha阶段)中已修复。
赞
0
回复
微信公众号
热门内容
暂无回复的问答
- CodeGalaxy K3s 轻量集群节点之间如何实现负载均衡
- 关于openssl CURL WARNING swSSL_connect: SSL_connect(fd=69) failed. Error: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small[1|394]
- 多个模型如何进行事务异常回退?
- websocket开启wss报错
- 协程tcp服务器如何使用多进程?recv()方法接收信息,打印出来的pid一直是同一个。没用使用到多进程啊。