Public bug reported:

When removing a key from a tkrzw hash database, the operation appears to
succeed, but the key is left there with a tombstone style value. This is
present on Ubuntu 25.10 (tkrzw version 1.0.32). The bug disappears when
the package is rebuilt with optimizations disabled (--disable-opt /
-O0). The bug also disappears if simply downloading the upstream source
and building it with `./configure && make`.

Steps to Reproduce:

sudo apt install -y tkrzw-utils
tkrzw_dbm_util create db.hash
tkrzw_dbm_util set db.hash a 1
tkrzw_dbm_util set db.hash b 2
tkrzw_dbm_util set db.hash c 3
tkrzw_dbm_util remove db.hash a
# The following line should NOT contain 'a'
tkrzw_dbm_util list db.hash | sort | cat -A

Expected Results:
b^I2$
c^I3$

Actual Results:
a^I M-^M--  $
b^I2$
c^I3$

ProblemType: Bug
DistroRelease: Ubuntu 25.10
Package: libtkrzw1t64 1.0.32-1
Uname: Linux 6.6.87.2-microsoft-standard-WSL2 x86_64
ApportVersion: 2.33.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: unknown
CloudBuildName: server
CloudSerial: 20190521
Date: Sat Feb 28 23:25:22 2026
ProcEnviron:
 LANG=C.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=tmux-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: tkrzw
UpgradeStatus: Upgraded to questing on 2025-12-15 (75 days ago)

** Affects: tkrzw (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug cloud-image questing wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2142937

Title:
  tkrzw remove fails or leaves corrupted data when compiled with default
  optimizations

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tkrzw/+bug/2142937/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to