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

SIGXX should be removed from the calling process's signal mask, when catched signal exceptions ? #8

Open
blocky2019 opened this issue Apr 8, 2020 · 1 comment

Comments

@blocky2019
Copy link

blocky2019 commented Apr 8, 2020

`
int ut_example()
{

    e4c_using_context(E4C_TRUE) {
    int * pointer = NULL;
    try {
        int oops = *pointer;
    }
    catch (BadPointerException) {
        printf("No problem ;-)");
        fflush(stdout);
    }
}

}

int main()
{

while (true)
{
    ut_example();
    sleep(5);
}

}
`

Output:
No problem ;-)
Segmentation fault (core dumped)

@blocky2019
Copy link
Author

FIX:
Add a line ' sigrelse(signal_number); ' in function '_e4c_library_handle_signal' (e4c.c)

@blocky2019 blocky2019 changed the title SIGXX should be removed from the calling process's signal mask, when catch signal exceptions ? SIGXX should be removed from the calling process's signal mask, when catched signal exceptions ? Apr 8, 2020
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

1 participant