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

[BUG] 命令行应用程序输出陷入绿色问号死循环。 #646

Closed
val213 opened this issue Mar 22, 2024 · 2 comments
Closed

[BUG] 命令行应用程序输出陷入绿色问号死循环。 #646

val213 opened this issue Mar 22, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@val213
Copy link
Collaborator

val213 commented Mar 22, 2024

描述错误
命令行应用程序输出陷入绿色问号死循环。

请填写您的电脑的信息:

  • 操作系统及版本:Ubuntu 22.04
  • DragonOS版本:c3c7344
  • DADK版本:dadk 0.1.8
  • Rust版本:rustc 1.78.0-nightly (766bdce74 2024-03-16)

重现步骤
重现行为的步骤:
输入 dogdog -vdog -help 后出现满屏绿色问号,陷入死循环无法停止。而输入dog example.com --tcp后是正常工作的。猜测是tty的问题。

期望行为
执行上述命令后正常显示该工具的版本信息或者帮助信息结果。

屏幕截图

Snipaste_2024-03-22_15-25-39

其他上下文
dog是新移植的dns解析命令行工具,仓库地址:https://github.com/ogham/dog/tree/master

系统日志
dog -v 的日志

�[92mroot@DragonOS�[0m:�[96m/�[0m$ �[18Gd�[19Go�[20Gg�[21G �[22G-�[23Gv�[24G
�[1;33m[ WARN ] �[0m(src/syscall/mod.rs:856)	 SYS_POLL has not yet been implemented
�[1;33m[ WARN ] �[0m(src/syscall/mod.rs:866)	 SYS_RT_SIGPROCMASK has not yet been implemented
�[1;33m[ WARN ] �[0m(src/syscall/mod.rs:876)	 SYS_SIGALTSTACK has not yet been implemented
�[1;33m[ WARN ] �[0m(src/syscall/mod.rs:866)	 SYS_RT_SIGPROCMASK has not yet been implemented
�[1;33m[ WARN ] �[0m(src/syscall/mod.rs:866)	 SYS_RT_SIGPROCMASK has not yet been implemented
dog �[1;32m●�[0m command-line DNS client
v0.2.0-pre [721440b] built on 2024-03-22 �[1;31m(pre-release!)�[0m
�[1;4;34mhttps://dns.lookup.dog/�[0m

dog --help 的日志

dog �[1;32m●�[0m command-line DNS client

�[4mUsage:�[0m
  �[1mdog�[0m �[1;33m[OPTIONS]�[0m [--] �[32m<arguments>�[0m

�[4mExamples:�[0m
  �[1mdog�[0m �[32mexample.net�[0m                          Query a domain using default settings
  �[1mdog�[0m �[32mexample.net MX�[0m                       ...looking up MX records instead
  �[1mdog�[0m �[32mexample.net MX @1.1.1.1�[0m              ...using a specific nameserver instead
  �[1mdog�[0m �[32mexample.net MX @1.1.1.1�[0m �[1;33m-T�[0m           ...using TCP rather than UDP
  �[1mdog�[0m �[1;33m-q�[0m �[33mexample.net�[0m �[1;33m-t�[0m �[33mMX�[0m �[1;33m-n�[0m �[33m1.1.1.1�[0m �[1;33m-T�[0m   As above, but using explicit arguments

�[4mQuery options:�[0m
  �[32m<arguments>�[0m              Human-readable host names, nameservers, types, or classes
  �[1;33m-q�[0m, �[1;33m--query�[0m=�[33mHOST�[0m         Host name or domain name to query
  �[1;33m-t�[0m, �[1;33m--type�[0m=�[33mTYPE�[0m          Type of the DNS record being queried (A, MX, NS...)
  �[1;33m-n�[0m, �[1;33m--nameserver�[0m=�[33mADDR�[0m    Address of the nameserver to send packets to
  �[1;33m--class�[0m=�[33mCLASS�[0m            Network class of the DNS record being queried (IN, CH, HS)

�[4mSending options:�[0m
  �[1;33m--edns�[0m=�[33mSETTING�[0m           Whether to OPT in to EDNS (disable, hide, show)
  �[1;33m--txid�[0m=�[33mNUMBER�[0m            Set the transaction ID to a specific value
  �[1;33m-Z�[0m=�[33mTWEAKS�[0m                Set uncommon protocol-level tweaks

�[4mProtocol options:�[0m
  �[1;33m-U�[0m, �[1;33m--udp�[0m                Use the DNS protocol over UDP
  �[1;33m-T�[0m, �[1;33m--tcp�[0m                Use the DNS protocol over TCP
  �[1;33m-S�[0m, �[1;33m--tls�[0m                Use the DNS-over-TLS protocol
  �[1;33m-H�[0m, �[1;33m--https�[0m              Use the DNS-over-HTTPS protocol

�[4mOutput options:�[0m
  �[1;33m-1�[0m, �[1;33m--short�[0m              Short mode: display nothing but the first result
  �[1;33m-J�[0m, �[1;33m--json�[0m               Display the output as JSON
  �[1;33m--color�[0m, �[1;33m--colour�[0m=�[33mWHEN�[0m   When to colourise the output (always, automatic, never)
  �[1;33m--seconds�[0m                Do not format durations, display them as seconds
  �[1;33m--time�[0m          
@val213 val213 added the bug Something isn't working label Mar 22, 2024
@fslongjin
Copy link
Member

@dragonosbot assign @GnoCiYeH

@fslongjin fslongjin removed their assignment Mar 22, 2024
@fslongjin fslongjin added this to the DragonOS 0.1.10 milestone Mar 22, 2024
@GnoCiYeH
Copy link
Member

已经解决,详见#652

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants