On Mon, 25 Jul 2022 19:29:52 GMT, Harold Seigel <hsei...@openjdk.org> wrote:

> I ran the test for JDK-8279878 after removing both this fix and the fix for 
> JDK-8279878 and the test still passed. So I don't think its failure was 
> related to this issue. This fix prevents the output from occurring more than 
> once. It does not prevent it from occurring at all.
> 
> The JVM was reporting that it found an unexpected handler for SIG_IGN. Is it 
> possible that such a handler is no longer being defined?
> 
> Note that the JVM only checks for unexpected signal handlers if -Xcheck:jni 
> or -XX:+CheckJNICall is specified.

Sure .. we updated the test to ignore these warnings ... but I was hoping that 
maybe your changes would obsolete the need to ignore them. However I actually 
suspect it won't help if it just minimises them rather than eliminates them.

It stems from the GTK library (the standard library for Gnome desktop apps on 
Linux) calling 
(SIGPIPE, SIG_IGN) during initialization

Their reasons are here : https://docs.gtk.org/gtk3/func.init.html

So the VM warnings are something of a mild annoyance that we've worked around 
in this test but it never made sense to me what this has to do with JNI ?

-------------

PR: https://git.openjdk.org/jdk/pull/9631

Reply via email to