Mon Jun 18 04:20:41 BST 2012 Colin Watson <[email protected]>
Avoid fatal errors when opening a 64-bit GDBM database from a 32-bit
process (Ubuntu bug #1001189).
* libdb/db_gdbm.c (trap_error): New function.
(man_gdbm_open_wrapper): Rearrange interface to call gdbm_open
rather than taking its return value as an argument. Fetch a test
value from the database after opening it, inside a setjmp/longjmp
guard to prevent GDBM from exiting.
* include/mydbm.h (man_gdbm_open_wrapper): Update prototype.
(MYDBM_CTRWOPEN, MYDBM_CRWOPEN, MYDBM_RWOPEN, MYDBM_RDOPEN):
Update man_gdbm_open_wrapper calls, since it now calls gdbm_open
itself.
* NEWS: Document this.
It sounds like it might not be a bad idea to backport this to 12.04 as
well, once this has landed in 12.10.
** Changed in: man-db (Ubuntu)
Status: Triaged => Fix Committed
** Changed in: man-db (Ubuntu)
Assignee: (unassigned) => Colin Watson (cjwatson)
** Also affects: gdbm (Ubuntu Precise)
Importance: Undecided
Status: New
** Also affects: man-db (Ubuntu Precise)
Importance: Undecided
Status: New
** No longer affects: gdbm (Ubuntu Precise)
** Changed in: man-db (Ubuntu Precise)
Status: New => Triaged
** Changed in: man-db (Ubuntu Precise)
Importance: Undecided => High
** Changed in: gdbm (Ubuntu)
Status: Confirmed => Triaged
** Changed in: gdbm (Ubuntu)
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1001189
Title:
'man' command fails with lseek error opening cross-architecture
index.db file (on network share)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdbm/+bug/1001189/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs