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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-28-2002, 04:57 AM
|
#1
|
Member
Registered: Jul 2002
Location: Austin,TX
Distribution: A mash of SourceMage, Lunar, Slack, Manny, and RedHat all smushed together
Posts: 94
Rep:
|
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!
|
|
|
12-28-2002, 12:26 PM
|
#2
|
Member
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711
Rep:
|
You might want to delete
/usr/var/locatedb
or
/var/lib/locate/locatedb
and recreate it using updatedb
|
|
|
12-28-2002, 02:05 PM
|
#3
|
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:
|
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 .
|
|
|
12-29-2002, 12:16 PM
|
#4
|
Member
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711
Rep:
|
1) not enough swap space
2) bad memory
3) run e2fsck
4) read http://www.bitwizard.nl/sig11/
|
|
|
12-29-2002, 07:28 PM
|
#5
|
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:
|
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...
|
|
|
All times are GMT -5. The time now is 06:41 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|