Wednesday, October 24, 2007

Segmentation Violation - adrelink.sh, adlibout.sh

I was in the process of 'adding' an additional mid-tier node to our existing multi-node environment. After following the standard steps (cloning etc), this node went out of sync with other nodes in terms of patch levels, as this activity took a back seat making way to other priority issues. Hence, i started patching the new node that i was setting up, which was not patched alongside the other mid-tiers because it was not ready.

This activity brought to the forefront an issue with extraction of object modules / relinking of executables during patching. I encountered "Segmentation violation" error and the patch aborted. The patch log did not contain the segmentation violation error message. It would come up only in the command prompt where i was doing the patching.

I started troubleshooting this issue and after a while, i found that the issue was with MKS toolkit version. MKS Toolkit 8.0 patch 1 was required which actually fixed the issue.

Troubleshooting hints:

- A simple test.sh script which displays the hostname was executed successfully
- adrelink.sh would throw segmentation violation error.
- adlibout.sh would throw segmentation violation error
- At times, sourcing the environment file to relink would throw the above error
- Finally, invoking KSH from start>programs>MKS Toolkit>ksh would throw the segmentation fault.

This helped me eliminate other factors like environment files, environment variables, path etc and narrow down on MKS as just invoking ksh had nothing to do with oracle apps.

- Aravind Kamath

No comments: