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

Crash when appending to _vec.alloc'ed vector #109

Closed
jyasskin opened this issue Jul 12, 2010 · 1 comment
Closed

Crash when appending to _vec.alloc'ed vector #109

jyasskin opened this issue Jul 12, 2010 · 1 comment

Comments

@jyasskin
Copy link
Contributor

The following code crashes inside of glue$copy$s, I believe when trying to decrement a refcount. The crash goes away if I don't use std._vec.alloc, if I change 'str' to 'int', or if the 'str' isn't a type parameter.

use std;

fn slice[T](vec[T] e) {
  let vec[T] result = std._vec.alloc[T](uint(1));
  result += e;
}

fn main() {
  slice[str](vec("a"));
}
@froystig
Copy link
Contributor

Notify copy glue of dst-initialization and fix _vec.alloc issues in lib and runtime. Closed by 1730d2e.

mbrubeck pushed a commit to mbrubeck/rust that referenced this issue Oct 17, 2011
mbrubeck pushed a commit to mbrubeck/rust that referenced this issue Oct 17, 2011
oli-obk pushed a commit to oli-obk/rust that referenced this issue Jul 19, 2017
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
openbsd: map `si_addr` inside `struct siginfo_t`
kazcw pushed a commit to kazcw/rust that referenced this issue Oct 23, 2018
* avx: _mm256_loadu_pd

* avx: _mm256_storeu_pd

* avx: _mm256_loadu_ps

* avx: _mm256_storeu_ps

* avx: fix _mm256_storeu_pd and _mm256_storeu_ps

* avx: _mm256_loadu_si256

* avx: _mm256_undefined_si256

* avx: _mm256_maskload_pd

* avx: _mm256_maskstore_pd

* Attempt to fix CI (rust-lang#108)

Need to bring codegen units back to only one for now

* [x86] sse4.2 add docs for _SIDD_EQUAL_RANGES (rust-lang#107)

- Add docs for the _SIDD_EQUAL_RANGES mode

* Add _MM_TRANSPOSE4_PS pseudo-macro. (rust-lang#106)

This adds a strange macro, which I've replaced with a function, because it
seems there are not many better alternatives.

Also adds a test, and `#[allow(non_snake_case)]` to `#[simd_test]`.

* Fix i586 tests

* Implement bitwise SSE ops & _mm_cmp*_ss  (rust-lang#103)

* Add _mm_{and,andnot,or,xor}_ps

* Add _mm_cmpeq_ss

* Add _mm_cmplt_ss

* Add _mm_cmple_ss

* Add _mm_cmpgt_ss

* Add _mm_cmpge_ss

* Add _mm_cmpneq_ss

* Add _mm_cmpnlt_ss

* Add _mm_cmpnle_ss

* Add _mm_cmpngt_ss

* Add _mm_cmpnge_ss

* Add _mm_cmpord_ss

* Add _mm_cmpunord_ss

* Fix _mm_{and,andnot,or,xor}_ps tests for i586

LLVM for i586 doesn't seem to generate `andps`, and instead generates 4
`and`s. Similar for the other operations.

* avx: _mm_maskload_pd

* avx: _mm_maskstore_pd

* avx: _mm256_maskload_ps

* avx: _mm256_maskstore_ps

* avx: _mm_maskload_ps, _mm_maskstore_ps

* avx: _mm256_movehdup_ps

* avx: _mm256_moveldup_ps
dlrobertson pushed a commit to dlrobertson/rust that referenced this issue Nov 29, 2018
eddyb pushed a commit to eddyb/rust that referenced this issue Jun 30, 2020
The bug in question was caused by incorrect traversal of the
`rustc::ty::Generics` datastructure, causing index-out-of-bound errors.
Aaron1011 pushed a commit to Aaron1011/rust that referenced this issue Oct 26, 2020
djtech-dev pushed a commit to djtech-dev/rust that referenced this issue Dec 9, 2021
Use std::sync::RwLock to make LLVM target registry access thread-safe.
bjorn3 pushed a commit to bjorn3/rust that referenced this issue Dec 31, 2021
celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
celinval pushed a commit to celinval/rust-dev that referenced this issue Nov 13, 2024
Working on rust-lang#71 (Safety of NonZero)

We are looking for feedback on our proof_for_contract. We have
implemented it for all the data types.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

---------

Co-authored-by: aaluna <[email protected]>
Co-authored-by: aaluna <[email protected]>
Co-authored-by: Carolyn Zech <[email protected]>
Co-authored-by: Zyad Hassan <[email protected]>
This issue was closed.
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

2 participants