Thursday, March 3, 2016

liboraInstaller.so which might have disabled stack guard

Encounter below error while applying patch on Oracle EBS 12.1.3 10.1.3 ($IAS_ORACLE_HOME)



System Command: /u01/EP1/apps/tech_st/10.1.2/jdk/jre/bin/java    -Doracle.installer.invPtrLoc=/etc/oraInst.loc -Dopatch.retry=10 -Dopatch.delay=30  -classpath "/u01/EP1/apps/tech_st/10.1.2/oui/jlib/OraInstaller.jar:/u01/EP1/apps/tech_st/10.1.2/oui/jlib/srvm.jar:/u01/EP1/apps/tech_st/10.1.2/OPatch/jlib/opatch.jar:/u01/EP1/apps/tech_st/10.1.2/oui/jlib/xmlparserv2.jar:/u01/EP1/apps/tech_st/10.1.2/oui/jlib/share.jar" opatch/CheckConflict "/u01/EP1/apps/tech_st/10.1.2/oui" "/u01/EP1/apps/tech_st/10.1.2" opatch.pl 1.0.0.0.64 16271876 "16271876 " "/u01/patch/tls_patches/16271876/etc/config/actions" "/u01/patch/tls_patches/16271876/etc/config/inventory"
Result :

Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /u01/EP1/apps/tech_st/10.1.2/oui/lib/linux/liboraInstaller.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
java.lang.UnsatisfiedLinkError: /u01/EP1/apps/tech_st/10.1.2/oui/lib/linux/liboraInstaller.so: /u01/EP1/apps/tech_st/10.1.2/oui/lib/linux/liboraInstaller.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1968)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1893)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)
        at java.lang.Runtime.load0(Runtime.java:795)
        at java.lang.System.load(System.java:1062)
        at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.loadNativeLib(OiipuUnixOps.java:372)


Solution:
To implement the solution please execute the following steps:
1. Replace the 64 bit java by the 32 bit version of java.
2. Re-test the issue.

apt-key warning when sudo apt update run

Issue: apt-key warning when sudo apt update run Update below file: cat /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list ...