Bug 243454 - java/openjdk8 unsatisfied link inotify
Summary: java/openjdk8 unsatisfied link inotify
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-java mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-19 18:00 UTC by bsdbugs_mr
Modified: 2020-02-08 11:59 UTC (History)
9 users (show)

See Also:
bugzilla: maintainer-feedback? (java)


Attachments
Partial log from net/serviio (990 bytes, text/plain)
2020-01-19 18:00 UTC, bsdbugs_mr
no flags Details
puppetserver log (9.66 KB, text/plain)
2020-01-21 18:35 UTC, Fredrik Eriksson
no flags Details
java/openjdk8: Remove broken inotify compatibility (3.28 KB, patch)
2020-02-04 21:13 UTC, Romain Tartière
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description bsdbugs_mr 2020-01-19 18:00:39 UTC
Created attachment 210875 [details]
Partial log from net/serviio

After openjdk8 upgraded: 8.232.09.1_1 -> 8.242.07.1
I got always ~20 seconds running net/serviio crashes with log attached
Comment 1 Fredrik Eriksson 2020-01-21 18:35:07 UTC
Created attachment 210917 [details]
puppetserver log

Same issue with puppetserver, attached is a log of puppetserver attempting to start using openjdk8-8.242.07.1. Puppetserver starts correctly if I downgrade to openjdk-8.232.09.1_1
Comment 2 wolfgang 2020-01-25 16:53:33 UTC
The same problem happens with astro/josm
Comment 3 Markus Graf 2020-01-27 18:31:28 UTC
The same error stops clojurescript development tool 'shadow-cljs' from working.
Comment 4 Romain Tartière freebsd_committer 2020-01-30 02:29:54 UTC
I guess that adding "-Dsun.nio.fs.watchservice=polling" to the java(1) parameters might help.

This property is checked to choose between the openjdk upstream provider and the inotify implementation in this patch:
files/patch-jdk-src-solaris-classes-sun-nio-fs-BsdFileSystem.java
Comment 5 wolfgang 2020-01-30 08:24:49 UTC
I can confirm that the suggestion from Comment #4 fixes the problem for astro/josm
Comment 6 Romain Tartière freebsd_committer 2020-02-04 21:13:45 UTC
Created attachment 211358 [details]
java/openjdk8: Remove broken inotify compatibility

Instead of reverting to a vulnerable version of openjdk8, it might be better to drop the FreeBSD local patches that add the broken "inotify compatibility".
Comment 7 Igor Timkin 2020-02-08 11:59:10 UTC
(In reply to Romain Tartière from comment #4)
Adding "-Dsun.nio.fs.watchservice=polling" fixes the problem for net/serviio.