1 Noteworthy changes in release ?.? (????-??-??)
2 ==============================================
4 Noteworthy changes in release 4.8 (2013-06-03)
5 ==============================================
8 * In case of normal strace termination, when the trace output is
9 redirected to a pipe, strace now closes it and waits for the pipe
10 process termination before exit.
13 * Implemented tracing using PTRACE_SEIZE API (when available).
14 * Implemented more reliable PTRACE_GETREGSET-based process personality
15 detection on x86-64 and x32 (when available).
16 * Added -e trace=memory option for tracing memory mapping related syscalls.
17 * Documented -b option.
18 * Allowed exit status messages to be suppressed by giving -q option twice.
19 * Added AArch64 architecture support
20 (addresses Debian bug #693074 and Fedora bug #969858).
21 * Added support for OpenRISC 1000, Meta, and Xtensa architectures.
22 * Added tilegx personality support for Tile.
23 * Enhanced support of NOMMU architectures.
24 * Enhanced decoding of getdents, mmap, perf_event_open, ptrace, and
26 * Added new syscall entries to match Linux 3.9.
27 * Regenerated the list of common ioctl names from Linux 3.9.
28 * Updated the list of errno constants.
29 * Updated lists of AF_*, MADV_*, MAP_*, MSG_*, MS_*, PF_*, PR_*,
30 PTRACE_O_*, and TCP_* constants.
31 * Implemented decoding of UBI ioctls.
32 * Removed redundant "*32" ioctl names.
35 * Fixed ERESTARTNOINTR leaking to userspace on ancient kernels
36 (addresses Fedora bug #659382).
37 * Fixed kernel release string parsing
38 (addresses Debian bug #702309).
39 * Fixed decoding of *xattr syscalls
40 (addresses Fedora bug #885233).
41 * Fixed handling of files with 64-bit inode numbers by 32-bit strace
42 (addresses Fedora bug #912790).
43 * Fixed tracing forks on SPARC.
44 * Fixed decoding of fadvise64, fallocate, ftruncate64, io_submit, pread,
45 preadv, pwrite, pwritev, readahead, sigaltstack, sync_file_range, sysctl,
46 and truncate64 syscalls.
47 * Fixed categories of multiple syscalls on most of supported architectures.
48 * Fixed decoding of non-native 32-bit personality recv[m]msg syscalls.
49 * Fixed decoding of multiple 32-bit personality syscalls on x32.
50 * Fixed decoding of long long syscall arguments on ARM, MIPS/o32, PowerPC,
51 S390x, and Tile architectures.
52 * Fixed semtimedop decoding on S390x.
53 * Fixed sram_alloc decoding on Blackfin.
54 * Fixed build when process_vm_readv is a stab.
55 * Fixed build with older versions of libaio.h.
57 Noteworthy changes in release 4.7 (2012-05-02)
58 ==============================================
61 * strace no longer suspends waitpid until there is a child
62 for waitpid'ing process to collect status from.
63 * strace no longer detaches from a tracee which is supposed
65 * strace now issues a new message: "+++ exited with EXITCODE +++"
66 which shows exact moment strace got exit notification,
67 analogous to existing "+++ killed by SIG +++" message.
70 * Added x32 personality support (x86_64 architecture).
71 * Added -y and -P options to print file descriptor paths and
72 filter by those paths.
73 * Added -I option to control strace interactivity.
74 * Allowed -p option to take comma or whitespace-separated list of PIDs.
75 * Added strace_log_merge script helper to merge timestamped "strace -ff"
77 * Implemented decoding of clock_adjtime, get_robust_list, migrate_pages,
78 preadv, prlimit64, process_vm_readv, process_vm_writev, pwritev,
79 recvmmsg, recvmsg, rt_tgsigqueueinfo, sendmmsg, setns, set_robust_list,
80 sched_rr_get_interval, splice, syslog, tee and vmsplice syscalls.
81 * Enhanced decoding of capget, capset, getrlimit, flistxattr, io_submit,
82 listxattr, setrlimit and swapon syscalls.
83 * Implemented decoding of loop and mtd ioctls.
84 * Added syscall entries for new linux syscalls.
85 * Added syscall entries for direct socket system calls on powerpc.
86 * Updated the list of errno constants.
87 * Updated lists of MSG_*, STA_*, and TCP_* constants.
88 * Regenerated the list of ioctl names from Linux 3.3.
89 * Enhanced switching between processes with different personalities.
90 * Enhanced signals reporting by using short signal names.
91 * Made ERESTART* messages more descriptive.
92 * Made parsing of numbers from strings more robust.
93 * Added support for compat_statfs64 and statfs64.f_flags.
94 * Changed read of data blocks to use single process_vm_readv syscall
95 (when available) instead of several PTRACE_PEEKDATA operations.
96 * Changed read of registers on x86 and x86-64 to use single PTRACE_GETREGS
97 operation instead of several PTRACE_PEEKUSER operations.
98 * Applied various optimizations to make strace work faster.
101 * Implemented proper handling of real SIGTRAPs on kernels supporting
102 PTRACE_O_TRACESYSGOOD.
103 (Addresses Fedora bug #162774).
104 * Fixed sockaddr_un.sun_path name in decoded output.
105 (Addresses Debian bug #554946).
106 * Fixed to avoid potential core file clobbering on exit.
107 (Addresses Debian bug #656398).
108 * Fixed a typo in documentation.
109 (Addresses Debian bug #653309).
110 * Fixed decoding of timer id returned by timer_create.
111 * Fixed epoll_create1, epoll_wait and epoll_pwait decoding.
112 * Fixed *at syscalls flags decoding.
113 * Fixed ARM EABI 64-bit syscall's arguments decoding.
114 * Fixed semtimedop decoding on s390.
115 * Fixed osf_sigprocmask decoding on alpha.
116 * Fixed ipc and socket subcall decoding on several architectures.
117 * Corrected syscall entries for epoll_pwait, epoll_create, epoll_ctl,
118 epoll_wait, mincore, mlockall, prctl, reboot, sendfile, sendfile64,
119 sendmsg, sgetmask, ssetmask, swapon, tgkill and tkill syscalls.
120 * Corrected io_* syscall entries on ARM.
121 * Fixed PID prefix printing in "strace -oLOG -ff -p1 -p2 -p3" case.
122 * Fixed logging of unfinished lines in "strace -oLOG -ff" case.
123 * Fixed build when libaio-devel is not available.
124 * Fixed configure checks for PTRACE_* constants.
125 * Fixed compilation warnings remained on several architectures.
128 * Removed all non-Linux code. After years of neglect, that dead code
129 just hampered further strace development.
130 * Linux kernel >= 2.6.18 is recommended. Older versions might still
131 work but they haven't been thoroughly tested with this release.
133 Noteworthy changes in release 4.6 (2011-03-15)
134 ==============================================
136 * Changes in behavior
137 * Print diagnostic information about changes in personality mode to
138 standard error instead of standard output.
141 * Implemented a new method of following clone, fork, and vfork
142 syscalls using the Linux kernel's explicit facilities for tracing
143 creation of threads and child processes.
144 * Implemented CLONE_PARENT and CLONE_UNTRACED flags handling.
145 * Implemented decoding of TLS syscalls on m68k.
146 * Implemented biarch support on powerpc64.
147 * Implemented biarch support for getrlimit() and setrlimit().
148 * Implemented decoding of struct ucred in getsockopt SO_PEERCRED.
149 * Implemented SOL_SCTP socket options decoding.
150 * Added HDIO_* ioctl names.
151 (Addresses Debian bug #450953).
152 * Added LOOP_* ioctl names.
153 * Updated lists of CLOCK_*, CLONE_*, MS_*, and SOL_* constants
154 to match Linux 2.6.37.
155 * Updated the list of IPPROTO_* constants to match netinet/in.h.
156 * Implemented decoding of HDIO_* and BLK* ioctls.
157 * Added MicroBlaze architecture support.
158 * Added new syscall entries to match Linux 2.6.37.
159 * Regenerated list of ioctl names from Linux 2.6.37.
160 * Enhanced signal notification decoding.
161 * Documented -C and -D options.
164 * Fixed fetching syscall arguments on m68k.
165 * Fixed an error when judging whether a process has children.
166 * Fixed get/set_robust_list syscall numbers for powerpc.
167 * Fixed a corner case in printing clone flags.
168 * Fixed cross-compiling issues.
169 * Fixed build issues on powerpc64, SH and SPARC.
170 * Fixed syscall flags of fstatat*, mmap, mmap2, fadvise64*, swapoff,
171 fgetxattr, flistxattr, fremovexattr, epoll_create, fallocate,
172 fanotify_init, and fanotify_mark syscalls.
173 * Fixed decoding of get[ug]id, gete[ug]id and setfs[ug]id return values.
174 * Fixed biarch support in IO dumping.
175 * Fixed raw exit_group decoding.
176 * Fixed decoding of file descriptors on 64-bit architectures.
177 * Fixed a corner case in waitpid handling.
178 (Addresses Red Hat bug #663547).
179 * Fixed stat64 decoding on mips
180 (Addresses Debian bug #599028).
181 * Fixed misleading italics in the manual page.
182 (Addresses Debian bug #589323).
184 Noteworthy changes in release 4.5.20 (2010-04-13)
185 =================================================
188 * Implemented decoding of new linux syscalls: inotify_init1, recvmmsg.
189 * Implemented basic decoding of new linux syscalls: preadv, pwritev,
190 rt_tgsigqueueinfo, perf_event_open.
191 * Enhanced decoding of recently added syscalls on non-x86 architectures
192 by replacing a bare decoder with elaborate parsers enabled earlier
194 * Implemented -C option to combine regular and -c output.
195 (Addresses Debian bug #466196)
196 * Enhanced decoding of mbind and mremap syscalls.
197 * Enhanced SOL_PACKET socket options decoding.
198 * Regenerated list of ioctl names from linux 2.6.33.
199 * Added TILE architecture support.
202 * Fixed build with Linux kernel headers 2.6.32-rc5+.
203 (Addresses Debian bug #560516 and Fedora bug #539044)
204 * Fixed build on mips.
205 * Fixed handling of Linux systems without struct statfs64.
206 * Fixed reporting signal mask by sigreturn on powerpc.
207 * Fixed potential stack buffer overflow in select decoder.
208 (Addresses Fedora bug #556678)
209 * Corrected msgsnd indirect ipccall decoding.
210 * Corrected decoding of 64bit syscalls.
211 (Addresses Debian bug #570603)
212 * Corrected getsockopt decoding on architectures where
213 sizeof(long) > sizeof(int).
214 (Addresses Debian bug #494844)
215 * Corrected decoding of epoll_pwait.
216 (Addresses Debian bug #513014)
217 * Corrected handling of killed threads.
219 Noteworthy changes in release 4.5.19 (2009-10-21)
220 =================================================
222 * Changes in behavior
223 * When command exits, strace now exits with the same exit status.
224 If command is terminated by a signal, strace terminates itself
225 with the same signal, so that strace can be used as a wrapper
226 process transparent to the invoking parent process.
227 When using -p option, the exit status of strace is zero unless
228 there was an unexpected error in doing the tracing.
229 (Addresses Fedora bug #105371 and Debian bug #37665)
232 * Implemented decoding of new Linux syscalls: accept4, dup3,
233 epoll_create1, eventfd2, inotify_init1, pipe2, signalfd4.
234 * Implemented decoding of socket type flags introduced in Linux 2.6.27.
235 * Implemented decoding of accept4 socketcall.
236 * Enhanced prctl decoding.
237 * Enhanced nanosleep decoding.
238 * Enhanced ptrace decoding.
239 * Enhanced futex decoding.
240 * Enhanced CAP_* decoding.
241 * Enhanced SIOCS* ioctls decoding.
242 * Enhanced fcntl F_* flags decoding.
243 * Enhanced semop/semtimedop decoding.
244 * Updated ARM architecture support.
245 * Added Blackfin architecture support.
246 * Added AVR32 architecture support.
247 * Added CRIS architecture support.
248 * Made strace detect when traced process suddenly disappeared.
251 * Fixed syscall numbers for tee and sync_file_range.
252 (Addresses Debian bug #503124)
253 * Fixed several bugs in strings decoder, including potential heap
255 (Addresses Fedora bugs #470529, #478324 and #511035)
256 * Marked sendfile(2) as a network syscall.
257 (Addresses Debian bug #509499)
258 * Fixed accept(2) decoding.
259 (Addresses Debian bug #507573)
260 * Fixed sigtimedwait(2) decoding.
261 * Fixed build on ARM EABI.
262 (Addresses Debian bugs #520084 and #535564, and Fedora bug #507576)
263 * Fixed display of 32-bit fcntl(F_SETLK) on 64-bit architectures.
264 (Addresses Red Hat bug #471169)
265 * Fixed display of 32-bit argv array on 64-bit architectures.
266 (Addresses Fedora bug #519480)
267 * Fixed display of 32-bit struct sigaction on 64-bit architectures.
268 * Fixed HPPA architecture support.
269 (Addresses Debian bugs #437928 and #546619)
274 * Support new Linux/PPC system call subpage_prot and PROT_SAO flag.
275 * In sigaction system call, display sa_flags value along with SIG_DFL/SIG_IGN.
280 * -F is now deprecated, -f has traced vfork too on Linux for a long time now.
281 * Print O_CLOEXEC, MSG_CMSG_CLOEXEC flag bits.
282 * Improved output for prctl system call on Linux.
283 * Improved support for Linux/ARM.
284 * SA_NOMASK is now spelled SA_NODEFER, and SA_ONESHOT is spelled SA_RESETHAND.
289 * Improved output for delete_module, futex, and mbind system calls on Linux.
290 * Improved output for SG_IO ioctls on Linux.
291 * Support new Linux system calls move_pages, utimensat, signalfd, timerfd,
292 eventfd, getcpu, epoll_pwait.
297 * Several biarch improvements.
298 * Improved output for adjtimex, sysctl, quotactl, mount, umount.
299 * Support new Linux system calls *at, inotify*, pselect6, ppoll and unshare.
304 * Accept numeric system calls in -e.
309 * Introduce "-e trace=desc".
314 * Better x86-64 support for IA32 processes.
315 * Update PowerPC system calls.
316 * Better printing for Linux aio system calls.
320 * Quick fix release for build issues.
321 * One fix for Linux/ARM system call table.
326 * Print fault address for SIGSEGV/SIGBUS signals when available.
331 * Improve socket ioctl printing.
332 * Update Linux/IA64 syscall list.
333 * Fix Linux/x86-64 syscall argument extraction for 32-bit processes.
334 * Improve mount flags printing.
335 * Support symbolic printing of x86_64 arch_prctl parameters.
340 * Update syscall tables for Alpha, ARM, HPPA.
341 * Support new Linux syscalls mbind, set_mempolicy, get_mempolicy, waitid.
342 * Support Linux syscalls fadvise64, fadvise64_64, and epoll_*.
343 * Improve ioctl command name matching.
344 * Print RTC_* ioctl structure contents.
345 * Support newer RLIMIT_* values.
346 * Print struct cmsghdr details in sendmsg.
351 * Print attribute values in *xattr system calls on Linux.
352 * Include pread and pwrite calls in -e read and -e write tracing.
353 * Update SO_* and IP_* value lists and add IPV6_* values for socket options.
354 * Print clock_t values symbolically in Linux clock_* system calls.
358 * Bug fixes, Linux ioctl updates.
359 * David Miller contributed support for Linux/SPARC64.
367 * Update Linux ioctl lists.
368 * Update PF_* and AF_* value lists.
369 * The 4.5.3 -p behavior for NPTL threads applies only under -f, and got fixed.
374 * On Linux using NPTL threads, -p will now attach to all threads in a process.
375 * Handle new mq_* system calls in Linux 2.6.6 and later.
380 * Report some new VM_* bit values on Linux.
381 * Better output for Linux sched_* system calls.
386 * Display multiple ioctl name matches on Linux.
390 * New port to AMD's x86-64 architecture. One strace binary can
391 handle both new x86-64 and old i386 processes.
392 * Fixed support for LFS64 calls.
393 * New switch -E to add/remove environment variables for the command.
394 * Merged s390/s390x port.
395 * Trace an unbounded number of processes.
396 * Handle numerous new system calls in Linux 2.5, and new threads semantics.
397 * Fixed bugs with attach/detach leaving things stopped.
398 * Fixed traced process seeing ECHILD despite live, traced children
399 in waitpid calls with WNOHANG.
400 * Stuart Menefy contributed a port to Linux/SH.
401 * Stephen Thomas contributed a port to Linux/SH64.
402 * Many other bug fixes.
406 * Fix Linux/ia64 support, looks like someone renamed a few things on us
407 * Fix the ioctl setup for Linux, turned out it did not really work.
408 Improve the ioctl extracter as well so we decode some more ones.
412 * compile fixes for Linux/mips
416 * Linux ia64 and hppa ports added
417 * The usual Linux syscall updates (includes 32bit uid/gid support),
418 * Linux ioctl list updated
419 * Support IPv6 scope ids
420 * FreeBSD/i386 port added
421 * UnixWare and Solaris updates
422 * Better support for tracing multithreaded processes in Linux
426 * Compiles on glibc2.0 systems again
427 * Linux/S390 port added
428 * The usual Linux syscall updates
429 * we can follow fork on arm now
433 * Linux/MIPS port added
434 * Lots of Linux updates again
435 * Improved IPv6 support
441 * Compiles on glibc2.0 systems again
445 * Get stat structure properly on Linux 64bit archs
446 * Personalities work again
447 * Compile correctly on SunOS again
453 * Linux (ultra)sparc fixes
460 * add support for more Linux architectures (powerpc, sparc, arm)
461 * support lots more Linux syscalls
462 * fix signal handling
463 * add IPX and IPIP support
464 * check stray syscall after execv
465 * fix hanging children
467 Changes in version 3.1
468 ======================
471 * Linux 68k is supported
472 * Linux alpha is supported
473 * configure is upgraded to autoconf 2.x
474 * using -f in combination with -e now works correctly
475 * output can be piped to a program
476 * tracing setuid programs works better
477 * it is now reasonable to install strace setuid to root in some circumstances
478 * new useful tracing names like file and process to trace whole
479 classes of system calls, e.g. -efile traces all system calls that
480 take a file name as an argument
481 * IPC calls on SunOS 4.1.x are decoded
482 * Linux program memory is reliably dereferenced
483 * Linux decodes at least the name of all syscalls as of pre2.0.4
484 * various cosmetic changes and bug fixes
486 Changes from versions 2.x to version 3.0
487 ========================================
489 * filename arguments are neither abbreviated nor stringified
490 * string arguments are now true C strings using octal instead of hex by default
491 * preprocessor constants are never shortened (e.g. was RDONLY => now O_RDONLY)
492 * by default the output for multiple processes now goes into one file
493 * all structures, vectors, bitsets, etc. use consistent output formats
494 * the -c option now means count calls, -i does what the old -c used to do
496 New Features in version 3.0
497 ===========================
499 * non-ascii strings can be optionally printed entirely in hex
500 * the output format is readable when mutiple processes are generating output
501 * exit values are printed in an alignment column
502 * is is possible to suppress messages about attaching and detaching
503 * various tracing features can be enabled on a per syscall/signal/desc basis
504 * selective tracing of syscalls
505 * selective printing of syscall structures
506 * selective abbreviation of long structures on a per syscall basis
507 * selective printing of raw syscall arguments and results
508 * selective tracing of signals
509 * selective dumping of all I/O read from file descriptors
510 * selective dumping of all I/O written to file descriptors
511 * optional counting of time, calls, and errors for each syscall