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 in rustc with --time-passes due to binding generically to unit #1005

Closed
pcwalton opened this issue Oct 5, 2011 · 1 comment
Closed
Labels
I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

Comments

@pcwalton
Copy link
Contributor

pcwalton commented Oct 5, 2011

When we create a thunk via bind from a function that returns a unit type, and pass that thunk to a function that expects a generic thunk of type fn() -> T, we segfault when calling the thunks in DPS style.

I'm going to add a time_unit hack that works around this for now Switching time_unit to time causes the segfault.

@marijnh
Copy link
Contributor

marijnh commented Oct 6, 2011

We can remove commit 100e026 after the next snapshot.

marijnh added a commit that referenced this issue Oct 6, 2011
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
* Move custom handler to preserve nvvm

* Add test

* fix

* fix llvm tests

* fix tests
coastalwhite pushed a commit to coastalwhite/rust that referenced this issue Aug 5, 2023
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
* Documentation: Workarounds (new section)

* Update docs/src/workarounds.md

Co-authored-by: Zyad Hassan <88045115+zhassan-aws@users.noreply.github.com>

Co-authored-by: Zyad Hassan <88045115+zhassan-aws@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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