Skip to content

polycubed: fix segfault on init#114

Merged
frisso merged 2 commits intomasterfrom
pr/fix_segfault_on_init
Apr 23, 2019
Merged

polycubed: fix segfault on init#114
frisso merged 2 commits intomasterfrom
pr/fix_segfault_on_init

Conversation

@mauriciovasquezbernal
Copy link
Copy Markdown
Contributor

When SIGINT was received at initialization time there was segfault because
the handler tried to delete the core and rest server that were not allocated
yet. This commit adds a check to be sure that core and rest server are
allocated when the shutdown handler is invoked.

Solve: #49

When SIGINT was received at initialization time there was segfault because
the handler tried to delete the core and rest server that were not allocated
yet.  This commit adds a check to be sure that core and rest server are
allocated when the shutdown handler is invoked.

Fixes: 0df5d81 ("Initial commit")

Signed-off-by: Mauricio Vasquez B <mauriciovasquezbernal@gmail.com>
Copy link
Copy Markdown
Contributor

@acloudiator acloudiator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@frisso frisso merged commit 9dc6142 into master Apr 23, 2019
@frisso frisso deleted the pr/fix_segfault_on_init branch April 23, 2019 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants