DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 18th September 2016
epitaxial epitaxial is offline
Port Guard
 
Join Date: Feb 2015
Posts: 21
Default Java crashing after 6.0 upgrade

I just upgraded my 5.9 amd64 box to 6.0 and updated all the packages. However now java crashes with "Abort trap"

Code:
/usr/local/jdk-1.8.0/bin/java
Abort trap
Running "java" from jdk-1.7.0 does the same thing.

Ok apparently the fix requires a change to the fstab entry.

Last edited by epitaxial; 18th September 2016 at 04:59 AM.
Reply With Quote
  #2   (View Single Post)  
Old 18th September 2016
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,319
Default

Quote:
Originally Posted by epitaxial View Post
Ok apparently the fix requires a change to the fstab entry.
Correct. /usr/local needs to mounted with the wxallowed option given that Java violated W^X. This is caught by pledge(2) which aborts execution.
Reply With Quote
  #3   (View Single Post)  
Old 19th September 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

To my understanding this is caught by the kernel's virtual memory management subsystem, rather than by any pledge(2) syscall, but the end result of a policy violation is the same - the application is aborted.

The 6.0 Upgrade Guide describes the required configuration change to provision the wxallowed mount flag. Admins should always review the applicable Upgrade Guide before upgrading.

For 6.1, individual application binaries that require this type of WX memory access will each require the wxneeded link edit flag, for finer control of memory management. The -current Ports tree has recently completed this wxneeded transition.

Last edited by jggimi; 19th September 2016 at 06:07 PM. Reason: typo
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD keeps locking up/crashing unixjingleman OpenBSD General 7 18th April 2012 02:26 PM
Firefox 3.6.4 beta isolates crashing plug-ins J65nko News 0 21st April 2010 05:31 PM
System crashing constantly on P4/xeon Mr-Biscuit OpenBSD General 6 5th April 2010 03:33 AM
FreeBSD 6.3 Server Crashing - full /tmp? cerulean FreeBSD General 2 11th November 2008 05:39 AM
FAM keeps crashing with courier-imap krreagan FreeBSD General 0 14th May 2008 11:15 PM


All times are GMT. The time now is 11:10 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick