Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

与网络相关的请求一直卡住 #4427

Closed
yunwen11 opened this issue Nov 27, 2023 · 6 comments
Closed

与网络相关的请求一直卡住 #4427

yunwen11 opened this issue Nov 27, 2023 · 6 comments
Labels

Comments

@yunwen11
Copy link

yunwen11 commented Nov 27, 2023

Xmake 版本

2.8.5

操作系统版本和架构

macOS M2 14.1

描述问题

使用xmake require --list等依赖于网络的命令时,会一直卡住,如图。
如果xmake.lua中有add_urls,表现也是相同。
从图中可以看到,我的网络是正常的,可以ping通xmake.io baidu.com等,访问各网页也完全正常。
1701072639716

期待的结果

这个问题非常严重,使xmake处于了完全瘫痪的状态。希望开发团队能尽快解决,辛苦各位。

工程配置

add_rules("mode.debug", "mode.release")

package("zlib")
    set_urls("https://www.zlib.net/zlib-1.3.tar.xz")
    add_versions("1.3", "8a9ba2898e1d0d774eca6ba5b4627a11e5588ba85c8851336eb38de4683050a7")
    on_install("macosx", "linux", function (package)
        import("package.tools.autoconf").install(package)
    end)
package_end()

add_requires("zlib")

target("hello")
    set_kind("binary")
    add_files("src/*.c")

附加信息和错误日志

如图片。

@yunwen11 yunwen11 added the bug label Nov 27, 2023
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: Network-related requests keep getting stuck

Xmake version

2.8.5

Operating system version and architecture

macOS M2 14.1

Describe the problem

When using xmake require --list and other network-dependent commands, it will always get stuck, as shown in the figure.
If there is add_urls in xmake.lua, the performance is the same.
As you can see from the picture, my network is normal, I can ping xmake.io baidu.com, etc., and accessing various web pages is completely normal.
1701072639716

Expected results

This problem is so serious that xmake is completely paralyzed. I hope the development team can solve it as soon as possible, thank you for your hard work.

Project configuration

Run xmake require --list in terminal

Additional information and error logs

Like the picture.

@waruqi
Copy link
Member

waruqi commented Nov 27, 2023

执行 xmake f -cvD -y 看下。。如果卡,通常是卡 github 的访问。。或者参考这个 #2033 看下栈

@yunwen11
Copy link
Author

yunwen11 commented Nov 27, 2023

yun@ hello$ time xmake f -cvD -y
checking for platform ... macosx
checking for architecture ... arm64
checking for Xcode directory ... /Applications/Xcode.app
checking for Codesign Identity of Xcode ... no
checking for SDK version of Xcode for macosx (arm64) ... 14.0
checking for Minimal target version of Xcode for macosx (arm64) ... 14.0
checkinfo: cannot runv(zig version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(zig version), No such file or directory
checking for zig ... no
checking for unzip ... /usr/bin/unzip
checking for git ... /opt/homebrew/bin/git
checking for gzip ... /usr/bin/gzip
checking for tar ... /usr/bin/tar
^C

real	0m9.351s
user	0m0.068s
sys	0m0.055s

@yunwen11
Copy link
Author

yun@ hello$ XMAKE_PROFILE=stuck xmake
<subprocess: sysctl>: /usr/sbin/sysctl -n machdep.cpu.vendor machdep.cpu.model machdep.cpu.family machdep.cpu.features machdep.cpu.brand_string
<subprocess: sw_vers>: sw_vers -productVersion
checking for Xcode directory ... /Applications/Xcode.app
checking for Codesign Identity of Xcode ... no
checking for SDK version of Xcode for macosx (arm64) ... 14.0
checking for Minimal target version of Xcode for macosx (arm64) ... 14.0
<subprocess: which>: which zig
<subprocess: which>: which zig
<subprocess: which>: which unzip
<subprocess: unzip>: /usr/bin/unzip -v
<subprocess: which>: which git
<subprocess: git>: /opt/homebrew/bin/git --version
<subprocess: which>: which gzip
<subprocess: gzip>: /usr/bin/gzip --version
<subprocess: which>: which tar
<subprocess: tar>: /usr/bin/tar --version
<subprocess: which>: which ping
<subprocess: ping>: /Applications/Yunshu.app/Contents/Public/ping -c 1 -t 1 127.0.0.1
^C[xmake]: [engine]: 1000
stack traceback:
	[C]: in function 'base/io.poller_wait'
	@programdir/core/base/poller.lua:115: in function 'base/poller.wait'
	@programdir/core/base/scheduler.lua:958: in function 'base/scheduler.runloop'
	@programdir/core/main.lua:313: in function 'main.entry'
	(...tail calls...)
Segmentation fault: 11

Yunshu.app是公司安全软件,看起来像是卡在这里,我问下IT

@yunwen11
Copy link
Author

证实是Yunshu.app修改了PATH变量导致,与xmake无关。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


It is confirmed that the problem is caused by Yunshu.app modifying the PATH variable and has nothing to do with xmake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants