]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoMany small changes to clean up code.
Vytautas Astrauskas [Sun, 26 Apr 2020 22:52:45 +0000 (15:52 -0700)]
Many small changes to clean up code.

4 years agoRename global tls dtor to thread dtor.
Vytautas Astrauskas [Sun, 26 Apr 2020 22:52:01 +0000 (15:52 -0700)]
Rename global tls dtor to thread dtor.

4 years agoMove prctl test to the same file as other libc tests.
Vytautas Astrauskas [Sun, 26 Apr 2020 21:56:31 +0000 (14:56 -0700)]
Move prctl test to the same file as other libc tests.

4 years agoDelete a duplicate test.
Vytautas Astrauskas [Sun, 26 Apr 2020 21:44:59 +0000 (14:44 -0700)]
Delete a duplicate test.

4 years agoImprove comments.
Vytautas Astrauskas [Sun, 26 Apr 2020 21:42:07 +0000 (14:42 -0700)]
Improve comments.

4 years agoAdded a test that joining main is UB.
Vytautas Astrauskas [Sun, 26 Apr 2020 21:24:48 +0000 (14:24 -0700)]
Added a test that joining main is UB.

4 years agoImprove Debug formatting of the thread name.
Vytautas Astrauskas [Fri, 24 Apr 2020 23:47:18 +0000 (16:47 -0700)]
Improve Debug formatting of the thread name.

4 years agoMove copying of the thread name to the client side.
Vytautas Astrauskas [Fri, 24 Apr 2020 23:46:51 +0000 (16:46 -0700)]
Move copying of the thread name to the client side.

4 years agoUnify TLS dtors; move stepping outside.
Vytautas Astrauskas [Fri, 24 Apr 2020 22:16:24 +0000 (15:16 -0700)]
Unify TLS dtors; move stepping outside.

4 years agoChange the test not to rely on internals.
Vytautas Astrauskas [Tue, 21 Apr 2020 00:23:51 +0000 (17:23 -0700)]
Change the test not to rely on internals.

4 years agoAdd an explanatory comment to the test.
Vytautas Astrauskas [Tue, 21 Apr 2020 00:13:22 +0000 (17:13 -0700)]
Add an explanatory comment to the test.

4 years agoIgnore prctl test on MacOS because it does not support it.
Vytautas Astrauskas [Tue, 21 Apr 2020 00:10:25 +0000 (17:10 -0700)]
Ignore prctl test on MacOS because it does not support it.

4 years agoMake multiple threads to try to join a thread while it is still running.
Vytautas Astrauskas [Tue, 21 Apr 2020 00:02:43 +0000 (17:02 -0700)]
Make multiple threads to try to join a thread while it is still running.

4 years agoClarify FIXME.
Vytautas Astrauskas [Mon, 20 Apr 2020 23:57:30 +0000 (16:57 -0700)]
Clarify FIXME.

4 years agoCheck prctl argument types and fix the test.
Vytautas Astrauskas [Mon, 20 Apr 2020 23:49:27 +0000 (16:49 -0700)]
Check prctl argument types and fix the test.

4 years agoClarify test comments.
Vytautas Astrauskas [Mon, 20 Apr 2020 20:23:11 +0000 (13:23 -0700)]
Clarify test comments.

4 years agoFix the test annotation.
Vytautas Astrauskas [Mon, 20 Apr 2020 20:22:51 +0000 (13:22 -0700)]
Fix the test annotation.

4 years agoMake the main thread detached.
Vytautas Astrauskas [Mon, 20 Apr 2020 20:22:28 +0000 (13:22 -0700)]
Make the main thread detached.

4 years agoFix merge error.
Vytautas Astrauskas [Mon, 20 Apr 2020 18:53:19 +0000 (11:53 -0700)]
Fix merge error.

4 years agoPrint the thread name in Debug.
Vytautas Astrauskas [Mon, 20 Apr 2020 04:21:22 +0000 (21:21 -0700)]
Print the thread name in Debug.

4 years agoSmall style fix.
Vytautas Astrauskas [Mon, 20 Apr 2020 04:03:23 +0000 (21:03 -0700)]
Small style fix.

4 years agoClarify comments about TLS destructor handling in Windows, add a test for TLS destruc...
Vytautas Astrauskas [Mon, 20 Apr 2020 03:52:53 +0000 (20:52 -0700)]
Clarify comments about TLS destructor handling in Windows, add a test for TLS destructors.

4 years agoTrack if a thread was already joined.
Vytautas Astrauskas [Sun, 19 Apr 2020 23:43:40 +0000 (16:43 -0700)]
Track if a thread was already joined.

4 years agoAdd more concurrency tests.
Vytautas Astrauskas [Sun, 19 Apr 2020 23:42:58 +0000 (16:42 -0700)]
Add more concurrency tests.

4 years agoFix how a pthread_create function argument is constructed.
Vytautas Astrauskas [Sun, 19 Apr 2020 22:23:30 +0000 (15:23 -0700)]
Fix how a pthread_create function argument is constructed.

4 years agoImprove concurrency tests.
Vytautas Astrauskas [Sun, 19 Apr 2020 21:22:55 +0000 (14:22 -0700)]
Improve concurrency tests.

4 years agoMany small changes to thread management.
Vytautas Astrauskas [Sun, 19 Apr 2020 21:21:18 +0000 (14:21 -0700)]
Many small changes to thread management.

4 years agoImprove prctl, add a test.
Vytautas Astrauskas [Sun, 19 Apr 2020 21:18:30 +0000 (14:18 -0700)]
Improve prctl, add a test.

4 years agoChange the warning message.
Vytautas Astrauskas [Sun, 19 Apr 2020 21:01:56 +0000 (14:01 -0700)]
Change the warning message.

4 years agoMove prctl to Linux specific shims.
Vytautas Astrauskas [Sun, 19 Apr 2020 21:01:12 +0000 (14:01 -0700)]
Move prctl to Linux specific shims.

4 years agoRename MacOS set global dtor function.
Vytautas Astrauskas [Sun, 19 Apr 2020 19:24:46 +0000 (12:24 -0700)]
Rename MacOS set global dtor function.

4 years agoUpdate a comment in README about what concurrency checks we support.
Vytautas Astrauskas [Sun, 19 Apr 2020 19:22:33 +0000 (12:22 -0700)]
Update a comment in README about what concurrency checks we support.

4 years agoAdd concurrency tests.
Vytautas Astrauskas [Sat, 18 Apr 2020 19:25:11 +0000 (12:25 -0700)]
Add concurrency tests.

4 years agoImplement thread::yield_now.
Vytautas Astrauskas [Sat, 18 Apr 2020 22:39:53 +0000 (15:39 -0700)]
Implement thread::yield_now.

4 years agoAdd a comment explaining global destructors on MacOS.
Vytautas Astrauskas [Fri, 17 Apr 2020 22:38:23 +0000 (15:38 -0700)]
Add a comment explaining global destructors on MacOS.

4 years agoFix support for MacOS.
Vytautas Astrauskas [Fri, 17 Apr 2020 02:40:02 +0000 (19:40 -0700)]
Fix support for MacOS.

4 years agoRename threads to thread to match the Rust standard library.
Vytautas Astrauskas [Thu, 16 Apr 2020 20:52:14 +0000 (13:52 -0700)]
Rename threads to thread to match the Rust standard library.

4 years agoAdd a missing newline.
Vytautas Astrauskas [Thu, 16 Apr 2020 20:39:21 +0000 (13:39 -0700)]
Add a missing newline.

4 years agoCleanup the implementation of adjust_global_const.
Vytautas Astrauskas [Thu, 16 Apr 2020 20:32:40 +0000 (13:32 -0700)]
Cleanup the implementation of adjust_global_const.

4 years agoFix typo in a comment.
Vytautas Astrauskas [Thu, 16 Apr 2020 19:26:32 +0000 (12:26 -0700)]
Fix typo in a comment.

4 years agoMake an assert message consistent with other asserts.
Vytautas Astrauskas [Thu, 16 Apr 2020 19:22:58 +0000 (12:22 -0700)]
Make an assert message consistent with other asserts.

4 years agoFix imports.
Vytautas Astrauskas [Thu, 16 Apr 2020 19:22:30 +0000 (12:22 -0700)]
Fix imports.

4 years agoAdd a missing newline in the test.
Vytautas Astrauskas [Thu, 16 Apr 2020 19:21:01 +0000 (12:21 -0700)]
Add a missing newline in the test.

4 years agoRename eval_maybe_thread_local_static_const to adjust_global_const.
Vytautas Astrauskas [Thu, 16 Apr 2020 15:34:30 +0000 (08:34 -0700)]
Rename eval_maybe_thread_local_static_const to adjust_global_const.

4 years agoAddress some of the reviewers comments.
Vytautas Astrauskas [Thu, 16 Apr 2020 04:25:12 +0000 (21:25 -0700)]
Address some of the reviewers comments.

4 years agoGenerate thread local allocations in eval_maybe_thread_local_static_const.
Vytautas Astrauskas [Wed, 15 Apr 2020 21:34:34 +0000 (14:34 -0700)]
Generate thread local allocations in eval_maybe_thread_local_static_const.

4 years agoGenerate fresh allocation ids for thread locals in eval_maybe_thread_local_static_const.
Vytautas Astrauskas [Wed, 15 Apr 2020 00:21:52 +0000 (17:21 -0700)]
Generate fresh allocation ids for thread locals in eval_maybe_thread_local_static_const.

4 years agoSmall refactoring in pthread sync: extract common functionallity to separate functions.
Vytautas Astrauskas [Thu, 9 Apr 2020 20:37:38 +0000 (13:37 -0700)]
Small refactoring in pthread sync: extract common functionallity to separate functions.

4 years agoRename ThreadSet to ThreadManager.
Vytautas Astrauskas [Thu, 9 Apr 2020 19:06:33 +0000 (12:06 -0700)]
Rename ThreadSet to ThreadManager.

4 years agoRebase on PR 1157.
Vytautas Astrauskas [Wed, 8 Apr 2020 03:20:41 +0000 (20:20 -0700)]
Rebase on PR 1157.

4 years agoFix pthread_self.
Vytautas Astrauskas [Mon, 6 Apr 2020 23:30:30 +0000 (16:30 -0700)]
Fix pthread_self.

4 years agoRustfmt the test.
Vytautas Astrauskas [Mon, 6 Apr 2020 23:12:25 +0000 (16:12 -0700)]
Rustfmt the test.

4 years agoStore the thread name.
Vytautas Astrauskas [Mon, 6 Apr 2020 23:12:13 +0000 (16:12 -0700)]
Store the thread name.

4 years agoFix comments in TLS.
Vytautas Astrauskas [Mon, 6 Apr 2020 21:41:05 +0000 (14:41 -0700)]
Fix comments in TLS.

4 years agoReport that we do not support foreign thread local statics.
Vytautas Astrauskas [Mon, 6 Apr 2020 21:00:45 +0000 (14:00 -0700)]
Report that we do not support foreign thread local statics.

4 years agoMove pthread_create and related shims to a separate file.
Vytautas Astrauskas [Mon, 6 Apr 2020 20:44:47 +0000 (13:44 -0700)]
Move pthread_create and related shims to a separate file.

4 years agoFix the problem of sending pointed to thread local statics. Add a regression test.
Vytautas Astrauskas [Fri, 3 Apr 2020 23:09:42 +0000 (16:09 -0700)]
Fix the problem of sending pointed to thread local statics. Add a regression test.

4 years agoAdd a test for thread locals.
Vytautas Astrauskas [Wed, 1 Apr 2020 23:28:53 +0000 (16:28 -0700)]
Add a test for thread locals.

4 years agoUpdate to support the updated API.
Vytautas Astrauskas [Wed, 1 Apr 2020 23:28:33 +0000 (16:28 -0700)]
Update to support the updated API.

4 years agoAdd a warning that Miri does not check for data-races.
Vytautas Astrauskas [Wed, 1 Apr 2020 23:26:41 +0000 (16:26 -0700)]
Add a warning that Miri does not check for data-races.

4 years agoImplement basic support for concurrency (Linux only).
Vytautas Astrauskas [Mon, 16 Mar 2020 23:48:44 +0000 (16:48 -0700)]
Implement basic support for concurrency (Linux only).

4 years agoAuto merge of #1373 - RalfJung:test-rename, r=RalfJung
bors [Mon, 27 Apr 2020 10:54:57 +0000 (10:54 +0000)]
Auto merge of #1373 - RalfJung:test-rename, r=RalfJung

rename tests: undefined -> uninit

4 years agoAuto merge of #1370 - samrat:add-scalar-size-test, r=RalfJung
bors [Mon, 27 Apr 2020 10:33:29 +0000 (10:33 +0000)]
Auto merge of #1370 - samrat:add-scalar-size-test, r=RalfJung

Add test to verify that argument size mismatch throws UB

Also, bump up `rust-version`

Closes #1355

4 years agorename tests: undefined -> uninit
Ralf Jung [Mon, 27 Apr 2020 10:27:56 +0000 (12:27 +0200)]
rename tests: undefined -> uninit

4 years agoReplace error-pattern with annotation; remove unreachable line
Samrat Man Singh [Mon, 27 Apr 2020 10:04:42 +0000 (15:34 +0530)]
Replace error-pattern with annotation; remove unreachable line

4 years agoAuto merge of #1354 - divergentdave:dump-alloc-on-undef-read, r=RalfJung
bors [Mon, 27 Apr 2020 09:33:30 +0000 (09:33 +0000)]
Auto merge of #1354 - divergentdave:dump-alloc-on-undef-read, r=RalfJung

