Solved

Linux/Apache "trap invalid opcode error messages"

Posted on 2011-09-17
4
3,039 Views
Last Modified: 2012-05-12
I am seeing lots & lots of these errors in /var/log/messages:

kernel: httpd[4802] trap invalid opcode rip:2afb9d6cb89a rsp:2afb9d6f458a error:0

* What does that mean?
* Can I fix it?
* If it can be ignored, how can I prevent the log filling up with these messages?

This is on Linux 2.6.18-194.17.1.el5 on x86_64, CentOS 5.7
Apache version 2.2.3
0
Comment
Question by:PaliTree
  • 2
4 Comments
 
LVL 77

Assisted Solution

by:arnold
arnold earned 150 total points
ID: 36554899
check /var/log/apache/error_log to see whether you can match the errors.
there are kernel updates that may help in resolving this.

You have to determine what is being done that triggers the trap from an underlying event.
0
 
LVL 9

Accepted Solution

by:
fcontrepois earned 350 total points
ID: 36555589
This is normaly due to a bug. The trigger for the message could be be located on httpd, in which case an update of apache httpd will solve the problem, otherwise it could be on an apache plugin like php or others.

So to fix it try to update apache httpd and connected software

To remove the message from your logfile you can configure a filter (see the http://www.daemon-systems.org/man/syslog.conf.5.html and search for filter) or have a crontab that runs every so often to remove those lines with
sed -i '/opcode/d' 

Open in new window

(not tested). Using those scripts result in a clean log file but limit your capacity to understand when the problem get solved.

0
 

Author Comment

by:PaliTree
ID: 36560801
I found nothing in /var/log/apache/error_log

I found that even httpd -v produced an error.

This is a "cloud server" - so I ditched that drive and did YUM updates from a backup, And, eh voila, the problem has gone away. "Corrupt data" in some way.

Thanks for your help you guys.
0
 

Author Closing Comment

by:PaliTree
ID: 36560825
Good efforts - but in the end not the solution
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question