View Issue Details

IDProjectCategoryView StatusLast Update
0000221bareos-coredirectorpublic2014-05-29 11:47
Reportermaik Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
PlatformLinuxOSUbuntuOS Version12.04
Product Version12.4.4 
Summary0000221: No traceback produced for sd, dir on Ubuntu 12.04
DescriptionNo traceback files are produced for dir and sd on Ubuntu 12.04 standard installation (Ubuntu 10 not tested, yet).

Need to check, if this a Bareos problem or if some special settings are needed on Ubuntu.

---- kill dir and see if it can create backtrace ----
---- killing: kill -SIGSEGV 4203 ---
----- waiting for PID 4203
------ PID 4203 took 1s to die
----- waiting for /var/lib/bareos/bareos.4203.traceback ----
------ File /var/lib/bareos/bareos.4203.traceback appeared in 0s
----- BEGIN of /var/lib/bareos/bareos.4203.traceback ----
Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
/var/lib/bareos/4203: No such file or directory.

---- kill sd and see if it can create backtrace ----
---- killing: kill -SIGSEGV 4215 ---
----- waiting for PID 4215
------ PID 4215 took 1s to die
----- waiting for /var/lib/bareos/bareos.4215.traceback ----
------ File /var/lib/bareos/bareos.4215.traceback appeared in 0s
----- BEGIN of /var/lib/bareos/bareos.4215.traceback ----
Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
/var/lib/bareos/4215: No such file or directory.

Steps To Reproduce# PID: pid of director / sd
kill -SIGSEGV $PID

Check for traceback file
/var/lib/bareos/bareos.$PID.traceback
Additional Informationmaybe this is a hint:
https://wiki.ubuntu.com/SecurityTeam/Roadmap/KernelHardening#ptrace_Protection
TagsNo tags attached.

Activities

maik

maik

2013-08-26 12:02

administrator   ~0000646

Ubuntu has changed default ptrace kernel options, you need to:
echo 0 > /proc/sys/kernel/yama/ptrace_scope sysctl

before debugging on Ubuntu.

Needs documentation in distribution specific section.
maik

maik

2013-09-06 16:32

administrator   ~0000659

add to documentation
joergs

joergs

2014-05-29 11:47

developer   ~0000887

added to documentation

Issue History

Date Modified Username Field Change
2013-08-26 11:37 maik New Issue
2013-08-26 12:02 maik Note Added: 0000646
2013-08-26 12:02 maik Assigned To => joergs
2013-08-26 12:02 maik Status new => resolved
2013-08-26 12:02 maik Resolution open => no change required
2013-09-06 16:32 maik Note Added: 0000659
2014-05-29 11:47 joergs Note Added: 0000887
2014-05-29 11:47 joergs Status resolved => closed
2014-05-29 11:47 joergs Assigned To joergs =>