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

test_gl_tcp_server_access_denied failure on Linux (x86_64) #3102

Closed
alexrp opened this issue Aug 3, 2012 · 1 comment
Closed

test_gl_tcp_server_access_denied failure on Linux (x86_64) #3102

alexrp opened this issue Aug 3, 2012 · 1 comment

Comments

@alexrp
Copy link

alexrp commented Aug 3, 2012

net_tcp::test::tcp_ipv4_server_and_client_test::impl64::test_gl_tcp_server_access_denied fails on Linux (x86_64) in master:

failures:
        net_tcp::test::tcp_ipv4_server_and_client_test::impl64::test_gl_tcp_server_access_denied

result: FAILED. 159 passed; 1 failed; 6 ignored

rust: task failed at 'Some tests failed', /usr/src/rust/src/libstd/test.rs:59
rust: domain main @0x6931e50 root task failed
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
==8543== Thread 14:
==8543== Invalid write of size 4
==8543==    at 0x55A2057: ev_timer_stop (ev.c:1183)
==8543==    by 0x55A3B74: ev_run (ev.c:2206)
==8543==    by 0x5595EB1: uv_run (core.c:212)
==8543==    by 0x559500C: ??? (in /usr/src/rust/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so)
==8543==  Address 0x6b89f38 is 2,712 bytes inside a block of size 3,632 free'd
==8543==    at 0x4C282E0: free (vg_replace_malloc.c:366)
==8543==    by 0x55813E6: rust_task::cleanup_after_turn() (rust_task.cpp:561)
==8543==    by 0x557DED4: rust_sched_loop::activate(rust_task*) (rust_sched_loop.cpp:47)
==8543==    by 0x557E020: rust_sched_loop::run_single_turn() (rust_sched_loop.cpp:230)
==8543==    by 0x557F704: rust_sched_driver::start_main_loop() (rust_sched_driver.cpp:28)
==8543==    by 0x5578BB9: rust_thread_start(void*) (rust_thread.cpp:25)
==8543==    by 0x6413EFB: start_thread (pthread_create.c:304)
==8543==    by 0x5ABE59C: clone (clone.S:112)
==8543== 
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
rust: task failed at 'killed', /usr/src/rust/src/libcore/task.rs:521
==8543== Invalid read of size 8
==8543==    at 0x55A374B: ev_run (ev.c:2194)
==8543==    by 0x5595EB1: uv_run (core.c:212)
==8543==    by 0x559500C: ??? (in /usr/src/rust/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so)
==8543==  Address 0x6b89f60 is 2,752 bytes inside a block of size 3,632 free'd
==8543==    at 0x4C282E0: free (vg_replace_malloc.c:366)
==8543==    by 0x55813E6: rust_task::cleanup_after_turn() (rust_task.cpp:561)
==8543==    by 0x557DED4: rust_sched_loop::activate(rust_task*) (rust_sched_loop.cpp:47)
==8543==    by 0x557E020: rust_sched_loop::run_single_turn() (rust_sched_loop.cpp:230)
==8543==    by 0x557F704: rust_sched_driver::start_main_loop() (rust_sched_driver.cpp:28)
==8543==    by 0x5578BB9: rust_thread_start(void*) (rust_thread.cpp:25)
==8543==    by 0x6413EFB: start_thread (pthread_create.c:304)
==8543==    by 0x5ABE59C: clone (clone.S:112)
==8543== 
==8543== Invalid read of size 8
==8543==    at 0x55A375D: ev_run (ev.c:2196)
==8543==    by 0x5595EB1: uv_run (core.c:212)
==8543==    by 0x559500C: ??? (in /usr/src/rust/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so)
==8543==  Address 0x6b89f58 is 2,744 bytes inside a block of size 3,632 free'd
==8543==    at 0x4C282E0: free (vg_replace_malloc.c:366)
==8543==    by 0x55813E6: rust_task::cleanup_after_turn() (rust_task.cpp:561)
==8543==    by 0x557DED4: rust_sched_loop::activate(rust_task*) (rust_sched_loop.cpp:47)
==8543==    by 0x557E020: rust_sched_loop::run_single_turn() (rust_sched_loop.cpp:230)
==8543==    by 0x557F704: rust_sched_driver::start_main_loop() (rust_sched_driver.cpp:28)
==8543==    by 0x5578BB9: rust_thread_start(void*) (rust_thread.cpp:25)
==8543==    by 0x6413EFB: start_thread (pthread_create.c:304)
==8543==    by 0x5ABE59C: clone (clone.S:112)
==8543== 
==8543== Invalid write of size 8
==8543==    at 0x55A3767: ev_run (ev.c:2196)
==8543==    by 0x5595EB1: uv_run (core.c:212)
==8543==    by 0x559500C: ??? (in /usr/src/rust/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so)
==8543==  Address 0x6b89f58 is 2,744 bytes inside a block of size 3,632 free'd
==8543==    at 0x4C282E0: free (vg_replace_malloc.c:366)
==8543==    by 0x55813E6: rust_task::cleanup_after_turn() (rust_task.cpp:561)
==8543==    by 0x557DED4: rust_sched_loop::activate(rust_task*) (rust_sched_loop.cpp:47)
==8543==    by 0x557E020: rust_sched_loop::run_single_turn() (rust_sched_loop.cpp:230)
==8543==    by 0x557F704: rust_sched_driver::start_main_loop() (rust_sched_driver.cpp:28)
==8543==    by 0x5578BB9: rust_thread_start(void*) (rust_thread.cpp:25)
==8543==    by 0x6413EFB: start_thread (pthread_create.c:304)
==8543==    by 0x5ABE59C: clone (clone.S:112)
==8543== 
==8543== Invalid write of size 8
==8543==    at 0x55A376F: ev_run (ev.c:2198)
==8543==    by 0x5595EB1: uv_run (core.c:212)
==8543==    by 0x559500C: ??? (in /usr/src/rust/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so)
==8543==  Address 0x6b89f58 is 2,744 bytes inside a block of size 3,632 free'd
==8543==    at 0x4C282E0: free (vg_replace_malloc.c:366)
==8543==    by 0x55813E6: rust_task::cleanup_after_turn() (rust_task.cpp:561)
==8543==    by 0x557DED4: rust_sched_loop::activate(rust_task*) (rust_sched_loop.cpp:47)
==8543==    by 0x557E020: rust_sched_loop::run_single_turn() (rust_sched_loop.cpp:230)
==8543==    by 0x557F704: rust_sched_driver::start_main_loop() (rust_sched_driver.cpp:28)
==8543==    by 0x5578BB9: rust_thread_start(void*) (rust_thread.cpp:25)
==8543==    by 0x6413EFB: start_thread (pthread_create.c:304)
==8543==    by 0x5ABE59C: clone (clone.S:112)
==8543== 
==8543== Invalid write of size 4
==8543==    at 0x55A3701: ev_run (ev.c:1189)
==8543==    by 0x5595EB1: uv_run (core.c:212)
==8543==    by 0x559500C: ??? (in /usr/src/rust/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so)
==8543==  Address 0x6b89f38 is 2,712 bytes inside a block of size 3,632 free'd
==8543==    at 0x4C282E0: free (vg_replace_malloc.c:366)
==8543==    by 0x55813E6: rust_task::cleanup_after_turn() (rust_task.cpp:561)
==8543==    by 0x557DED4: rust_sched_loop::activate(rust_task*) (rust_sched_loop.cpp:47)
==8543==    by 0x557E020: rust_sched_loop::run_single_turn() (rust_sched_loop.cpp:230)
==8543==    by 0x557F704: rust_sched_driver::start_main_loop() (rust_sched_driver.cpp:28)
==8543==    by 0x5578BB9: rust_thread_start(void*) (rust_thread.cpp:25)
==8543==    by 0x6413EFB: start_thread (pthread_create.c:304)
==8543==    by 0x5ABE59C: clone (clone.S:112)
==8543== 
==8543== Invalid read of size 4
==8543==    at 0x559FB93: ev_feed_event (ev.c:900)
==8543==    by 0x55A3851: ev_run (ev.c:924)
==8543==    by 0x5595EB1: uv_run (core.c:212)
==8543==    by 0x559500C: ??? (in /usr/src/rust/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so)
==8543==  Address 0x6b89f40 is 2,720 bytes inside a block of size 3,632 free'd
==8543==    at 0x4C282E0: free (vg_replace_malloc.c:366)
==8543==    by 0x55813E6: rust_task::cleanup_after_turn() (rust_task.cpp:561)
==8543==    by 0x557DED4: rust_sched_loop::activate(rust_task*) (rust_sched_loop.cpp:47)
==8543==    by 0x557E020: rust_sched_loop::run_single_turn() (rust_sched_loop.cpp:230)
==8543==    by 0x557F704: rust_sched_driver::start_main_loop() (rust_sched_driver.cpp:28)
==8543==    by 0x5578BB9: rust_thread_start(void*) (rust_thread.cpp:25)
==8543==    by 0x6413EFB: start_thread (pthread_create.c:304)
==8543==    by 0x5ABE59C: clone (clone.S:112)
==8543== 
==8543== Invalid read of size 4
==8543==    at 0x559FB97: ev_feed_event (ev.c:902)
==8543==    by 0x55A3851: ev_run (ev.c:924)
==8543==    by 0x5595EB1: uv_run (core.c:212)
==8543==    by 0x559500C: ??? (in /usr/src/rust/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so)
==8543==  Address 0x6b89f3c is 2,716 bytes inside a block of size 3,632 free'd
==8543==    at 0x4C282E0: free (vg_replace_malloc.c:366)
==8543==    by 0x55813E6: rust_task::cleanup_after_turn() (rust_task.cpp:561)
==8543==    by 0x557DED4: rust_sched_loop::activate(rust_task*) (rust_sched_loop.cpp:47)
==8543==    by 0x557E020: rust_sched_loop::run_single_turn() (rust_sched_loop.cpp:230)
==8543==    by 0x557F704: rust_sched_driver::start_main_loop() (rust_sched_driver.cpp:28)
==8543==    by 0x5578BB9: rust_thread_start(void*) (rust_thread.cpp:25)
==8543==    by 0x6413EFB: start_thread (pthread_create.c:304)
==8543==    by 0x5ABE59C: clone (clone.S:112)
==8543== 
==8543== Invalid read of size 4
==8543==    at 0x559FBAD: ev_feed_event (ev.c:906)
==8543==    by 0x55A3851: ev_run (ev.c:924)
==8543==    by 0x5595EB1: uv_run (core.c:212)
==8543==    by 0x559500C: ??? (in /usr/src/rust/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so)
==8543==  Address 0x219b0bac is not stack'd, malloc'd or (recently) free'd
==8543== 
==8543== 
==8543== Process terminating with default action of signal 11 (SIGSEGV)
==8543==  Access not within mapped region at address 0x219B0BAC
==8543==    at 0x559FBAD: ev_feed_event (ev.c:906)
==8543==    by 0x55A3851: ev_run (ev.c:924)
==8543==    by 0x5595EB1: uv_run (core.c:212)
==8543==    by 0x559500C: ??? (in /usr/src/rust/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so)
==8543==  If you believe this happened as a result of a stack
==8543==  overflow in your program's main thread (unlikely but
==8543==  possible), you can try to increase the size of the
==8543==  main thread stack using the --main-stacksize= flag.
==8543==  The main thread stack size used in this run was 16777216.
make: *** [check-stage2-T-x86_64-unknown-linux-gnu-H-x86_64-unknown-linux-gnu-std-dummy] Killed
@alexrp
Copy link
Author

alexrp commented Aug 6, 2012

This testing was done on a Ubuntu 11.10 system. After upgrading to 12.04, make check passes. I haven't really checked whether it was something on the 11.10 system causing the issue or if it was fixed in master, but either way, it's gone. So, closing this.

@alexrp alexrp closed this as completed Aug 6, 2012
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Oct 29, 2018
Should make clippy tests green again on rust-toolstate

Changes:
````
compiletest: clean rmeta data (from "cargo check") before running compiletest.
dependencies: bump compiletest-rs from git to 0.3.16
UI test cleanup: Extract explicit_counter_loop tests
UI test cleanup: Extract unnecessary_operation tests
appveyor: use rustc nightly instead of master
pin compiletest dependency to git version (12c980f47971b5ba6beb7cb2ffebf8b32f6766ea) while we are waiting for a new release
rustup: fix build with rustc 1.31.0-nightly (cae6efc 2018-10-27)
Disable rust master toolchain build temporarily
Don't expand macro in or_fun_call suggestion
Don't expand macro in single_match suggestion
Don't expand macro in identity_conversion suggestion
slightly simplify integration tests
simplify ci base-tests
fix: correctly reconstruct raw strings
fix: extra semicolon, only create callsite once
Fix string_lit_as_bytes lint for macros
travis: work around temporary test failure due to rustc crashing on hyper.
ci: allow all branches except trying.tmp and staging.tmp to be built
Move in_macro check
Use BasicBlockData::terminator
Refactor
Use lint_root
Implement visit_basic_block_data
update_references indexing_slicing
Run update_lints
Add redundant_clone lint
Revert "new_ret_no_self: add sample from rust-lang#3313 to Known Problems section."
Add tests for more than one level of reference
Add test case for `mem::discriminant` inside a macro
Add `Applicability`
Add lint for calling `mem::discriminant` on a non-enum type
Check existential types in `use_self`
Disable arithmetic lints in constant items
Fix warnings introduced by rust-lang#3349
new_ret_no_self added test cases
Replace remaining `krate.span` with `DUMMY_SP`
Use DUMMY_SP in multiple_crate_versions
Some fixes for wildcard_dependencies
Run util/update_lints.py
Minor changes on clippy_lints/src/wildcard_dependencies.rs
Lint for wildcard dependencies in Cargo.toml
Don't emit `new_without_default_derive` if an impl of Default exists
Fix inspector pass documentation
Add branch configuration to appveyor.yml
Setup bors
new_ret_no_self added test cases
new_ret_no_self walk return type to check for self
Update `ui/for_loop` test output
Check for known array length in `needless_range_loop`
new_ret_no_self correct false positive on raw pointer return types
new_ret_no_self correct linting of tuple return types
out_of_bounds_indexing improved reporting of out of bounds value
out_of_bounds_indexing refactoring
OUT_OF_BOUNDS_INDEXING fix rust-lang#3102 false negative
````
bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
 Only put `{` on a newline in a match arm where necessary
RalfJung pushed a commit to RalfJung/rust that referenced this issue Oct 6, 2023
RalfJung pushed a commit to RalfJung/rust that referenced this issue Oct 7, 2023
celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Upgrades the Rust toolchain to `nightly-2024-03-21`. The relevant
changes in Rust are:
* rust-lang#122480
* rust-lang#122748
* rust-lang/cargo#12783

I wasn't confident that our regression testing could detect differences
in the file paths being generated with the new logic, so I added code
similar to the following just to check they were equivalent:
```rust
             let base_filename = tcx.output_filenames(()).output_path(OutputType::Object);
+            let binding = tcx.output_filenames(()).path(OutputType::Object);
+            let base_filename2 = binding.as_path();
+            assert_eq!(base_filename, base_filename2);
```
Note that this was done for each instance where we used `output_path`,
and completed regression testing with the previous toolchain version. I
also checked manually the instance where we generate a `.dot` graph for
debug purposes following the instructions
[here](https://model-checking.github.io/kani/cheat-sheets.html?highlight=dot#debug)
(a `libmain.dot` file was generated for the `main.rs` in one of my
projects).

---------

Co-authored-by: Celina G. Val <celinval@amazon.com>
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