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

Panic crash when using -H argument #135

Open
codeswhite opened this issue Jun 13, 2024 · 0 comments
Open

Panic crash when using -H argument #135

codeswhite opened this issue Jun 13, 2024 · 0 comments

Comments

@codeswhite
Copy link

When running:

dog customdomain -H

It panics with an error about HTTPS but the crash seems to not be properly handled.

Output:

dog customdomain -H                                                                                                                                
thread 'main' panicked at 'Invalid HTTPS nameserver', dns-transport/src/https.rs:55:50                                                           
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace                                                                    
[1]    683935 IOT instruction (core dumped)  dog customdomain -H

Additional info:

$ export RUST_BACKTRACE=full
$ dog customdomain -H           
thread 'main' panicked at 'Invalid HTTPS nameserver', dns-transport/src/https.rs:55:50
stack backtrace:
   0:      0x69fbdf39acc - <unknown>
   1:      0x69fbded281c - <unknown>
   2:      0x69fbdf3a47c - <unknown>
   3:      0x69fbdf3aef1 - <unknown>
   4:      0x69fbdf3aa92 - <unknown>
   5:      0x69fbdf3aa06 - <unknown>
   6:      0x69fbdf3a9c2 - <unknown>
   7:      0x69fbdec91c2 - <unknown>
   8:      0x69fbded2f20 - <unknown>
   9:      0x69fbded2ecb - <unknown>
  10:      0x69fbdec92d6 - <unknown>
  11:      0x69fbdee72c0 - <unknown>
  12:      0x69fbdecd776 - <unknown>
  13:      0x69fbdecc2b9 - <unknown>
  14:      0x69fbdefe543 - <unknown>
  15:      0x69fbdeceb93 - <unknown>
  16:     0x6758ea039c88 - <unknown>
  17:     0x6758ea039d4c - __libc_start_main
  18:      0x69fbdecb5c5 - <unknown>
  19:                0x0 - <unknown>
[1]    684277 IOT instruction (core dumped)  dog customdomain -H

Running on archlinux kernel 6.9.3, installed via pacman

$ dog --version
... v0.1.0 ...

$ sha256sum `which dog`                                      
45f8b9dccacae8a7313a9e285a892ebe4f6215192cc2b761b4f6bd59e7e7e7c2  /usr/bin/dog
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

1 participant