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

Segfault from incorrect capture #4679

Closed
brson opened this issue Jan 30, 2013 · 2 comments
Closed

Segfault from incorrect capture #4679

brson opened this issue Jan 30, 2013 · 2 comments
Assignees
Labels
A-lifetimes Area: Lifetimes / regions A-type-system Area: Type system I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Milestone

Comments

@brson
Copy link
Contributor

brson commented Jan 30, 2013

I've hit this several times recently.

use core::pipes::*;

fn main() {
    let (po, ch) = stream();
    let ch = SharedChan(ch);

    for 100.times {
        do task::spawn {
            // ch should not be copyable
            ch.send(());
        }
    }
}
@nikomatsakis
Copy link
Contributor

this is fixed on my branch

@ghost ghost assigned nikomatsakis Feb 1, 2013
@nikomatsakis
Copy link
Contributor

This no longer compiles.

bors added a commit to rust-lang-ci/rust that referenced this issue May 2, 2020
…rdering, r=phansch

Add lint to detect usage of invalid atomic ordering

Detect usage of invalid atomic ordering modes such as `Ordering::{Release, AcqRel}` in atomic loads and `Ordering::{Acquire, AcqRel}` in atomic stores.

Fixes rust-lang#4679

changelog: Add lint [`invalid_atomic_ordering`]
bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
…ang#4679)

* Add arch name to archive files created in the upload workflow

* Fix arch names in matrix.build key to include arch name as well
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lifetimes Area: Lifetimes / regions A-type-system Area: Type system I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Projects
None yet
Development

No branches or pull requests

2 participants