Print hex dump of alloc on reading undef bytes

Here's a small addition I made locally to the UB diagnostics, in case you're interested in it. This PR calls `dump_alloc()` on the relevant allocation if Miri fails on UB due to reading undefined bytes. This came in handy when diagnosing such an issue in a large program using unsafe Rust, in part because it wasn't deterministic enough to use `-Zmiri-track-alloc-id=`. If you'd like to put this behind another -Z flag, let me know.

4 years agoFix shim_arg_size test for 32-bit machines
Samrat Man Singh [Mon, 27 Apr 2020 04:30:35 +0000 (10:00 +0530)]
Fix shim_arg_size test for 32-bit machines

4 years agoAdd test to verify arg size mismatch throws UB
Samrat Man Singh [Mon, 27 Apr 2020 04:05:19 +0000 (09:35 +0530)]
Add test to verify arg size mismatch throws UB

Also: bump up `rust-version`

4 years agoReview comments
David Cook [Mon, 27 Apr 2020 03:13:36 +0000 (22:13 -0500)]
Review comments

4 years agoAuto merge of #1368 - Robbepop:add-new-trophy-for-inks-lazyarray, r=RalfJung
bors [Sat, 25 Apr 2020 21:19:56 +0000 (21:19 +0000)]
Auto merge of #1368 - Robbepop:add-new-trophy-for-inks-lazyarray, r=RalfJung

Add miri trophy for LazyArray::swap (ink! PR)

Details to the found in https://github.com/rust-lang/miri/issues/1364.
Note that this was not a found in a `master` or production release of ink!, however without analysing the code via `miri` this could have potentially happened.

4 years agoUpdate README.md
Hero Bird [Sat, 25 Apr 2020 17:42:48 +0000 (19:42 +0200)]
Update README.md

4 years agoAdd miri trophy for LazyArray::swap (ink! PR)
Hero Bird [Sat, 25 Apr 2020 12:58:20 +0000 (14:58 +0200)]
Add miri trophy for LazyArray::swap (ink! PR)

Details to the found in https://github.com/rust-lang/miri/issues/1364.
Note that this was not a found in a `master` or production release of ink!, however without analysing the code via `miri` this could have potentially happened.

4 years agoAuto merge of #1366 - RalfJung:rustc-exit, r=RalfJung
bors [Sat, 25 Apr 2020 09:17:04 +0000 (09:17 +0000)]
Auto merge of #1366 - RalfJung:rustc-exit, r=RalfJung

fix exit code on rustc errors

Fixes https://github.com/rust-lang/miri/issues/1352

4 years agomake sure we do not discard information on the Ok exit side
Ralf Jung [Sat, 25 Apr 2020 09:16:03 +0000 (11:16 +0200)]
make sure we do not discard information on the Ok exit side

4 years agofix exit code on rustc errors
Ralf Jung [Sat, 25 Apr 2020 09:12:50 +0000 (11:12 +0200)]
fix exit code on rustc errors

4 years agoAdd test to exercise InvalidUndefBytes
David Cook [Fri, 24 Apr 2020 01:00:25 +0000 (20:00 -0500)]
Add test to exercise InvalidUndefBytes

4 years agoAdd message before dumping alloc
David Cook [Fri, 24 Apr 2020 01:00:09 +0000 (20:00 -0500)]
Add message before dumping alloc

4 years agoAuto merge of #1361 - RalfJung:rustup, r=RalfJung
bors [Thu, 23 Apr 2020 22:54:29 +0000 (22:54 +0000)]
Auto merge of #1361 - RalfJung:rustup, r=RalfJung

rustup

4 years agorustup
Ralf Jung [Thu, 23 Apr 2020 22:52:43 +0000 (00:52 +0200)]
rustup

4 years agoAuto merge of #1358 - dtolnay:ci, r=RalfJung
bors [Thu, 23 Apr 2020 17:44:25 +0000 (17:44 +0000)]
Auto merge of #1358 - dtolnay:ci, r=RalfJung

Disable interactive prompts in CI

Closes #1357.

4 years agoKeep MiriCommand out of ask_to_run function
David Tolnay [Thu, 23 Apr 2020 17:27:38 +0000 (10:27 -0700)]
Keep MiriCommand out of ask_to_run function

4 years agoAuto merge of #1359 - RalfJung:cargo-bin-exe, r=RalfJung
bors [Thu, 23 Apr 2020 17:23:05 +0000 (17:23 +0000)]
Auto merge of #1359 - RalfJung:cargo-bin-exe, r=RalfJung

