Installing Oracle XE on Mac Leopard (issue with a segmentation fault) - macos

I am trying to install Oracle XE 10.2 on my Mac Leopard. However, it doesn't go without a lot of fuzz. Thankfully I have this tutorial at my disposal: http://bit.ly/a4rc4O
The only pain I am left with is the following command that fails (from the cfgtoollogs/configToolAllCommands).
/Users/oracle/oracle/product/10.2.0/db_1/bin/netca /orahome /Users/oracle/oracle/product/10.2.0/db_1 /orahnam OraDb10g_home1 /instype custom /inscomp client,oraclenet,javavm,server,ano /insprtcl tcp /cfg local /authadp NO_VALUE /nodeinfo NO_VALUE /responseFile /Users/oracle/oracle/product/10.2.0/db_1/network/install/netca_typ.rsp
Which generates the following output:
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-92 mixed mode)
#
/Users/oracle/oracle/product/10.2.0/db_1/jdk/jre/bin/java: line 2: 27805 Segmentation fault /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/bin/java -Xbootclasspath/a:/Users/oracle/oracle/product/10.2.0/db_1/jdk/jre/lib/ext:/Users/oracle/oracle/product/10.2.0/db_1/jdk/lib/ext $*
I want to run Oracle on my Mac, as software I need relies on Oracle database. I fetched the binary from the Oracle website, and is supposed to work.
This box runs on Intel Core 2 Duo, running Leopard 10.5.8 and has Java 1.5.0 available. I more information is needed to analyze this, please comment and I will edit. Also some pointers where to look for would be nice. Thanks a bunch for help or trying to :)
Here is the full output from the log:
Parsing command line arguments:
Parameter "orahome" = /Users/oracle/oracle/product/10.2.0/db_1
Parameter "orahnam" = OraDb10g_home1
Parameter "instype" = custom
Parameter "inscomp" = client,oraclenet,javavm,server,ano
Parameter "insprtcl" = tcp
Parameter "cfg" = local
Parameter "authadp" = NO_VALUE
Parameter "nodeinfo" = NO_VALUE
Parameter "responsefile" = /Users/oracle/oracle/product/10.2.0/db_1/network/install/netca_typ.rsp
Done parsing command line arguments.
Oracle Net Services Configuration:
# This JavaNativeCrash log describes the Java state at a Native Crash in a Java application.
# The corresponding native state can be found in the crash log generated by CrashReporter.
# If this error is reproducible, please report it with the following information:
# 1. Provide the steps to reproduce, a test case, and any relevant information
# 2. This JavaNativeCrash_pid<num>.crash.log (Java state)
# 3. The corresponding <name>.crash.log (native state; generated by CrashReporter)
# File report at: http://bugreport.apple.com/
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : Bus Error occurred at PC=0x9714E22B
Function=[Unknown.]
Library=/usr/lib/libSystem.B.dylib
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at oracle.net.common.NetGetEnv.getDNSDomain(Native Method)
at oracle.net.ca.ConfigureProfile.setDefaultProfileParams(Unknown Source)
at oracle.net.ca.InitialSetup.setupConfigObjects(Unknown Source)
at oracle.net.ca.InitialSetup.<init>(Unknown Source)
at oracle.net.ca.NetCA.main(Unknown Source)
Dynamic libraries and executable:
[0x00002458-0x0000881e] /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/bin/java
[0x0001071c-0x000157b0] /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
[0x91bf2730-0x91cefb56] /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
[0x91ab9780-0x91ac071e] /usr/lib/libgcc_s.1.dylib
[0x971250a0-0x972596d0] /usr/lib/libSystem.B.dylib
[0x957cca60-0x959ae953] /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
[0x91ac27c0-0x91ad7335] /usr/lib/libobjc.A.dylib
[0x911931f0-0x91286765] /usr/lib/libicucore.A.dylib
[0x900f2a74-0x901ba452] /usr/lib/libxml2.2.dylib
[0x93ccb8cc-0x93cd602c] /usr/lib/libz.1.dylib
[0x909c5ea8-0x90a525dd] /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
[0x9552fe4c-0x95562417] /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
[0x943e9e70-0x943e9e92] /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
[0x95da32c0-0x95f08aee] /System/Library/Frameworks/Security.framework/Versions/A/Security
[0x97b7d000-0x97ba66b3] /usr/lib/libauto.dylib
[0x94619fb4-0x94661005] /usr/lib/libstdc++.6.dylib
[0x93bca2b0-0x93bcb1e7] /usr/lib/system/libmathCommon.A.dylib
[0x957442b0-0x957c50d2] /usr/lib/libsqlite3.0.dylib
[0x951e45f8-0x952010c7] /usr/lib/libresolv.9.dylib
[0x90ea0b58-0x90f8cd72] /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
[0x97e26f7c-0x97e64a33] /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
[0x950e0880-0x95187582] /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
[0x946cb370-0x94730dd0] /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
[0x91a8a200-0x91ab70f1] /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
[0x931be318-0x93239030] /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
[0x9117c30c-0x9118ce6c] /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
[0x92d095f0-0x92d83fd1] /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
[0x936cd100-0x936d4899] /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
[0x91a6a00c-0x91a70bdb] /usr/lib/libbsm.dylib
[0x93198cdc-0x931b7ab1] /usr/lib/libxslt.1.dylib
[0x961537b0-0x963a0876] /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libhotspot.dylib
[0x00035268-0x0003e8fd] /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libverify.dylib
[0x00046760-0x0005bcc5] /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libjava.jnilib
[0x0006bea8-0x00075723] /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libzip.jnilib
[0x05d65780-0x05e54029] /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libawt.jnilib
[0x95f7ce60-0x95f7ce82] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
[0x96464f7c-0x96464f9e] /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
[0x93bc8fdc-0x93bc8ffe] /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
[0x0558ffb4-0x055922ac] /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libfontmanager.jnilib
[0x948e1944-0x94ff3252] /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
[0x95ccb4e0-0x95d5359a] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
[0x97bd9544-0x97c647cf] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
[0x93d48ef0-0x943872d0] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
[0x9036744c-0x903bdae7] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
[0x933d95a4-0x934259b1] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
[0x9600ae08-0x96108ffa] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
[0x936bc704-0x936cb9fd] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
[0x90473228-0x904d3a2a] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
[0x963bd8dc-0x96456050] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
[0x93d37ae8-0x93d44feb] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
[0x91396600-0x91430c92] /usr/lib/libcrypto.0.9.7.dylib
[0x97ab4720-0x97b76938] /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
[0x90a6dfdc-0x90a6dffe] /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
[0x919eabf0-0x91a55e9a] /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
[0x95a4b540-0x95a7780d] /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
[0x937b7660-0x93bc3bdd] /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
[0x915a8090-0x91960be7] /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
[0x9369c3dc-0x936b7f7f] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
[0x9736a254-0x9738b7ee] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
[0x937091ac-0x9370cd15] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
[0x978e4374-0x978fd35f] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
[0x95b81d30-0x95b83dce] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
[0x95bd424c-0x95bf8a30] /usr/lib/libcups.2.dylib
[0x903c1724-0x9046023d] /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
[0x973aa6c0-0x97475b8c] /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
[0x9144a760-0x9156ef60] /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
[0x957426c0-0x95742fe9] /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
[0x95c40720-0x95cc109a] /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
[0x975680a0-0x97848f82] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
[0x90a8018c-0x90ce4bbd] /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
[0x9728ce58-0x9729411f] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
[0x90e66844-0x90e97182] /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
[0x974e8cac-0x97545e4e] /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
[0x978e2fdc-0x978e2ffe] /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
[0x97353fa4-0x97353fbd] /System/Library/PrivateFrameworks/InstallServer.framework/Versions/A/InstallServer
[0x9159d3d0-0x915a6b37] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
[0x91a7bfa0-0x91a88719] /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
[0x9324c3c0-0x93287d8f] /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
[0x97ab3190-0x97ab3ffd] /usr/lib/libffi.dylib
[0x95fbaefc-0x95fd1b76] /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
[0x932be1e0-0x93311b3b] /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
[0x97ca4ec0-0x97cb0fff] /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
[0x904f4500-0x9098927d] /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
[0x16d30c30-0x16f115d4] /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
[0x90a738f8-0x90a7e334] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
[0x95bfdb54-0x95c39c35] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
[0x1608ffd0-0x16093e42] /Library/InputManagers/Edit in ODBEditor/Edit in ODBEditor.bundle/Contents/MacOS/Edit in ODBEditor
[0x90e46fac-0x90e46fce] /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
[0x95febe38-0x95ff03e7] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
[0x945a8704-0x945aa8f6] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
[0x93cdab38-0x93d28a0b] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
[0x9331f604-0x9332d49d] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
[0x93335230-0x933b7897] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
[0x9346017c-0x934a07ad] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
[0x95ff2048-0x960049e9] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
[0x933181f0-0x9331c6ac] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
[0x95da02bc-0x95da1a65] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
[0x161c9630-0x161ca795] /Library/InputManagers/SIMBL/SIMBL.bundle/Contents/MacOS/SIMBL
[0x973625b4-0x97368633] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
[0x90e1dea8-0x90e3fb2b] /System/Library/PrivateFrameworks/Shortcut.framework/Versions/A/Shortcut
[0x901d598c-0x901de6a2] /System/Library/PrivateFrameworks/HelpData.framework/Versions/A/HelpData
[0x160b8014-0x160c3eb6] /Users/oracle/oracle/product/10.2.0/db_1/lib32/libnjni10.jnilib
[0x19c5b100-0x1ae42450] /Users/oracle/oracle/product/10.2.0/db_1/lib32/libclntsh.dylib.10.1
[0x1b0f0524-0x1b21ee9e] /Users/oracle/oracle/product/10.2.0/db_1/lib32/libnnz10.dylib
[0x176ff3d4-0x1770589e] /Users/oracle/oracle/product/10.2.0/db_1/lib32/libldapjclnt10.jnilib
Local Time = Fri Aug 27 17:31:52 2010
Elapsed Time = 794
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-92 mixed mode)
#
/Users/oracle/oracle/product/10.2.0/db_1/jdk/jre/bin/java: line 2: 27805 Segmentation fault /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/bin/java -Xbootclasspath/a:/Users/oracle/oracle/product/10.2.0/db_1/jdk/jre/lib/ext:/Users/oracle/oracle/product/10.2.0/db_1/jdk/lib/ext $*

Pretty lame: changing the environment variable ORACLE_SID to lowercase, fixed the netca command. Yay!

I would recommend installing oracle on VM. for more instructions, visit https://tech.lds.org/wiki/Oracle_VM

Are you sure it is Oracle XE? I can't find a download for that on Oracle's web site. Did you extract the RPM contents of the Linux RPM in order to do the install? I would love to get XE working, but I can only find instructions for Oracle 10g.

Related

NativeLibraryDarwin.java:64 - Failed to link the C library against JNA. Native methods will be unavailable

If you are working on a latest MacBook pro with M1 chip. Installing Cassandra and starting it might throw an error.
Steps
1: Installed Jdk8
2: Installed Cassandra 4.0.1
How to start: /opt/homebrew/opt/cassandra/bin/cassandra -f
Output:
ERROR [main] 2021-10-08 00:03:12,568 NativeLibraryDarwin.java:64 - Failed to link the C library against JNA. Native methods will be unavailable.
java.lang.UnsatisfiedLinkError: /opt/homebrew/Cellar/cassandra/4.0.1/tmp/jna9964159388012624603.tmp: dlopen(/opt/homebrew/Cellar/cassandra/4.0.1/tmp/jna9964159388012624603.tmp, 1): no suitable image found. Did find:
/opt/homebrew/Cellar/cassandra/4.0.1/tmp/jna9964159388012624603.tmp: no matching architecture in universal wrapper
/opt/homebrew/Cellar/cassandra/4.0.1/tmp/jna9964159388012624603.tmp: no matching architecture in universal wrapper
at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2627)
at java.base/java.lang.Runtime.load0(Runtime.java:768)
at java.base/java.lang.System.load(System.java:1837)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1018)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:988)
at com.sun.jna.Native.<clinit>(Native.java:195)
at com.sun.jna.NativeLibrary.<clinit>(NativeLibrary.java:87)
at org.apache.cassandra.utils.NativeLibraryDarwin.<clinit>(NativeLibraryDarwin.java:55)
at org.apache.cassandra.utils.NativeLibrary.<clinit>(NativeLibrary.java:98)
at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:258)
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:763)
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:887)
INFO [main] 2021-10-08 00:03:12,596 MonotonicClock.java:199 - Scheduling approximate time conversion task with an interval of 10000 milliseconds
INFO [main] 2021-10-08 00:03:12,597 MonotonicClock.java:335 - Scheduling approximate time-check task with a precision of 2 milliseconds
WARN [main] 2021-10-08 00:03:12,597 StartupChecks.java:143 - jemalloc shared library could not be preloaded to speed up memory allocations
WARN [main] 2021-10-08 00:03:12,597 StartupChecks.java:187 - JMX is not enabled to receive remote connections. Please see cassandra-env.sh for more info.
ERROR [main] 2021-10-08 00:03:12,597 CassandraDaemon.java:909 - The native library could not be initialized properly.
Solution:
Find where is jna-..*.jar located. you can do this using
find /opt/homebrew/ -name '*.jar' | grep cassandra
Browse to https://search.maven.org/artifact/net.java.dev.jna/jna/5.8.0/jar and download the jar from top-right downloads button on the page.
Replace your jna-..*.jar file with the one you downloaded. In my case i replaced jna-5.6.0.jar. Remember to keep the file name as your previous file name. Example I moved jna-5.8.0.jar and renamed as jna-5.6.0.jar
mv /Users/mansooralikhan/Downloads/jna-5.8.0.jar /opt/homebrew/Cellar/cassandra/4.0.1/libexec/jna-5.6.0.jar
Restart cassandra
To echo Mansoor's answer, I'll add that the version of JNA shipped with Apache Cassandra 4.0 unfortunately is not compatible with the M1 architecture.
To remedy this, head to the "downloads" section of the JNA GitHub repo, where you should find the latest version of the JNA jar file.
https://github.com/java-native-access/jna#jna
Download JNA version 5.8 or higher, and replace the existing jna-5.6.0.jar file in Cassandra's lib/ directory (tarball-based installs).
Just to add to the answers here, I wanted to note for posterity that the issue with arm64 on Apple M1 devices not supported by JNA 5.6.0 has been raised with the Apache Cassandra project previously.
More recently, it has been reported in CASSANDRA-17019. I brought it up with the project devs/contributors and hopefully it gets reviewed and resolved soon. Cheers!

