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

Create an abort mechanism that can abort the runtime quickly closer to the allocation failure #682

Open
Devika-Tantry opened this issue Jun 22, 2021 · 1 comment

Comments

@Devika-Tantry
Copy link
Contributor

Devika-Tantry commented Jun 22, 2021

For example, during the Malloc, if any allocation fails, we are printing the message here and continuing with other statements. This may lead to a segmentation fault in succeeding code where we try to access this memory that is not allocated.
We should create a mechanism to abort the runtime quickly as we get to know about allocation failure to avoid other segmentation faults.
@rajsite suggestion in #681 : To use the C abort function.

@rajsite
Copy link
Member

rajsite commented Jun 22, 2021

Related to #521

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants