Skip to content

poll: Don't log in a signal handler#447

Merged
chrissie-c merged 1 commit intoClusterLabs:masterfrom
chrissie-c:sigsafe
Nov 10, 2021
Merged

poll: Don't log in a signal handler#447
chrissie-c merged 1 commit intoClusterLabs:masterfrom
chrissie-c:sigsafe

Conversation

@chrissie-c
Copy link
Copy Markdown
Contributor

qb_log calls malloc() and probably many other non-signal-safe
functions, so don't call it in the signal handler.

Thanks to Honza for spotting this

Signed-off-by: Christine Caulfield ccaulfie@redhat.com

qb_log calls malloc() and probably many other non-signal-safe
functions, so don't call it in the signal handler.

Thanks to Honza for spotting this

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
Copy link
Copy Markdown
Member

@jfriesse jfriesse left a comment

Choose a reason for hiding this comment

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

ACK from me... not so happy about error not covered but there seems to be no reasonable way to report error so this is probably best we can do.

@chrissie-c
Copy link
Copy Markdown
Contributor Author

Yeah, removing error messages is not really a good thing, but if the alternative is potential hang, we just need to balance things :/

@chrissie-c chrissie-c merged commit d4b49fb into ClusterLabs:master Nov 10, 2021
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this pull request Nov 22, 2021
The most important fix in this release is that we no longer log errors inside
the signal handler in loop_poll.c
This could cause an application hang in some circumstances.

Changelog is as follows:
doxygen2man: print structure descriptions
(ClusterLabs/libqb#443)

Fix pthread returns
(ClusterLabs/libqb#444)

poll: Don't log in a signal handler
(ClusterLabs/libqb#447)

Bump library version for v2.0.4

Implement heap based timer list
(ClusterLabs/libqb#439)

build: Fix undefined pthread reference.
(ClusterLabs/libqb#440)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
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

Successfully merging this pull request may close these issues.

2 participants