8000 ipmi: use SIGIO instead of SIGUSR2 to avoid conflict with JVM by vincentbernat · Pull Request #910 · collectd/collectd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ipmi: use SIGIO instead of SIGUSR2 to avoid conflict with JVM #910

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

Merged
merged 1 commit into from
Jan 26, 2015

Conversation

vincentbernat
Copy link
Contributor

Java uses SIGUSR2 to suspend/resume threads. The OpenIPMI plugins also
need a signal to resume its event loop when setting a timer. They can't
both use the same signal. We ask OpenIPMI to use SIGIO instead.

This should fix #114.

Java uses SIGUSR2 to suspend/resume threads. The OpenIPMI plugins also
need a signal to resume its event loop when setting a timer. They can't
both use the same signal. We ask OpenIPMI to use SIGIO instead.

This should fix collectd#114.
@mfournier mfournier added the Bug A genuine bug label Jan 26, 2015
@mfournier
Copy link

Jeez, @vincentbernat, I imagine this miserable one-line change must have cost you quite a few hours of troubleshooting ! Hats off :-)

Have you already been able to build & run this patch on a system using the ipmi plugin ? I'm wondering about any tricky side effect this might have.

Note: whenever this gets merged, it can (also) go to the collectd-4.10 branch (oldest supported bugfix branch).

@pyr
Copy link
Member
pyr commented Jan 26, 2015

nice find, thanks @vincentbernat 🐼

pyr added a commit that referenced this pull request Jan 26, 2015
ipmi: use SIGIO instead of SIGUSR2 to avoid conflict with JVM
@pyr pyr merged commit be66ae4 into collectd:master Jan 26, 2015
@vincentbernat
Copy link
Contributor Author

@mfournier On our production systems, I am running the workaround I mention in #114 (telling the JVM to use something else) instead. I have also checked with gdb that with our configuration SIGIO is left to SIG_DFL (which is to terminate the program).

I'll try to test the fix on real systems soon.

@octo octo added Fix A pull request fixing a bug and removed Bug A genuine bug labels Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix A pull request fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ipmi in combination with java plugins crashes
4 participants
0