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