LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-28-2002, 03:57 AM   #1
UB_KMA
Member
 
Registered: Jul 2002
Location: Austin,TX
Distribution: A mash of SourceMage, Lunar, Slack, Manny, and RedHat all smushed together
Posts: 94

Rep: Reputation: 15
updatedb/locate difficulty


While messing around trying to pick a new linux kernel (I finally decided on a custom 2.4.19 from Lunar with a lot of processor specific tweaks added) I got a segmentation fault during an updatedb command...at that point I was actually running the 2.4.20-lq. After that, nomatter which kernel I was running, updatedb seems to run ok, but I get a segmetation fault while running a subsequent locate command, and the results of the locate are truncated to just a few entries when there might be dozens of results. Everything else seems to be running flawlessly, and lightning fast with the final kernel I picked, but I needs me locate, and this is beyond my ken!

Re-install bash? I may try that...any suggestions or exlanations are appriciated!
 
Old 12-28-2002, 11:26 AM   #2
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
You might want to delete

/usr/var/locatedb

or

/var/lib/locate/locatedb

and recreate it using updatedb
 
Old 12-28-2002, 01:05 PM   #3
UB_KMA
Member
 
Registered: Jul 2002
Location: Austin,TX
Distribution: A mash of SourceMage, Lunar, Slack, Manny, and RedHat all smushed together
Posts: 94

Original Poster
Rep: Reputation: 15
Well, it sounded like a good idea! Deleted updatedb (it was actually in /var/cache), and reran updatedb. It recreated the file, so I did a locate...which again terminated in a segmentation fault .
 
Old 12-29-2002, 11:16 AM   #4
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
1) not enough swap space
2) bad memory
3) run e2fsck
4) read http://www.bitwizard.nl/sig11/
 
Old 12-29-2002, 06:28 PM   #5
UB_KMA
Member
 
Registered: Jul 2002
Location: Austin,TX
Distribution: A mash of SourceMage, Lunar, Slack, Manny, and RedHat all smushed together
Posts: 94

Original Poster
Rep: Reputation: 15
Very interesting info in that link..I knew what segmentation fault was (after looking it up) but had no idea as to the many possible causes. This only happens during a locate command, so I am suspecting that it is actually trying to access unauthorized memory space and it is not just a bug or error. I know that my profiles says I am running slack, but I am currently running a source based setup made from scratch which is using /devfs. Now, I have /dev/proc mounted, and many other memory only resident filesystems that are possibly being scanned during updatedb. Since these mounted filesystems are in memory only, is it possible a seg fault could result during a locate?
I have tested doing a limited updatedb, specifying to only catalog certain directories (after deleting the old updatedb file), and a subsequent locate command doesn't result in the fault and completes sucessfully.

To respond to your suggestions:
I have a rediculous amount of swap space (large).
I really hope it isn't my memory!
I will run e2fsk and see what results...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to configure updatedb to update locate database manually septanla Linux - General 4 12-22-2010 02:05 PM
updatedb / locate doesn't appear to work allelopath Linux - Software 5 08-28-2005 10:55 PM
What is the equivlent of locate and updatedb in suse? abefroman Suse/Novell 2 05-07-2005 06:13 PM
Frontend for Updatedb and Locate? tbeehler Linux - Software 4 02-13-2004 10:07 AM
Updatedb and Locate - commands not found rodviking Linux - Software 3 11-17-2003 12:41 AM


All times are GMT -5. The time now is 02:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration