Package: tdb-dev
Version: 1.0.6-13
Severity: normal

Hi,
I just spend some time searching for a really stupid bug...
I had opened a database O_RDONLY, and then tried to set a key in the DB.
This resulted in a segfault inside libtdb:

Program received signal SIGSEGV, Segmentation fault.
0xb7d7e687 in memcpy () from /lib/tls/libc.so.6
(gdb) bt
#0  0xb7d7e687 in memcpy () from /lib/tls/libc.so.6
#1  0xb7f2d950 in tdb_set_lock_alarm () from /usr/lib/libtdb.so.1
#2  0xb7f2dc5c in tdb_set_lock_alarm () from /usr/lib/libtdb.so.1
#3  0xb7f2ec23 in tdb_printfreelist () from /usr/lib/libtdb.so.1
#4  0xb7f2fff9 in tdb_store () from /usr/lib/libtdb.so.1
[...]

As soon as I used O_RDWR it worked just fine. TDB should handle that
gracefully instead of crashing with a segfault...

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.14-rc4
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=UTF-8)

Versions of packages tdb-dev depends on:
ii  libc6-dev                     2.3.5-7    GNU C Library: Development Librari
ii  libtdb1                       1.0.6-13   Trivial Database - shared library

tdb-dev recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to