🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
2 messages
2 total messages Started by Gioele Barabucci Sat, 24 Oct 2026 22:50
Bug#1136574: rocksdb uses pidof but does not depend on procps
#1994
Author: Gioele Barabucci
Date: Sat, 24 Oct 2026 22:50
59 lines
4292 bytes
Control: severity -1 minor

On Thu, 14 May 2026 01:31:51 +0200 Gioele Barabucci <gioele@debian.org> 
wrote:
> it appears that rocksdb uses `pidof` in its testsuite, or that
> at least one of its binary packages uses `pidof` at runtime.
> Historically, `pidof` was provided by the Essential package
> `sysvinit-tools`, making an explicit dependency unnecessary. However
> `pidof` will soon be moved to `procps` and will no longer be part of
> the Essential set.
> 
> Please add an explicit dependency on `procps`:
> 
> * via the `Depends:` field of all binary packages of rocksdb
>   that use `pidof` at runtime;
> * via the `Build-Depends:` field of rocksdb, if `pidof` is
>   used in tests run at build-time;
> * via the `Depends:` field of `debian/control/tests`, if `pidof` is
>   used in autopkgtests.
> 
> To prevent any disruption for users of rocksdb, please add
> this dependency now, before `pidof` is moved from `sysvinit-utils` to
> `procps`. Alternatively, you could remove all uses of `pidof`.
> 
> It is believed that rocksdb uses `pidof` due to the following
> code snippets:
> 
> ```
> path: rocksdb_9.11.2-1/tools/regression_test.sh
> # $6 --- async_io. Default: False
> function run_db_bench {
>   # Make sure no other db_bench is running. (Make sure command succeeds if pidof
>   # command exists but finds nothing.)
>   pids_cmd='pidof db_bench || pidof --version > /dev/null'
> 
> 
> path: rocksdb_9.11.2-1/tools/regression_test.sh
>   # But first, make best effort to kill any db_bench that have run for more
>   # than 12 hours, as that indicates a hung or runaway process.
>   kill_old_cmd='for PID in $(pidof db_bench); do [ "$(($(stat -c %Y /proc/$PID) + 43200))" -lt "$(date +%s)" ] && echo "Killing old db_bench $PID" && kill $PID && sleep 5 && kill -9 $PID && sleep 5; done; pidof --version > /dev/null'
>   if ! [ -z "$REMOTE_USER_AT_HOST" ]; then
>     pids_cmd="$SSH $REMOTE_USER_AT_HOST '$pids_cmd'"
> ```
Dear rocksdb maintainers,

the script `tools/regression_test.sh` does not seems to be run at 
build-time (the tests are disabled «Test is no-op as running for hours 
on a normal PC»), nor as part of an autopkgtest (there are none), nor 
shipped in any binary package.

If this analysis is correct, you can close this bug report without 
further action.

In the meantime I'll lower the severity to minor.

Regards,

-- 
Gioele Barabucci
Bug#1136574: rocksdb uses pidof but does not depend on procps
#2058
Author: Otto Kekäläinen
Date: Sun, 25 Oct 2026 18:10
7 lines
2837 bytes
Hi,

Indeed, `tools/regression_test.sh` is just for testing RocksDB itself.
We should however start running it in autopkgtest or something so I
will keep this bug open as a reminder at least until I have time to
update RocksDB version to a newer one and do a pass of improvements on
it.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads