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

win10子系统Ubuntu10.04出现maybe in an endless loop (version = 69503)死循环 #1195

Closed
lgbgoingdown opened this issue May 25, 2020 · 6 comments

Comments

@lgbgoingdown
Copy link

win10子系统内核版本:Linux 4.4.0-18362-Microsoft #1-Microsoft Mon Mar 18 12:02:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux
出现死循环输出:
[:00000000] A message from [ :00000000 ] to [ :01000001 ] maybe in an endless loop (version = 69505)
[:00000000] A message from [ :00000000 ] to [ :01000001 ] maybe in an endless loop (version = 69505)
[:00000000] A message from [ :00000000 ] to [ :01000001 ] maybe in an endless loop (version = 69505)
[:00000000] A message from [ :00000000 ] to [ :01000001 ] maybe in an endless loop (version = 69505)

@cloudwu
Copy link
Owner

cloudwu commented May 25, 2020

暂不支持 windows , 出现问题可以自己查。如果能修好,欢迎提 pr 。

信息是说 :01000001 这个服务出现了死循环,一直没有返回。通常第一个服务是 log 服务。如果你没有修改配置,那么运行的是 https://github.com/cloudwu/skynet/blob/master/service-src/service_logger.c 这个服务,可能阻塞在 logger_cb 这个函数中没有返回。

@cloudwu
Copy link
Owner

cloudwu commented May 25, 2020

不过奇怪的是:如果 :01000001 是 log 服务,且阻塞,那么理论上你也无法看见 log 信息才对。所以你需要核查 :01000001 到底是什么。

@lgbgoingdown
Copy link
Author

使用win10的debian子系统测试成功了,可能Ubuntu子系统哪里有问题

@fanlix
Copy link
Contributor

fanlix commented May 28, 2020

wsl用的是MS重写的定制版kernel,
很多底层系统调用都没实现,
虽然很轻量,但是各种兼容一言难尽.
tail -f, gdb, docker这些时不时就会掉坑里.
坑太大, MS自己已经放弃了.

建议只在wsl下开发然后去linux下测试.
或换wsl2

@fawdlstty
Copy link

提议,打开这个issue,在有pr时再关闭

@etnlGD
Copy link

etnlGD commented Nov 12, 2021

WSL1 + Ubuntu 20.04碰到同样的问题,研究了下是libc的sleep有问题,另外一个表现是在控制台运行 sleep 1s 会报错 "Error- sleep: cannot read realtime clock: Invalid argument"。这里有个解决办法 https://www.how2shout.com/how-to/how-to-upgrade-ubuntu-18-04-lts-to-20-04-lts-on-wsl-windows-10.html

wget https://launchpad.net/~rafaeldtinoco/+archive/ubuntu/lp1871129/+files/libc6_2.31-0ubuntu8+lp1871129~1_amd64.deb
sudo dpkg --install libc6_2.31-0ubuntu8+lp1871129~1_amd64.deb
sudo apt-mark hold libc6
sudo apt --fix-broken install
sudo apt full-upgrade

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

No branches or pull requests

5 participants