Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Linux/Apache "trap invalid opcode error messages"

Posted on 2011-09-17
4
3,074 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

856 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