Operating system: Solaris / SunOS.
When starting Apache2.x using:
./apachectl start
the following error is printed to the terminal:
Illegal Instruction - core dumped
Any idea what could be causing this or are there any logs I can inspect?
More info::
out put from /bin/sh -x ./apachectl start :
+ [ xstart = x ]
+ /path/path/apache2/bin/httpd -d /path/path/apache2/ -k start
Illegal Instruction - core dumped
from the core file:
$pflags core
core 'core' of 19561: /path/path/apache2/bin/httpd -d /path/path/apache2/ -k start
data model = _ILP32 flags = MSACCT|MSFORK
/1: flags = 0
sigmask = 0xffffbefc,0x0000ffff cursig = SIGILL
The apachectl
script itself is probably not crashing. More likely, a command that it calls is crashing.
Try running the script like this:
$ /bin/sh -x ./apachectl start
This will enable trace mode on the script and allow you to see the last thing it does before it bails out. If you run this and it's not obvious what's going on, please update your question with the last few lines of output.
Also, you mention that it dumps core. On Solaris, this may create a core file in your current directory or in /var/core
, depending on your coreadm
configuration. If you can find the core file, inspect it with the following commands:
$ pstack corefile
$ pflags corefile
User contributions licensed under CC BY-SA 3.0