Package: makejail
Version: 0.0.5-7
Severity: normal
by default makejail writes all strace output into a single file. This
however produces unpredictable results whenever child processes are
forked. In this case strace may produce output like:
13578 access("/etc/ld.so.preload", R_OK <unfinished ...>
....which the regex will obviously not recognize.
The solution is tracing with the -ff option. This however requires that
we collect strace information from pid-specific files. We could do
something like:
@@ -682,6 +682,13 @@
out.append(line)
debug(string.join(out," "))
+ # Join the generated pid-specific trace files (strace -ff) into
one single trace file
+ # If there are no such files the following lines should do
nothing.
+ debug("Joining pid-specific trace files (if any)...")
+ command=string.replace("cat %file.* >>%file
2>/dev/null","%file",straceTempFileName)
+ os.system(command)
+ os.system("rm -f %s.* >/dev/null 2>/dev/null" %
straceTempFileName)
+
if config.straceCommandView:
command=string.replace(config.straceCommandView,"%file",straceTempFileName)
lines=execute(command)
-- System Information:
n/a
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]