Date: Wed, 01 Jun 2022 17:29:35 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 264311] java/eclipse Message-ID: <bug-264311-7788-3VSnrrQfVt@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-264311-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-264311-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264311 --- Comment #9 from Patrick Mackinlay <freebsd.68fba@nospam.spacesurfer.com= > --- After a lot of digging I managed to figure out what is the cause of the problem. If you simply create the directories /tmp/SWT-GDBusServer /tmp/SWT-WebExtensionGDBusServer eclipse will run fine! This is all down to the way eclipse interacts with webkit. When eclipse nee= ds to run some javascript (to generate help for autocomplete or for the tip of= the day ...) it makes an asynchronous webkit call. The result of this call is returned to eclipse as a native byte array whose address is stored in a java long via a callback (WebKitExtension#initializeWebExtensions_callback). Java then makes JNI call to convert the native address into a java String vai th= is call: String clientAddressJava =3D Converter.cCharPtrToJavaString(clientAddress, = false) It is this JNI call that causes the core dump, because the value of clientAddress is invalid due to an error in the callback process. The callb= ack process is incredibly complex and involves communication via the gnome DBUS= . If the DBUS server cannot be started then there will be an error resulting in = the core dump. The DBUS server and client sockets are pipes created in the two missing directories! No directories =3D core dump! Why is this not happening in eclipse 4.16? This is because prior to the fix= for the cosmetic eclipse bug 163641 the service and client pipes were just crea= ted in /tmp See https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D562443 With regards to fixing this there must be some flags that can be passed to = the gnome/gtk library call that result in the directories being automically created. Or you could just revert the patch for bug 562443 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264311-7788-3VSnrrQfVt>