Comment 20 for bug 1001189

Revision history for this message
Nathan Stratton Treadway (nathanst) wrote : Re: [Bug 1001189] Re: 'man' command fails with lseek error

On Sun, May 20, 2012 at 20:07:40 -0000, Paul Crawford wrote:
> But trying this on a 32-bit 10.04 machine (not normally with this file
> available) I get something vaguely familiar:
>
> $ /usr/sbin/accessdb /packages/local/share/man/index.db
> gdbm fatal: read error
>
> So it seems the underlying issue is the database has no indication (or
> handling) of 64-bit versus 32-bit data! That seems to me to be a

I can confirm that if I copy /var/cache/man/index.db from a 64-bit
machine to a 32-bit Lucid machine, I get the same error:

  $ uname -m
  i686
  $ lsb_release -r
  Release: 10.04
  $ accessdb mandb_index.db_x86_64
  gdbm fatal: read error

That same operation on a Precise 32-bit machine fails with a slightly
different error message:

  $ uname -m
  i686
  $ lsb_release -r
  Release: 12.04
  $ accessdb mandb_index.db_x86_64
  accessdb: can't open mandb_index.db_x86_64 for reading

Opening this _x86_64 file on a 64-bit Lucid machine works fine.... but
on that machine the _i686 file fails:

  $ uname -m
  x86_64
  $ lsb_release -r
  Release: 10.04
  $ accessdb mandb_index.db_i686 | less
  accessdb: can't open mandb_index.db_i686 for reading: Invalid argument

      Nathan