-
Notifications
You must be signed in to change notification settings - Fork 51
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
Panics on systems with empty /etc/resolv.conf #417
Labels
bug
Something isn't working
Comments
An empty |
For the Debian package, I've come up with this patch: let me know if you prefer me to send this is a PR. |
@siretart It would be nice if you make a PR with your fix |
siretart
pushed a commit
to siretart/gvisor-tap-vsock
that referenced
this issue
Nov 8, 2024
Fixes: containers#417 Signed-off-by: Reinhard Tartler <[email protected]>
siretart
pushed a commit
to siretart/gvisor-tap-vsock
that referenced
this issue
Nov 18, 2024
Fixes: containers#417 Signed-off-by: Reinhard Tartler <[email protected]>
siretart
pushed a commit
to siretart/gvisor-tap-vsock
that referenced
this issue
Nov 18, 2024
Fixes: containers#417 Signed-off-by: Reinhard Tartler <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While working on the Debian package of this project, I noticed a panic while running the testsuite of this package:
This panic starts happening when upgrading to version 0.8.0. It does not occur with version 0.7.3
Looking at the code, I believe this is caused by 58eb054, which introduces
gvisor-tap-vsock/pkg/services/dns/dns_config_unix.go
Lines 9 to 17 in 72b102d
The panic occurs in line 15 when the test machine does have an empty
/etc/resolv.conf
. This makes sense for a build machine to attempt to disable connections to the internet.Arguably, this can also happen outside of the test suite. Having the code raise an error seems preferable over a
runtime error: index out of range [0] with length 0
The text was updated successfully, but these errors were encountered: