nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

WARNING: General Protection Faults in these executables-sed

This is a discussion on WARNING: General Protection Faults in these executables-sed within the Linux software forums, part of the Linux Getting Started category; In my LogWatch I have been getting this for a month or two: --------------------- Kernel Begin ------------------------ WARNING: General Protection ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Linux answers from nixCraft.


Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 22-06-2006, 10:16 PM
Junior Member
User
 
Join Date: Jun 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Usagi
Default WARNING: General Protection Faults in these executables-sed

In my LogWatch I have been getting this for a month or two:
--------------------- Kernel Begin ------------------------


WARNING: General Protection Faults in these executables
sed : 1 Time(s)

---------------------- Kernel End -------------------------

In checking my logs I see that the time that it happens is intermittent. Some days i don't get this message; other days it can vary from 1 to 4 times. I'm not knowingly using SED. I suspect some program is calling it. The server seems to be operating fine otherwise.

My System is Fedora - 4, operating as a server. I have 2 sites on it using Apache, PHP, mySQL

I've searched the web but can't find anything on this.
Any ideas on what is causing this or how to tracke it down to it's source?


Usagi
Reply With Quote
  #2 (permalink)  
Old 22-06-2006, 10:44 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
OS: Debian GNU/Linux
Posts: 506
Thanks: 0
Thanked 8 Times in 6 Posts
Rep Power: 7
monk has a spectacular aura about monk has a spectacular aura about
Default

LogWatch usually collects data from /var/log/messages and other files. You can run quick grep on /var/log/messages to find out more information about this program:

Code:
grep -i "sed" /var/log/messages
Let me know what is the output of above command...

Generally, PHP or Apache will not call sed directly.

So what can call the sed…
a) If you have control panel software that may call the sed
b) Your own PHP script may call the sed.
c) Your own shell script installed as a cron job

but let us find out grep output
Reply With Quote
  #3 (permalink)  
Old 22-06-2006, 10:57 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 5
tom is on a distinguished road
Default

See general protection fault means the kernel tried executing code (in your case sed command) which was not noted as "executable". This happens if the kernel jumps to bogus location. It can be caused by many factors.

My friend had same problem on Debian Linux box. After updating sed version his problem vanished (no more error reported by LogWatch). He was getting 40-50 errors

May be you should try to update version of sed as well as system software. Also check your RAM memory is fine.
Reply With Quote
  #4 (permalink)  
Old 22-06-2006, 11:02 PM
sweta's Avatar
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
OS: Suse, RHEL, Vista
Posts: 199
Thanks: 12
Thanked 9 Times in 9 Posts
Rep Power: 7
sweta has a spectacular aura about sweta has a spectacular aura about
Default

I had GPF on one my Linux box. After increasing RAM from 1GiG to 2GiG my problem was solved.

Running an application with insufficient resources can also cause this problem. Since you are getting this error sometimes, it is better to note down system load and see on that day or time you are getting the same error.

hope this helps
__________________
Reply With Quote
  #5 (permalink)  
Old 22-06-2006, 11:13 PM
Junior Member
User
 
Join Date: Jun 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Usagi
Default

Jun 18 04:15:01 prose-n-poetry kernel: sed[6042] general protection rip:32c4704191 rsp:7fffffec5040 error:0
Jun 18 04:20:04 prose-n-poetry kernel: sed[6445] general protection rip:32c4704191 rsp:7ffffff14b60 error:0
Jun 18 05:35:04 prose-n-poetry kernel: sed[20769] general protection rip:32c4704191 rsp:7fffff81ed40 error:0
Jun 18 06:50:02 prose-n-poetry kernel: sed[24886] general protection rip:32c4704191 rsp:7fffffbf5240 error:0
Jun 18 06:50:03 prose-n-poetry kernel: sed[24978] general protection rip:32c4704191 rsp:7fffffc2fbf0 error:0
Jun 18 11:20:03 prose-n-poetry kernel: sed[8621] general protection rip:32c4704191 rsp:7fffff885cc0 error:0
...

Jun 20 01:55:03 prose-n-poetry kernel: sed[32120] general protection rip:32c4704191 rsp:7fffff840980 error:0
Jun 20 14:37:12 prose-n-poetry su(pam_unix)[14165]: session closed for user root
Jun 20 17:50:02 prose-n-poetry kernel: sed[26764] general protection rip:32c4704191 rsp:7fffffbb1db0 error:0
Jun 20 21:00:01 prose-n-poetry kernel: sed[6355] general protection rip:32c4704191 rsp:7fffff988080 error:0
Jun 20 22:55:03 prose-n-poetry kernel: sed[13884] general protection rip:32c4704191 rsp:7fffffeb5100 error:0
...

Jun 21 09:45:04 prose-n-poetry kernel: sed[21407] general protection rip:32c4704191 rsp:7ffffff90b60 error:0
...
Jun 22 06:05:03 prose-n-poetry kernel: sed[9299] general protection rip:32c4704191 rsp:7fffffbc6d00 error:0
Jun 22 06:05:04 prose-n-poetry kernel: sed[9365] general protection rip:32c4704191 rsp:7fffffce3630 error:0


In the spaces indicated by ... the following appear from 1 to many times:

Jun 22 00:00:21 prose-n-poetry su(pam_unix)[17815]: session closed for user sailormoonfansubs
Jun 22 00:00:24 prose-n-poetry su(pam_unix)[17814]: session closed for user prosenpoetry

I believe those -su lines are due to some calls in my PHP programs.

I also have YUM set on auto update. It should be updating all programs daily.
Reply With Quote
  #6 (permalink)  
Old 23-06-2006, 12:01 AM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 5
tom is on a distinguished road
Default

Are you using AMD (Opteron) h/w?

Try out this script memtest.sh :
http://people.redhat.com/dledford/memtest.html
Reply With Quote
  #7 (permalink)  
Old 23-06-2006, 12:51 AM
Junior Member
User
 
Join Date: Jun 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Usagi
Default

D - Basic Dedicated Server:
# Processor AMD Sempron 2200+
Memory
# 512 MB DDR
Hard Disk
# 40GB IDE

I believe it's a 64 bit processor.

Quote:
Originally Posted by tom
Try out this script memtest.sh :
http://people.redhat.com/dledford/memtest.html
Fedora-4 doesn't include bash2 which that script requires. However a memory testing script might be a good idea.

Usagi
Reply With Quote
  #8 (permalink)  
Old 23-06-2006, 12:15 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 5
tom is on a distinguished road
Default

You can try out any one of the following binary memory testers:

==> memtest86 - A thorough real-mode memory tester
==> memtest86+ - thorough real-mode memory tester
==> memtester - A utility for testing the memory subsystem

I had problem with AMD 64 with Suse box. Suse provided us some patch for kernel. Then we recompile the kernel to patch up this issue.

First check out memory, if problem is not coming too many times, you can use system w/o patch as patch need to recompile the kernel.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
shell script to open log files and check for faults trueman82 Shell scripting 1 23-11-2006 02:35 AM
Linux Setting the screen to lock with password protection tom Getting started tutorials 1 13-07-2006 05:56 PM
Fix sprintf warning Rick Coding in General 4 03-07-2006 12:00 AM
Script disabling error or warning message output sweta Shell scripting 2 18-04-2006 08:24 PM
gtk warning cannot open display gnome Linux software 1 14-03-2006 12:50 PM


All times are GMT +5.5. The time now is 04:22 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38