| Summary: | pstree is killed by signal if stdout is redirected to a file | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | Vladimir D. Seleznev <vseleznv> |
| Component: | psmisc | Assignee: | Vitaly Chikunov <vt> |
| Status: | CLOSED DUPLICATE | QA Contact: | qa-sisyphus |
| Severity: | normal | ||
| Priority: | P5 | CC: | ldv, vt |
| Version: | unstable | ||
| Hardware: | aarch64 | ||
| OS: | Linux | ||
| See Also: | https://bugzilla.altlinux.org/show_bug.cgi?id=40857 | ||
Do you forgot to post pstree version on aarch64? |
On aarch64: $ uname -m aarch64 $ pstree -p > pstree File size limit exceeded $ du pstree 0 pstree $ pstree -p |tee > pstree $ du pstree 16K pstree Lets trace it: $ strace -o pstree.trace pstree -p > pstree File size limit exceeded $ tail pstree.trace newfstatat(AT_FDCWD, "/proc/4187067/ns/user", 0xffffc7ed6ab0, 0) = -1 EACCES (Permission denied) newfstatat(AT_FDCWD, "/proc/4187067/ns/uts", 0xffffc7ed6ab0, 0) = -1 EACCES (Permission denied) close(4) = 0 getdents64(3, 0xaaaabee05120 /* 0 entries */, 32768) = 0 close(3) = 0 prlimit64(0, RLIMIT_NOFILE, {rlim_cur=0, rlim_max=0}, NULL) = 0 fstat(1, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 write(1, "systemd(1)-+-agetty(4099)\n "..., 4096) = -1 EFBIG (File too large) --- SIGXFSZ {si_signo=SIGXFSZ, si_code=SI_USER, si_pid=648134, si_uid=1720} --- +++ killed by SIGXFSZ +++ $ Killed by SIGXFSZ On x86_64: $ uname -m x86_64 $ pstre pstree pstree.x11 $ pstree -p > pstree $ du pstree 104K pstree $ It works well.