Java Springboot build fails in raspberry pi

Summary
I'm trying to build springboot application on my raspberry pi and I get SIGBUS (0x7) error
Error:
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0x7) at pc=0xb3de3a84, pid=7, tid=32
#
# JRE version: OpenJDK Runtime Environment AdoptOpenJDK (14.0.2+12) (build 14.0.2+12)
# Java VM: OpenJDK Server VM AdoptOpenJDK (14.0.2+12, mixed mode, sharing, g1 gc, linux-arm)
# Problematic frame:
# v ~StubRoutines::atomic_load_long
#
# Core dump will be written. Default location: /server/core
#
# An error report file with more information is saved as:
# /server/hs_err_pid7.log
Steps to reproduce
I have a docker file with following snippet.
COPY .mvn .mvn
COPY pom.xml .
RUN ./mvnw dependency:go-offline
COPY src src
RUN ./mvnw package -DskipTests # <------- Fails here
Builds fine on my other primary machine with ubuntu on it.
But fails on Raspberry Pi 4 with raspbian.
Expected results
Expected a successful build similar to my other machine
Actual results
Fails with following error trace.
[thread 52 also had an error]
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0x7) at pc=0xb3de3a84, pid=7, tid=32
#
# JRE version: OpenJDK Runtime Environment AdoptOpenJDK (14.0.2+12) (build 14.0.2+12)
# Java VM: OpenJDK Server VM AdoptOpenJDK (14.0.2+12, mixed mode, sharing, g1 gc, linux-arm)
# Problematic frame:
# v ~StubRoutines::atomic_load_long
#
# Core dump will be written. Default location: /server/core
#
# An error report file with more information is saved as:
# /server/hs_err_pid7.log
#
# If you would like to submit a bug report, please visit:
# https://github.com/AdoptOpenJDK/openjdk-support/issues
#
Aborted (core dumped)
The command '/bin/sh -c ./mvnw package -DskipTests' returned a non-zero code: 134
ERROR: Service 'server' failed to build
Triaging info
Java version: 14.0.2+12
What is your operating system and platform?
Raspbian [full] latest. Raspberry Pi 4
How did you install Java?
Dockerfile snippet shared above.
Did it work before?
No
Did you test with other Java versions?
yes with v11
This is an insufficient space issue read this https://confluence.atlassian.com/confkb/java-vm-dies-with-sigbus-0x7-when-temp-directory-is-full-on-linux-815584538.html now to solve it you have to make space available in your /tmp folder or use bigger space storage device and allocate space to /tmp folder.
edit: also see this
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6563308
Answering my own question,
I tried a openjdk instead of adoptopenjdk and it worked.
If it doesnt work for you, then try different versions of openjdk as well.

