Skip to content

"who --lookup" is failing on travis CI #2181

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

Closed
sylvestre opened this issue May 6, 2021 · 2 comments · Fixed by #2210
Closed

"who --lookup" is failing on travis CI #2181

sylvestre opened this issue May 6, 2021 · 2 comments · Fixed by #2210

Comments

@sylvestre
Copy link
Contributor

caused by #2138

Log:
https://travis-ci.org/github/uutils/coreutils/jobs/769608125

---- test_who::test_lookup stdout ----

current_directory_resolved: 

run: /home/travis/build/uutils/coreutils/target/debug/coreutils who --lookup
current_directory_resolved: 
run: who --lookup
thread 'test_who::test_lookup' panicked at 'assertion failed: `(left == right)`
Diff < left / right > :
<"travis   pts/0        2021-05-05 21:03 (\u{0}\u{0}\u{0}\u{0}\u{0}\u{0}\u{0}\u{0}10)\n"
>"travis   pts/0        2021-05-05 21:03 (10.16.5.10)\n"
', tests/common/util.rs:205:9
@jhscheer
Copy link
Contributor

jhscheer commented May 6, 2021

Context:
The --lookup flag wasn't tested prior to #2138.
The test test_who::test_lookup doesn't always fail.

If this test makes trouble, ignoring it until this issue is fixed would be reasonable.

@jhscheer
Copy link
Contributor

I am working on this.

jhscheer added a commit to jhscheer/coreutils that referenced this issue May 13, 2021
This closes uutils#2181.

`who --lookup` is failing with a runtime panic (double free).
Since `crate::dns-lookup` already includes a safe wrapper for `getaddrinfo`
I used this crate instead of further debugging the existing code in
utmpx::canon_host().

* It was neccessary to remove the version constraint for libc in uucore.
jhscheer added a commit to jhscheer/coreutils that referenced this issue May 13, 2021
This closes uutils#2181.

`who --lookup` is failing with a runtime panic (double free).
Since `crate::dns-lookup` already includes a safe wrapper for `getaddrinfo`
I used this crate instead of further debugging the existing code in
utmpx::canon_host().

* It was neccessary to remove the version constraint for libc in uucore.
jhscheer added a commit to jhscheer/coreutils that referenced this issue May 13, 2021
This closes uutils#2181.

`who --lookup` is failing with a runtime panic (double free).
Since `crate::dns-lookup` already includes a safe wrapper for `getaddrinfo`
I used this crate instead of further debugging the existing code in
utmpx::canon_host().

* It was neccessary to remove the version constraint for libc in uucore.
jhscheer added a commit to jhscheer/coreutils that referenced this issue May 13, 2021
This closes uutils#2181.

`who --lookup` is failing with a runtime panic (double free).
Since `crate::dns-lookup` already includes a safe wrapper for `getaddrinfo`
I used this crate instead of further debugging the existing code in
utmpx::canon_host().

* It was neccessary to remove the version constraint for libc in uucore.
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

Successfully merging a pull request may close this issue.

2 participants