Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-dev] Adding new version of JNA library in orbit
  • From: Muhammad Umair Sair <umair_sair@xxxxxxxxxxx>
  • Date: Tue, 30 Aug 2022 23:29:00 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zyr4+/QsSQPiB+IVLptCUGL7Knj5ymkOem1cjItYW9Y=; b=Wn2AhQcbJisLg6v+ToL3b+OLO5klBo8T962qgbC53B+OB6GCZz3fG+yNfeokyCsUK3OfQhmbHzum0VbNBRRS05aX5RuP7QjstR1QFnMxd0EXD/Mf6tm7BA1o37LQiybqjZ6ExxljAA9xtBWpfNJ1/ukdnlkb9QfYxwRN1VRTqBQPJvkCOiCubfscU05FcUTeElT9sjoTA9Wmd+/3X+uBdI/bCyyILSw4adhTdfYhtPZFhaJM0Ce6WWpwHVR41OulJQ1HgvtV4aQrEPhO6GhDQ6mQUs/dyhTwN7UZy6+T65ZBH1I55rA8amrib5XNgWJUeoctCPOjXaZhabKh9bgOHQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dwqr52VWJjQ4/9qxEAFSlRwSHeqx9MHigfEeFOJ+k0EMHulGNkhek2+G6FgceZjk7qYBofO+ARg/Q0duxOuvCn502UOm+CCktINEPfQzWKeyeosAN/c1DSObejItwIpJlhRrZ0eAC1go2AC9cBFSPoL0b+ZhjZ/SWZ+TuS5Lq+XCIP+Asej3u7BTwCSoYpBp1j3i8ynZ4D0CI7uKETDNUkIEV/Pk1SM4lXf2Z2gHzJEcPnNzLxU2+MeQD6z3v/h3r1zMtTfLcg1HGWn3K5iqNzc9tNTmbdfLAYUVcX4iUg3eOuVPXJV6CQV30KpHdEkyn96IztYUk8FQlGSnawr/+w==
  • Delivered-to: platform-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/platform-dev/>
  • List-help: <mailto:platform-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/platform-dev>, <mailto:platform-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/platform-dev>, <mailto:platform-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels:
  • Thread-index: AQHYvMMxLnHj+YwSf0yZhxqHGutJrQ==
  • Thread-topic: Adding new version of JNA library in orbit

Hi,

I am facing issue on Linux with NativeLibrary. When HTTPS proxy is set, I am getting errors on terminal error stream with consistency from org.eclipse.equinox.internal.security.linux.unlockSecretService(..) and following call in this method gets stuck forever.

            Pointer secretService = fLibSecret.secret_service_get_sync(SecretServiceFlags.SECRET_SERVICE_LOAD_COLLECTIONS,
                        Pointer.NULL, gerror);

On investigation, I found that its a race condition between finalizer and NativeLibrary.getInstance(..). On second time call to get secret-1 library, the object from weak reference is gone/GCed in NativeLibrary.libraries but the NativeLibrary object itself is not finalized/GCed yet, so it gets ref.get()==null and goes for reloading the library which causes following errors in console. The reason is that the older library was not unloaded yet and we loaded it again.

~~~~~~~~~~~~~~~~~~~~~~~~~
(java:3835014): GLib-GObject-WARNING **: 02:47:42.753: cannot register existing type 'SecretService'

(java:3835014): GLib-GObject-WARNING **: 02:47:42.753: cannot add private field to invalid (non-instantiatable) type '<invalid>'

(java:3835014): GLib-GObject-CRITICAL **: 02:47:42.753: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(java:3835014): GLib-GObject-CRITICAL **: 02:47:42.753: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(java:3835014): GLib-GObject-WARNING **: 02:47:42.753: cannot register existing type 'SecretBackend'

(java:3835014): GLib-GObject-CRITICAL **: 02:47:42.753: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed

(java:3835014): GLib-GObject-CRITICAL **: 02:47:42.753: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed

(java:3835014): GLib-CRITICAL **: 02:47:42.753: g_once_init_leave: assertion 'result != 0' failed

(java:3835014): GLib-GObject-CRITICAL **: 02:47:42.753: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
~~~~~~~~~~~~~~~~~~~~~~

I was looking at jna project and they have moved away from using finalizers [1] and it is available is version 5.12.

Can we add latest jna version in orbit for 2022-09?


Thanks,
Umair Sair

Back to the top