Stanford CoreNLP version 4.2.0

Are there any migration hints about moving to v4.2.0? This page https://stanfordnlp.github.io/CoreNLP/migration.html is quite helpful but does not cover the current release.
FWIW, I revved my version from 4.0.0 to 4.2.0 and am now getting a lot of SUTime errors. This is running under Corretto java 11.
$ java --version
openjdk 11.0.9.1 2020-11-04 LTS
OpenJDK Runtime Environment Corretto-11.0.9.12.1 (build 11.0.9.1+12-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.9.12.1 (build 11.0.9.1+12-LTS, mixed mode)
java.lang.RuntimeException: Could not parse date string: [335-58-2020]
at edu.stanford.nlp.time.TimeExpressionExtractorImpl.extractTimeExpressionCoreMaps(TimeExpressionExtractorImpl.java:101)
at edu.stanford.nlp.ie.regexp.NumberSequenceClassifier.runSUTime(NumberSequenceClassifier.java:345)
at edu.stanford.nlp.ie.regexp.NumberSequenceClassifier.classifyWithSUTime(NumberSequenceClassifier.java:143)
at edu.stanford.nlp.ie.regexp.NumberSequenceClassifier.classifyWithGlobalInformation(NumberSequenceClassifier.java:106)
at edu.stanford.nlp.ie.NERClassifierCombiner.recognizeNumberSequences(NERClassifierCombiner.java:326)
at edu.stanford.nlp.ie.NERClassifierCombiner.classifyWithGlobalInformation(NERClassifierCombiner.java:281)
at edu.stanford.nlp.ie.AbstractSequenceClassifier.classifySentenceWithGlobalInformation(AbstractSequenceClassifier.java:343)
at edu.stanford.nlp.pipeline.NERCombinerAnnotator.doOneSentence(NERCombinerAnnotator.java:554)
.....
Caused by: org.joda.time.IllegalFieldValueException: Value 58 for dayOfMonth must not be larger than 31
at org.joda.time.chrono.BaseChronology.validate(BaseChronology.java:195)
at org.joda.time.Partial.<init>(Partial.java:272)
at org.joda.time.Partial.with(Partial.java:495)
at edu.stanford.nlp.time.JodaTimeUtils.setField(JodaTimeUtils.java:284)
at edu.stanford.nlp.time.SUTime$IsoDate.initBase(SUTime.java:3371)
at edu.stanford.nlp.time.SUTime$IsoDate.<init>(SUTime.java:3347)
at edu.stanford.nlp.time.SUTime.parseDateTime(SUTime.java:3756)
at edu.stanford.nlp.time.TimeExpressionExtractorImpl.extractTimeExpressionCoreMaps(TimeExpressionExtractorImpl.java:99)
Thanks
There isn't any migration required for 4.2.0 it only contains small changes. Could you please let me know what examples generate those errors.
As for the part-of-speech tagging changes, we change the models from time to time, so that will cause changes such as that.

"Symbol not found" error, (possibly) due to recent upgrade to R2017b?

I'm getting an error when I try to use imerode() from the command line, e.g.
test=magic([100 100])>200;
imclose(test,strel('disk',10,0));
I get this error:
Error using images.internal.morphmex Invalid MEX-file
'/Applications/MATLAB_R2017b.app/toolbox/images/images/+images/+internal/morphmex.mexmaci64':
dlopen(/Applications/MATLAB_R2017b.app/toolbox/images/images/+images/+internal/morphmex.mexmaci64,
6): Symbol not found: _OSAtomicDecrement32Barrier Referenced from:
/Applications/MATLAB_R2017b.app/bin/maci64/./libcudart.8.0.dylib
Expected in: /usr/lib/libSystem.B.dylib in
/Applications/MATLAB_R2017b.app/bin/maci64/./libcudart.8.0.dylib.
Error in images.internal.morphop (line 103)
B = images.internal.morphmex(mex_method, B, nhood, height, unpacked_M);
Error in imdilate (line 135) B =
images.internal.morphop(A,se,'dilate',mfilename,varargin{:});
Error in imclose (line 82)
outputImage = imerode(imdilate(inputImage,se,packopt,M),se,packopt,M);
I'm on OS X 10.9.5, with MATLAB R2017b.
I've checked that morphmex.mexmaci64 is there in the given path (above).
Not sure where /./ refers to, but libcudart.8.0.dylib is in maci64 folder.
Not sure where /usr/lib/... is.
EDIT
I have uninstalled R2017b and installed R2017a (why not, just in case...) and when trying to run the same code, I now get this error (which seems worse...)
Segmentation violation detected at Mon Nov 13 13:44:29 2017
Configuration: Crash Decoding : Disabled - No sandbox or build
area path Crash Mode : continue (default) Current
Graphics Driver: Unknown hardware Current Visual : Quartz
Default Encoding : ISO-8859-1 Deployed : false Host
Name : eduroam-206-52.nomadic.bris.ac.uk MATLAB
Architecture : maci64 MATLAB Entitlement ID: 1803495 MATLAB Root
: /Applications/MATLAB_R2017a.app MATLAB Version : 9.2.0.556344
(R2017a) OpenGL : hardware Operating System :
Darwin 13.4.0 Darwin Kernel Version 13.4.0: Mon Jan 11 18:17:34 PST
2016; root:xnu-2422.115.15~1/RELEASE_X86_64 x86_64 Processor ID
: x86 Family 6 Model 69 Stepping 1, GenuineIntel Virtual Machine
: Java 1.7.0_75-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit
Server VM mixed mode Window System : Quartz
Fault Count: 2
Abnormal termination: Trace trap
Can upload error file for rest of message (too long to paste here).
Thanks in advance.
Looks like an installation problem or maybe it is due to the update.
Try to run the following commands in your console:
restoredefaultpath();
rehash toolboxcache;
If everything works without errors, then run:
savepath();
Turns out R2017a, b not compatible with OS Mavericks.
Rolled back to R2016a.

Processing: Migrating to 2.0b1 from 1.51 - Issues on video library

I'm trying to migrate to new processing, as I use often in my life (it's an update, so I'm moving on...).
Here's my setup:
Mac OS X 10.7.3
Processing 2.0b1 (Launch Program in 32-bit mode)
$ java -version
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11D50b)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
My setup used to work on Processing 1.5 - and all the problems that I'm seeing right now I not had using that release.
First:
Any examples from libraries/video/capture simply don't work. Sometimes it crashes, sometimes it freezes.
The console log after AsciiVideo:
DVFreeThread - CFMachPortCreateWithPort hack = 0xc083b7c0,
fPowerNotifyPort= 0xc085a0f0 DVFreeThread - CFMachPortCreateWithPort
hack = 0xc0809a60, fPowerNotifyPort= 0xc0808080 DVFreeThread -
CFMachPortCreateWithPort hack = 0xc08159a0, fPowerNotifyPort=
0xc082add0
I use the GSVideo too, and I tried to run the AsciiVideo from there.
The console error:
GSVideo version: 1.0.0 19200 Invalid memory access of location 0x0
eip=0x97cee3ba
and raised an error window
Process: java [25673] Path: /usr/bin/java
Identifier: com.apple.javajdk16.cmd Version: 1.0 (1.0)
Code Type: X86 (Native) Parent Process: JavaApplicationStub
[24849]
PlugIn Path: /var/folders/*/libjogl_desktop.jnilib PlugIn
Identifier: libjogl_desktop.jnilib PlugIn Version: ??? (???)
Date/Time: 2012-09-05 17:04:08.993 -0300 OS Version: Mac OS
X 10.7.3 (11D50b) Report Version: 9
...
I work with SimpleOpenNI, GSVideo, GLgraphics, SurfaceMapper... I decided migrate yesterday, to increase performance using the same CPU when I render videos.
I think it's better to ask this question on the processing forum.
Reason why you get this error is that the video library is rewritten from scratch in Processing 2, and it's based on GSVideo. Check the video examples in Processing 2.0b3.
Also, SurfaceMapper is currently not working with Processing 2.0, I'll look into that.
Best regards,
Jonas, Ixagon

Resources