test suite: rely on CARGO_BIN_EXE_ env vars

Just read about this in the 1.43 release notes. :)

4 years agotest suite: rely on CARGO_BIN_EXE_ env vars to find Miri binary
Ralf Jung [Thu, 23 Apr 2020 17:20:09 +0000 (19:20 +0200)]
test suite: rely on CARGO_BIN_EXE_ env vars to find Miri binary

4 years agoPreserve consistent output whether or not CI is set
David Tolnay [Thu, 23 Apr 2020 17:12:48 +0000 (10:12 -0700)]
Preserve consistent output whether or not CI is set

4 years agoRemove unneeded setup step from CI instructions in readme
David Tolnay [Thu, 23 Apr 2020 16:12:05 +0000 (09:12 -0700)]
Remove unneeded setup step from CI instructions in readme

4 years agoDisable interactive prompts in CI
David Tolnay [Thu, 23 Apr 2020 15:46:49 +0000 (08:46 -0700)]
Disable interactive prompts in CI

4 years agoAuto merge of #1356 - brson:trophy, r=RalfJung
bors [Thu, 23 Apr 2020 09:19:50 +0000 (09:19 +0000)]
Auto merge of #1356 - brson:trophy, r=RalfJung

Add ryu and tikv to trophy case

4 years agoUpdate README.md
Brian Anderson [Thu, 23 Apr 2020 08:46:36 +0000 (02:46 -0600)]
Update README.md

Co-Authored-By: Ralf Jung <post@ralfj.de>
4 years agoAdd ryu and tikv to trophy case
Brian Anderson [Thu, 23 Apr 2020 02:37:58 +0000 (02:37 +0000)]
Add ryu and tikv to trophy case

4 years agoReorder output
David Cook [Wed, 22 Apr 2020 22:41:06 +0000 (17:41 -0500)]
Reorder output

4 years agoAuto merge of #1348 - RalfJung:raw-addr-of-align, r=RalfJung
bors [Wed, 22 Apr 2020 21:44:14 +0000 (21:44 +0000)]
Auto merge of #1348 - RalfJung:raw-addr-of-align, r=RalfJung

Stacked Borrows: alignment does not matter

Fixes https://github.com/rust-lang/miri/issues/1339
Requires https://github.com/rust-lang/rust/pull/71280

4 years agorustup
Ralf Jung [Wed, 22 Apr 2020 21:32:28 +0000 (23:32 +0200)]
rustup

4 years agoStacked Borrows: alignment does not matter
Ralf Jung [Sat, 18 Apr 2020 11:56:09 +0000 (13:56 +0200)]
Stacked Borrows: alignment does not matter

4 years agoAuto merge of #1353 - divergentdave:file-set-len, r=RalfJung
bors [Wed, 22 Apr 2020 21:10:01 +0000 (21:10 +0000)]
Auto merge of #1353 - divergentdave:file-set-len, r=RalfJung

Implement ftruncate64/ftruncate for File::set_len

This adds a shim for `ftruncate64` (on Linux) or `ftruncate` (on macOS) to enable support for `File::set_len`, and includes a test.

4 years agoAdd comment
David Cook [Wed, 22 Apr 2020 12:09:20 +0000 (07:09 -0500)]
Add comment

4 years agoPrint hex dump of alloc on reading undef bytes
David Cook [Wed, 22 Apr 2020 02:28:22 +0000 (21:28 -0500)]
Print hex dump of alloc on reading undef bytes

4 years agoImplement ftruncate64/ftruncate for File::set_len
David Cook [Wed, 22 Apr 2020 02:17:54 +0000 (21:17 -0500)]
Implement ftruncate64/ftruncate for File::set_len

4 years agoAuto merge of #1335 - vakaras:add-threads-noop, r=RalfJung
bors [Mon, 20 Apr 2020 08:39:29 +0000 (08:39 +0000)]
Auto merge of #1335 - vakaras:add-threads-noop, r=RalfJung

Move the stack to the evaluator. (no-op PR for 70598)

The changes to Miri to make it to compile with Rustc PR https://github.com/rust-lang/rust/pull/70598.

4 years agoadjust for asm -> llvm_asm rename
Ralf Jung [Mon, 20 Apr 2020 08:38:38 +0000 (10:38 +0200)]
adjust for asm -> llvm_asm rename

4 years agoadjust for Weak::as_raw -> as_ptr rename
Ralf Jung [Mon, 20 Apr 2020 08:04:17 +0000 (10:04 +0200)]
adjust for Weak::as_raw -> as_ptr rename