Bug 22599 - decode_db() aborted
Summary: decode_db() aborted
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: slocate
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-12-20 19:56 UTC by Łukasz Trąbiński
Modified: 2014-03-17 02:17 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-12-31 03:34:11 UTC
Embargoed:


Attachments (Terms of Use)

Description Łukasz Trąbiński 2000-12-20 19:56:30 UTC
Hello
After upgrade slocate to 2.4-1 on one machine, slocate doesn't work
correctly.

[root@xxx slocate]# pwd
/var/lib/slocate
[root@xxx slocate]# du -h
6.7M    .
Before upgrade databese has 8M..

[root@xxx slocate]# locate blebleble
locate: decode_db() aborted. Corrupt database?

Before upgrade all was fine. I have tried rebuild databse by
/etc/cron.daily/slocate.cron 
but it has still errors.

Comment 1 Bill Nottingham 2000-12-20 20:03:20 UTC
What happens if you move the old database out of the way and *then*
rebuild it?

Comment 2 Łukasz Trąbiński 2000-12-20 22:30:39 UTC
After removed /var/lib/slocate/slocate.db
and /etc/cr^Gon.daily/slocate.cron &
I still get locate: decode_db() aborted. Corrupt database?
After downgrade all works OK (with databse build by new slocate).

End of strace: (strace -f -o file locate something)

26368 write(2, "locate: decode_db() aborted. Cor"..., 47) = 47
26368 munmap(0x2aac2000, 4096)          = 0
26368 _exit(1)                          = ?

[lukasz@xxx lukasz]$ cat file |grep read |wc -l 
   1706


Comment 3 Łukasz Trąbiński 2000-12-31 00:01:12 UTC
Taken from ChangeLog for new version of slocate.
2.5 - Really fixed the heap corruption bug.
    - Fixed a bug that caused slocate to segfault when path lengths are
      too large.
    - Made slocate not assign the 'slocate' group to a database if the 
      UID is not 0.
    - Added alot of error checking (ie, all mallocs, fchdir, etc).
    - Autoconfed.
I haven't tested this version, yet.


Comment 4 Bill Nottingham 2000-12-31 03:34:08 UTC
Hm, maybe. It looks like most of the changes in that are in the
error handling code.

Could you attach the database?

Comment 5 Bill Nottingham 2001-01-06 22:40:22 UTC
It does appear that slocate-2.5 fixes this - slocate-2.5-1 will be in
the next raw hide release.


Note You need to log in before you can comment on or make changes to this bug.