[Pkg-db-devel] Bug#458134: db4.6-util: segfaults and othe rproblems

Marc Lehmann debian-reportbug at plan9.de
Fri Dec 28 21:50:25 UTC 2007


Package: db4.6-util
Version: 4.6.21-4
Severity: important


the db4.6-utils seem pretty hosed:

db4.6_dump segfaults:

   db:             Berkeley DB (Btree, version 9, native byte-order)
   # db4.6_dump db
   Segmentation fault
   (backtrace shows some crash in __memp_resize but is otherwise useless)

db4.6_verify as well.
db4.6_stat -d db as well

db4.6_checkpoint -1 works fine
db4.6_printlog works fine

the database has been upgraded via db4.6_upgrade (which ran without
problems) and can be accessed/updated by programs linked against libdb4.6
seemingly without problems.

db4.6_stat -E gives:

   db4.6_stat: DB_ENV->open: Cannot allocate memory
   db4.6_stat: dbenv->close: Cannot allocate memory
   [Exit 1] 

   strace:
   open("DB_CONFIG", O_RDONLY)             = -1 ENOENT (No such file or directory)
   stat("/var/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=232, ...}) = 0
   open("__db.001", O_RDWR)                = 3
   fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
   fstat(3, {st_mode=S_IFREG|0644, st_size=24576, ...}) = 0
   close(3)                                = 0
   open("__db.001", O_RDWR)                = 3
   fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
   mmap(NULL, 24576, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = 0x2b3f838c8000
   close(3)                                = 0
   write(2, "db4.6_stat: ", 12db4.6_stat: )            = 12
   write(2, "DB_ENV->open", 12DB_ENV->open)            = 12
   write(2, ": ", 2: )                       = 2
   write(2, "Cannot allocate memory", 22Cannot allocate memory)  = 22
   write(2, "\n", 1
         )                       = 1
   write(2, "db4.6_stat: dbenv->close: Cannot"..., 49db4.6_stat: dbenv->close: Cannot allocate memory
         ) = 49
   exit_group(1)                           = ?

in short, 4.6 seems to be pretty hosed, the same app has worked fine with
db4.5 and db4.4 (the app still works with 4.6, but the utilities don't).

also, the database files are not portable among architectures (a database
file created on an x86 host will not work on an amd64 host, unlike the
claims in the documentation).

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.21-2-amd64
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages db4.6-util depends on:
hi  libc6                         2.7-5      GNU C Library: Shared libraries
ii  libdb4.6                      4.6.21-4   Berkeley v4.6 Database Libraries [

db4.6-util recommends no packages.

-- no debconf information





More information about the Pkg-db-devel mailing list