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