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

Infinite loop with memory allocation on compiling function returning !noreturn. #3263

Closed
vi opened this issue Sep 20, 2019 · 1 comment
Closed
Labels
bug Observed behavior contradicts documented or intended behavior stage1 The process of building from source via WebAssembly and the C backend.
Milestone

Comments

@vi
Copy link

vi commented Sep 20, 2019

$ cat q.zig 
pub fn main() !noreturn {
    return error.Eee;
}
$ ulimit -v 1000000
$ zig build-exe q.zig |& head -n 10
allocation failed���cT��c ��[T���cT X�c�H�c����`�cTx�cT��cT��cT��cT�a�cTP�cT��cT��cT@�cTa�`8�c -�cT��cTVv'YT������������cT���cT@W�[T`�cT�cT�AA��/�cT���cT@W�[T`�cT�cT�AA��1�cT���cT@W�[T`�cT�cT�AA� 3�cT���cT@W�[T`�cT�cT�AA��4�cT���cT@W�[T`��cT�cT�AA� 7�cT���cT@W�[T`cT�cT�AA��8�cT���cT@W�[T`�cT�cT�AA��c���cT	���cT(�cT���cT����)�cT���cTVv'YT�a`
$ zig version
0.4.0+c6e77f24
@andrewrk andrewrk added this to the 0.6.0 milestone Sep 20, 2019
@andrewrk andrewrk added bug Observed behavior contradicts documented or intended behavior stage1 The process of building from source via WebAssembly and the C backend. labels Sep 20, 2019
@andrewrk andrewrk modified the milestones: 0.6.0, 0.7.0 Feb 13, 2020
@andrewrk andrewrk modified the milestones: 0.7.0, 0.8.0 Aug 13, 2020
@andrewrk andrewrk modified the milestones: 0.8.0, 0.9.0 Nov 6, 2020
@andrewrk andrewrk modified the milestones: 0.9.0, 0.10.0 May 19, 2021
@Vexu
Copy link
Member

Vexu commented Jan 29, 2022

Closing as duplicate of #3461 which has more discussion.

@Vexu Vexu closed this as completed Jan 29, 2022
@andrewrk andrewrk modified the milestones: 0.11.0, 0.10.0 Jan 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior stage1 The process of building from source via WebAssembly and the C backend.
Projects
None yet
Development

No branches or pull requests

3 participants