Skip to content

SocketAddr of Unix Sockets use sun_len as path's length in BSD-like OSes - #86318

Closed
zonyitoo wants to merge 1 commit into
rust-lang:masterfrom
zonyitoo:master
Closed

SocketAddr of Unix Sockets use sun_len as path's length in BSD-like OSes#86318
zonyitoo wants to merge 1 commit into
rust-lang:masterfrom
zonyitoo:master

Conversation

@zonyitoo

Copy link
Copy Markdown

@rust-highfive

Copy link
Copy Markdown
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @yaahc (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 15, 2021
@zonyitoo

Copy link
Copy Markdown
Author

Hello @yaahc , please take a look this simple PR.

@yaahc

yaahc commented Jun 21, 2021

Copy link
Copy Markdown
Member

Looks good @zonyitoo, thank you very much.

@bors r+

@bors

bors commented Jun 21, 2021

Copy link
Copy Markdown
Collaborator

📌 Commit 6c65a13 has been approved by yaahc

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 21, 2021
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Jun 21, 2021
SocketAddr of Unix Sockets use sun_len as path's length in BSD-like OSes

- fixes rust-lang#69061
@JohnTitor

Copy link
Copy Markdown
Member

@bors r- see the CI failure.

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jun 21, 2021
@yaahc

yaahc commented Jun 21, 2021

Copy link
Copy Markdown
Member

@bors r- see the CI failure.

shit, ty

@zonyitoo

Copy link
Copy Markdown
Author

What.. cfg_if does not exist?

@zonyitoo

Copy link
Copy Markdown
Author

Ah... Again, approval required. @yaahc

@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job x86_64-gnu-llvm-10 failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
thread '<unnamed>' panicked at 'explicit panic', library/std/src/io/stdio/tests.rs:36:9
.................................................................................................... 400/875
.................................................................................................... 500/875
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `[104, 101, 108, 108, 111]`,
 right: `[0, 0, 0, 0, 0]`', library/std/src/os/./unix/net/tests.rs:49:9
...........................F........................................................................ 600/875
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', library/std/src/sync/mpsc/sync_tests.rs:383:27
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: SendError { .. }', library/std/src/sync/mpsc/sync_tests.rs:371:24
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', library/std/src/sync/mpsc/sync_tests.rs:250:19
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', library/std/src/sync/mpsc/tests.rs:322:28
---
thread '<unnamed>' panicked at 'Box<dyn Any>', library/std/src/thread/tests.rs:205:33
...........................................................................
failures:

---- os::imp::unix::net::tests::basic stdout ----
thread 'os::imp::unix::net::tests::basic' panicked at 'assertion failed: `(left == right)`
  left: `Some("/tmp/rust-783326236/sock")`,
 right: `Some("/tmp/rust-783326236/soc")`', library/std/src/os/./unix/net/tests.rs:54:5

failures:
    os::imp::unix::net::tests::basic


test result: FAILED. 874 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 10.31s

error: test failed, to rerun pass '-p std --lib'


command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "16" "--release" "--locked" "--color" "always" "--features" "panic-unwind backtrace compiler-builtins-c" "--manifest-path" "/checkout/library/test/Cargo.toml" "-p" "std" "--" "--quiet"


failed to run: /checkout/obj/build/bootstrap/debug/bootstrap --stage 2 test --exclude src/tools/tidy
Build completed unsuccessfully in 0:18:03

@yaahc

yaahc commented Jun 22, 2021

Copy link
Copy Markdown
Member

Looks like it's still failing @zonyitoo.

@zonyitoo

Copy link
Copy Markdown
Author

I am going to send a PR to cpython instead, because what Rust did right here is completely correct.

@zonyitoo zonyitoo closed this Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SocketAddr from UnixDatagram recv_from missing the last character (on OS X)

6 participants