tags 556207 + pending
thanks
Hi!
I am sorry for the big delay.
This bug was fixed in git master branch, next uploaded version will be
include this fixes.
For use btraceback functionality you will need to install bacula-*-dbg
packages.
However, this bug will not be fixed for squeeze, because squeeze
packages don't include required debug symbols.
On Sat, 14 Nov 2009 11:20:40 +0100, Matija Nalis wrote:
Package: bacula-director-common
Version: 3.0.3-1
Severity: normal
Tags: patch
if bacula-director is started as root with options "-u bacula -g
bacula", it
will drop permissions near startup, however many of the /proc/$pid
files
will continue to be owned by root (as that was UID that started the
process), which will break bacula-director internal functionality to
produce
backtrace using gdb if it crashes, that is
/var/lib/bacula/*.traceback files
will contain errors like:
ptrace: Operation not permitted.
/var/lib/bacula/25734: No such file or directory.
$1 = 0
/etc/bacula/scripts/btraceback.gdb:2: Error in sourced command file:
No symbol table is loaded. Use the "file" command.
instead of traceback which could be used to find bug.
If however bacula is started as user bacula and group bacula (by
using
start-stop-daemon functionality), the permissions on /proc/$pid are
set
correctly to user bacula and group bacula, and ptrace(2) works.
Attached is a simple patch which modifies startup scripts for
bacula-director (and bacula-sd) in that way, so ptrace(2) would work
if
needed.
-- System Information:
Debian Release: 5.0.3
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.30-bpo.1-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages bacula-director-common depends on:
ii adduser 3.110 add and remove users and
groups
ii bacula-common 3.0.3-1 network backup, recovery
and verif
ii bsd-mailx [mailx] 8.1.2-0.20071201cvs-3 A simple mail user agent
ii debconf [debconf-2 1.5.24 Debian configuration
management sy
ii libc6 2.7-18 GNU C Library: Shared
libraries
ii libgcc1 1:4.3.2-1.1 GCC support library
ii libssl0.9.8 0.9.8g-15+lenny5 SSL shared libraries
ii libstdc++6 4.3.2-1.1 The GNU Standard C++
Library v3
ii libwrap0 7.6.q-16 Wietse Venema's TCP
wrappers libra
ii mailx 1:20071201-3 Transitional package for
mailx ren
bacula-director-common recommends no packages.
bacula-director-common suggests no packages.
-- no debconf information
--
with best regards,
Alexander Golovko
email: alexan...@ankalagon.ru
xmpp: alexan...@ankalagon.ru
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org