blob: dbf838fbc8984bfde68ce9cbdd18366a7b7e2615 [file] [log] [blame]
Dmitry V. Levin84e50fc2012-04-20 17:32:50 +00001Noteworthy changes in release 4.7
2=================================
3
4* Changes in behavior
5 * strace no longer suspends waitpid until there is a child
6 for waitpid'ing process to collect status from.
7 * strace no longer detaches from a tracee which is supposed
8 to be going to die.
9 * strace now issues a new message: "+++ exited with EXITCODE +++"
10 which shows exact moment strace got exit notification,
11 analogous to existing "+++ killed by SIG +++" message.
12
13* Improvements
14 * Added x32 architecture support.
15 * Added -y and -P options to print file descriptor paths and
16 filter by those paths.
17 * Added -I option to control strace interactivity.
18 * Allowed -p option to take comma or whitespace-separated list of PIDs.
19 * Added strace_log_merge script helper to merge timestamped "strace -ff"
20 log files.
21 * Implemented decoding of clock_adjtime, get_robust_list, migrate_pages,
22 preadv, prlimit64, process_vm_readv, process_vm_writev, pwritev,
23 rt_tgsigqueueinfo, sendmmsg, setns, set_robust_list,
24 sched_rr_get_interval, splice, syslog, tee and vmsplice syscalls.
25 * Enhanced decoding of capget, capset, getrlimit, flistxattr, io_submit,
26 listxattr, setrlimit and swapon syscalls.
27 * Implemented decoding of loop and mtd ioctls.
28 * Added syscall entries for new linux syscalls.
29 * Added syscall entries for direct socket system calls on powerpc.
30 * Updated the list of errno constants.
31 * Updated lists of MSG_* and TCP_* constants.
32 * Regenerated the list of ioctl names from Linux 3.3.
33 * Enhanced switching between processes with different personalities.
34 * Enhanced signals reporting by using short signal names.
35 * Made ERESTART* messages more descriptive.
36 * Made parsing of numbers from strings more robust.
37 * Added support for compat_statfs64 and statfs64.f_flags.
38 * Changed read of data blocks to use single process_vm_readv syscall
39 (when available) instead of several PTRACE_PEEKDATA operations.
40 * Changed read of registers on x86 and x86-64 to use single PTRACE_GETREGS
41 operation instead of several PTRACE_PEEKUSER operations.
42 * Applied various optimizations to make strace work faster.
43
44* Bug fixes
45 * Implemented proper handling of real SIGTRAPs on kernels supporting
46 PTRACE_O_TRACESYSGOOD.
47 (Addresses Fedora bug #162774).
48 * Fixed sockaddr_un.sun_path name in decoded output.
49 (Addresses Debian bug #554946).
50 * Fixed to avoid potential core file clobbering on exit.
51 (Addresses Debian bug #656398).
52 * Fixed a typo in documentation.
53 (Addresses Debian bug #653309).
54 * Fixed decoding of timer id returned by timer_create.
55 * Fixed epoll_create1, epoll_wait and epoll_pwait decoding.
56 * Fixed *at syscalls flags decoding.
57 * Fixed ARM EABI 64-bit syscall's arguments decoding.
58 * Fixed semtimedop decoding on s390.
59 * Fixed osf_sigprocmask decoding on alpha.
60 * Fixed ipc and socket subcall decoding on several architectures.
61 * Corrected syscall entries for epoll_pwait, epoll_create, epoll_ctl,
62 epoll_wait, mincore, mlockall, prctl, reboot, sendfile, sendfile64,
63 sendmsg, sgetmask, ssetmask, swapon, tgkill and tkill syscalls.
64 * Corrcted io_* syscall entries on ARM.
65 * Fixed PID prefix printing in "strace -oLOG -ff -p1 -p2 -p3" case.
66 * Fixed logging of unfinished lines in "strace -oLOG -ff" case.
67 * Fixed build when libaio-devel is not available.
68 * Fixed configure checks for PTRACE_* constants.
69 * Fixed compilation warnings remained on several architectures.
70
71* Portability
72 * Removed all non-Linux code. After years of neglect, that dead code
73 just hampered further strace development.
74
Dmitry V. Levin50e69cb2011-02-21 22:58:59 +000075Noteworthy changes in release 4.6
76=================================
77
78* Changes in behavior
79 * Print diagnostic information about changes in personality mode to
80 standard error instead of standard output.
81
82* Improvements
83 * Implemented a new method of following clone, fork, and vfork
84 syscalls using the Linux kernel's explicit facilities for tracing
85 creation of threads and child processes.
86 * Implemented CLONE_PARENT and CLONE_UNTRACED flags handling.
87 * Implemented decoding of TLS syscalls on m68k.
88 * Implemented biarch support on powerpc64.
89 * Implemented biarch support for getrlimit() and setrlimit().
90 * Implemented decoding of struct ucred in getsockopt SO_PEERCRED.
91 * Implemented SOL_SCTP socket options decoding.
92 * Added HDIO_* ioctl names.
93 (Addresses Debian bug #450953).
94 * Added LOOP_* ioctl names.
95 * Updated lists of CLOCK_*, CLONE_*, MS_*, and SOL_* constants
96 to match Linux 2.6.37.
97 * Updated the list of IPPROTO_* constants to match netinet/in.h.
98 * Implemented decoding of HDIO_* and BLK* ioctls.
99 * Added MicroBlaze architecture support.
100 * Added new syscall entries to match Linux 2.6.37.
101 * Regenerated list of ioctl names from Linux 2.6.37.
102 * Enhanced signal notification decoding.
103 * Documented -C and -D options.
104
105* Bug fixes
106 * Fixed fetching syscall arguments on m68k.
107 * Fixed an error when judging whether a process has children.
108 * Fixed get/set_robust_list syscall numbers for powerpc.
109 * Fixed a corner case in printing clone flags.
110 * Fixed cross-compiling issues.
111 * Fixed build issues on powerpc64, SH and SPARC.
112 * Fixed syscall flags of fstatat*, mmap, mmap2, fadvise64*, swapoff,
113 fgetxattr, flistxattr, fremovexattr, epoll_create, fallocate,
114 fanotify_init, and fanotify_mark syscalls.
115 * Fixed decoding of get[ug]id, gete[ug]id and setfs[ug]id return values.
116 * Fixed biarch support in IO dumping.
117 * Fixed raw exit_group decoding.
118 * Fixed decoding of file descriptors on 64-bit architectures.
119 * Fixed a corner case in waitpid handling.
120 (Addresses Red Hat bug #663547).
121 * Fixed stat64 decoding on mips
122 (Addresses Debian bug #599028).
123 * Fixed misleading italics in the manual page.
124 (Addresses Debian bug #589323).
125
Dmitry V. Levinacbe5182010-04-06 23:46:43 +0000126Noteworthy changes in release 4.5.20
127====================================
128
129* Improvements
130 * Implemented decoding of new linux syscalls: inotify_init1, recvmmsg.
131 * Implemented basic decoding of new linux syscalls: preadv, pwritev,
132 rt_tgsigqueueinfo, perf_event_open.
133 * Enhanced decoding of recently added syscalls on non-x86 architectures
134 by replacing a bare decoder with elaborate parsers enabled earlier
135 for x86/x86-64.
136 * Implemented -C option to combine regular and -c output.
137 (Addresses Debian bug #466196)
138 * Enhanced decoding of mbind and mremap syscalls.
139 * Enhanced SOL_PACKET socket options decoding.
140 * Regenerated list of ioctl names from linux 2.6.33.
141 * Added TILE architecture support.
142
143* Bug fixes
144 * Fixed build with Linux kernel headers 2.6.32-rc5+.
145 (Addresses Debian bug #560516 and Fedora bug #539044)
146 * Fixed build on mips.
147 * Fixed handling of Linux systems without struct statfs64.
148 * Fixed reporting signal mask by sigreturn on powerpc.
149 * Fixed potential stack buffer overflow in select decoder.
150 (Addresses Fedora bug #556678)
151 * Corrected msgsnd indirect ipccall decoding.
152 * Corrected decoding of 64bit syscalls.
153 (Addresses Debian bug #570603)
154 * Corrected getsockopt decoding on architectures where
155 sizeof(long) > sizeof(int).
156 (Addresses Debian bug #494844)
157 * Corrected decoding of epoll_pwait.
158 (Addresses Debian bug #513014)
159 * Corrected handling of killed threads.
160
Dmitry V. Levinfbfed222009-09-14 16:34:34 +0000161Noteworthy changes in release 4.5.19
162====================================
163
164* Changes in behavior
165 * When command exits, strace now exits with the same exit status.
166 If command is terminated by a signal, strace terminates itself
167 with the same signal, so that strace can be used as a wrapper
168 process transparent to the invoking parent process.
169 When using -p option, the exit status of strace is zero unless
170 there was an unexpected error in doing the tracing.
171 (Addresses Fedora bug #105371 and Debian bug #37665)
172
173* Improvements
174 * Implemented decoding of new Linux syscalls: accept4, dup3,
175 epoll_create1, eventfd2, inotify_init1, pipe2, signalfd4.
176 * Implemented decoding of socket type flags introduced in Linux 2.6.27.
177 * Implemented decoding of accept4 socketcall.
178 * Enhanced prctl decoding.
179 * Enhanced nanosleep decoding.
180 * Enhanced ptrace decoding.
181 * Enhanced futex decoding.
182 * Enhanced CAP_* decoding.
183 * Enhanced SIOCS* ioctls decoding.
184 * Enhanced fcntl F_* flags decoding.
Dmitry V. Levind7bb8b42009-10-08 22:28:57 +0000185 * Enhanced semop/semtimedop decoding.
Dmitry V. Levinfbfed222009-09-14 16:34:34 +0000186 * Updated ARM architecture support.
187 * Added Blackfin architecture support.
188 * Added AVR32 architecture support.
189 * Added CRIS architecture support.
190 * Made strace detect when traced process suddenly disappeared.
191
192* Bug fixes
193 * Fixed syscall numbers for tee and sync_file_range.
194 (Addresses Debian bug #503124)
195 * Fixed several bugs in strings decoder, including potential heap
196 memory corruption.
197 (Addresses Fedora bugs #470529, #478324 and #511035)
198 * Marked sendfile(2) as a network syscall.
199 (Addresses Debian bug #509499)
200 * Fixed accept(2) decoding.
Dmitry V. Levinacbe5182010-04-06 23:46:43 +0000201 (Addresses Debian bug #507573)
Dmitry V. Levinfbfed222009-09-14 16:34:34 +0000202 * Fixed sigtimedwait(2) decoding.
203 * Fixed build on ARM EABI.
204 (Addresses Debian bugs #520084 and #535564, and Fedora bug #507576)
205 * Fixed display of 32-bit fcntl(F_SETLK) on 64-bit architectures.
206 (Addresses Red Hat bug #471169)
207 * Fixed display of 32-bit argv array on 64-bit architectures.
208 (Addresses Fedora bug #519480)
209 * Fixed display of 32-bit struct sigaction on 64-bit architectures.
Dmitry V. Levin84c693e2009-10-06 10:40:17 +0000210 * Fixed HPPA architecture support.
211 (Addresses Debian bugs #437928 and #546619)
Dmitry V. Levinfbfed222009-09-14 16:34:34 +0000212
Roland McGrath09db7052008-08-28 22:00:46 +0000213Changes in 4.5.18
214==============
215* Bug fixes.
216* Support new Linux/PPC system call subpage_prot and PROT_SAO flag.
217* In sigaction system call, display sa_flags value along with SIG_DFL/SIG_IGN.
218
Roland McGrath55dd2782008-07-18 02:21:11 +0000219Changes in 4.5.17
220==============
221* Many bug fixes.
222* -F is now deprecated, -f has traced vfork too on Linux for a long time now.
223* Print O_CLOEXEC, MSG_CMSG_CLOEXEC flag bits.
224* Improved output for prctl system call on Linux.
225* Improved support for Linux/ARM.
226* SA_NOMASK is now spelled SA_NODEFER, and SA_ONESHOT is spelled SA_RESETHAND.
227
Roland McGrath47d32232007-08-03 10:28:55 +0000228Changes in 4.5.16
229==============
230* Bug fixes.
231* Improved output for delete_module, futex, and mbind system calls on Linux.
232* Improved output for SG_IO ioctls on Linux.
233* Support new Linux system calls move_pages, utimensat, signalfd, timerfd,
234 eventfd, getcpu, epoll_pwait.
235
Roland McGrath16a3a522007-01-11 22:22:42 +0000236Changes in 4.5.15
237==============
238* Bug fixes.
239* Several biarch improvements.
Roland McGrath0a45fae2007-01-16 23:25:34 +0000240* Improved output for adjtimex, sysctl, quotactl, mount, umount.
Roland McGrath16a3a522007-01-11 22:22:42 +0000241* Support new Linux system calls *at, inotify*, pselect6, ppoll and unshare.
242
Roland McGrathf4d9b492006-01-17 06:22:57 +0000243Changes in 4.5.14
244==============
245* Bug fixes.
246* Accept numeric system calls in -e.
247
Roland McGrathcab43802005-08-03 11:42:35 +0000248Changes in 4.5.13
249==============
250* Bug fixes.
251* Introduce "-e trace=desc".
252
Roland McGrath182cbf42005-06-10 03:56:16 +0000253Changes in 4.5.12
254==============
255* Bug fixes.
256* Better x86-64 support for IA32 processes.
257* Update PowerPC system calls.
258* Better printing for Linux aio system calls.
259
Roland McGrath7147a3d2005-03-22 23:12:39 +0000260Changes in 4.5.11
261==============
262* Quick fix release for build issues.
263* One fix for Linux/ARM system call table.
264
Roland McGrathd8184032005-03-15 02:40:12 +0000265Changes in 4.5.10
266==============
267* Bug fixes.
268* Print fault address for SIGSEGV/SIGBUS signals when available.
269
Roland McGrathd63311a2005-02-04 09:29:04 +0000270Changes in 4.5.9
271==============
272* Bug fixes.
273* Improve socket ioctl printing.
274* Update Linux/IA64 syscall list.
275* Fix Linux/x86-64 syscall argument extraction for 32-bit processes.
276* Improve mount flags printing.
277* Support symbolic printing of x86_64 arch_prctl parameters.
278
Roland McGrathf041d472004-10-20 02:17:52 +0000279Changes in 4.5.8
280==============
281* Bug fixes.
282* Update syscall tables for Alpha, ARM, HPPA.
283* Support new Linux syscalls mbind, set_mempolicy, get_mempolicy, waitid.
284* Support Linux syscalls fadvise64, fadvise64_64, and epoll_*.
285* Improve ioctl command name matching.
286* Print RTC_* ioctl structure contents.
287* Support newer RLIMIT_* values.
288* Print struct cmsghdr details in sendmsg.
289
Roland McGrathb93f9182004-08-31 08:17:20 +0000290Changes in 4.5.7
291==============
292* Bug fixes.
293* Print attribute values in *xattr system calls on Linux.
294* Include pread and pwrite calls in -e read and -e write tracing.
295* Update SO_* and IP_* value lists and add IPV6_* values for socket options.
296* Print clock_t values symbolically in Linux clock_* system calls.
297
Roland McGrath785a0262004-07-12 07:55:48 +0000298Changes in 4.5.6
299==============
300* Bug fixes, Linux ioctl updates.
301* David Miller contributed support for Linux/SPARC64.
302
Roland McGrathb7e2ca12004-06-28 05:24:29 +0000303Changes in 4.5.5
304==============
305* Just bug fixes.
306
Roland McGrathed8e77e2004-06-04 02:35:58 +0000307Changes in 4.5.4
308==============
309* Update Linux ioctl lists.
310* Update PF_* and AF_* value lists.
311* The 4.5.3 -p behavior for NPTL threads applies only under -f, and got fixed.
312
Roland McGrath62412202004-04-09 00:25:38 +0000313Changes in 4.5.3
314==============
315* Bug fixes.
316* On Linux using NPTL threads, -p will now attach to all threads in a process.
Roland McGrath5e169a12004-04-16 21:54:56 +0000317* Handle new mq_* system calls in Linux 2.6.6 and later.
Roland McGrath62412202004-04-09 00:25:38 +0000318
Roland McGrathb66e9362004-03-02 06:38:35 +0000319Changes in 4.5.2
320==============
321* Bug fixes.
322* Report some new VM_* bit values on Linux.
323* Better output for Linux sched_* system calls.
324
Roland McGrath00eb84e2003-11-14 02:57:22 +0000325Changes in 4.5.1
326==============
327* Bug fixes.
328* Display multiple ioctl name matches on Linux.
329
Roland McGratha3bc12e2003-09-24 22:22:38 +0000330Changes in 4.5
Michal Ludvig53b320f2002-09-23 13:30:09 +0000331==============
Roland McGrathf57204d2002-12-18 04:36:59 +0000332* New port to AMD's x86-64 architecture. One strace binary can
Michal Ludvig53b320f2002-09-23 13:30:09 +0000333 handle both new x86-64 and old i386 processes.
334* Fixed support for LFS64 calls.
Roland McGrathde6e5332003-01-24 04:31:23 +0000335* New switch -E to add/remove environment variables for the command.
Michal Ludvig81a3a9a2002-11-06 13:19:15 +0000336* Merged s390/s390x port.
Roland McGrathf57204d2002-12-18 04:36:59 +0000337* Trace an unbounded number of processes.
Roland McGrath5694e802003-01-09 06:56:39 +0000338* Handle numerous new system calls in Linux 2.5, and new threads semantics.
Roland McGrathf57204d2002-12-18 04:36:59 +0000339* Fixed bugs with attach/detach leaving things stopped.
Roland McGrath044c8d22002-12-22 03:36:03 +0000340* Fixed traced process seeing ECHILD despite live, traced children
341 in waitpid calls with WNOHANG.
Roland McGrath1b86e2d2003-03-31 01:21:36 +0000342* Stuart Menefy contributed a port to Linux/SH.
Roland McGrathcb612142003-07-17 09:23:56 +0000343* Stephen Thomas contributed a port to Linux/SH64.
Roland McGrathacd3cd72003-06-11 05:37:56 +0000344* Many other bug fixes.
Michal Ludvig53b320f2002-09-23 13:30:09 +0000345
Wichert Akkermand22c4a12001-08-19 11:57:48 +0000346Changes in 4.4
347==============
348* Fix Linux/ia64 support, looks like someone renamed a few things on us
349* Fix the ioctl setup for Linux, turned out it did not really work.
350 Improve the ioctl extracter as well so we decode some more ones.
351
Wichert Akkermane70bbe52001-04-07 21:47:30 +0000352Changes in 4.3.1
353================
354* compile fixes for Linux/mips
355
Wichert Akkerman12f75d12000-02-14 16:23:40 +0000356Changes in 4.3
357==============
Wichert Akkermanb07296a2001-04-01 14:05:04 +0000358* Linux ia64 and hppa ports added
Wichert Akkerman7987cdf2000-07-05 16:05:39 +0000359* The usual Linux syscall updates (includes 32bit uid/gid support),
Wichert Akkermana9667852001-03-17 17:26:34 +0000360* Linux ioctl list updated
Wichert Akkermanf1850652001-02-16 20:29:03 +0000361* Support IPv6 scope ids
Wichert Akkermanb07296a2001-04-01 14:05:04 +0000362* FreeBSD/i386 port added
363* UnixWare and Solaris updates
364* Better support for tracing multithreaded processes in Linux
Wichert Akkerman12f75d12000-02-14 16:23:40 +0000365
Wichert Akkerman4dc8a2a1999-12-23 14:20:14 +0000366Changes in 4.2
367==============
368* Compiles on glibc2.0 systems again
369* Linux/S390 port added
Roland McGrathf57204d2002-12-18 04:36:59 +0000370* The usual Linux syscall updates
Wichert Akkerman9148a3b1999-12-24 23:13:55 +0000371* we can follow fork on arm now
Wichert Akkerman4dc8a2a1999-12-23 14:20:14 +0000372
Wichert Akkerman2a64b431999-11-26 00:29:05 +0000373Changes in 4.1
374================
375* Linux/MIPS port added
376* Lots of Linux updates again
377* Improved IPv6 support
378* Add strace-graph
379
Wichert Akkerman4a01ca01999-07-25 12:29:49 +0000380Changes in 4.0.1
381================
382* Minor bugfixes
383* Compiles on glibc2.0 systems again
384
Wichert Akkerman8dc9a1a1999-07-09 14:08:14 +0000385Changes in 4.0
386==============
387* Get stat structure properly on Linux 64bit archs
388* Personalities work again
389* Compile correctly on SunOS again
390* IRIX64 updates
391* Solaris updates
392
Wichert Akkerman3f7f49d1999-06-09 13:12:11 +0000393Changes in 3.99.1
Wichert Akkerman8dc9a1a1999-07-09 14:08:14 +0000394=================
Wichert Akkerman3f7f49d1999-06-09 13:12:11 +0000395* Linux (ultra)sparc fixes
396* Linux alpha fixes
397* Minor cleanups
398
Wichert Akkermanb859bea1999-04-18 22:50:50 +0000399Changes in 3.99
400===============
Wichert Akkerman1786d811999-04-15 20:34:14 +0000401* New maintainer
402* add support for more Linux architectures (powerpc, sparc, arm)
403* support lots more Linux syscalls
404* fix signal handling
405* add IPX and IPIP support
406* check stray syscall after execv
407* fix hanging children
408
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000409Changes in version 3.1
410======================
411
412* Irix5 is supported
413* Linux 68k is supported
414* Linux alpha is supported
415* configure is upgraded to autoconf 2.x
416* using -f in combination with -e now works correctly
417* output can be piped to a program
418* tracing setuid programs works better
419* it is now reasonable to install strace setuid to root in some circumstances
420* new useful tracing names like file and process to trace whole
421 classes of system calls, e.g. -efile traces all system calls that
422 take a file name as an argument
423* IPC calls on SunOS 4.1.x are decoded
424* Linux program memory is reliably dereferenced
425* Linux decodes at least the name of all syscalls as of pre2.0.4
426* various cosmetic changes and bug fixes
427
428Changes from versions 2.x to version 3.0
429========================================
430
431* filename arguments are neither abbreviated nor stringified
432* string arguments are now true C strings using octal instead of hex by default
433* preprocessor constants are never shortened (e.g. was RDONLY => now O_RDONLY)
434* by default the output for multiple processes now goes into one file
435* all structures, vectors, bitsets, etc. use consistent output formats
436* the -c option now means count calls, -i does what the old -c used to do
437
438New Features in version 3.0
439===========================
440
441* non-ascii strings can be optionally printed entirely in hex
442* the output format is readable when mutiple processes are generating output
443* exit values are printed in an alignment column
444* is is possible to suppress messages about attaching and detaching
445* various tracing features can be enabled on a per syscall/signal/desc basis
446* selective tracing of syscalls
447* selective printing of syscall structures
448* selective abbreviation of long structures on a per syscall basis
449* selective printing of raw syscall arguments and results
450* selective tracing of signals
451* selective dumping of all I/O read from file descriptors
452* selective dumping of all I/O written to file descriptors
453* optional counting of time, calls, and errors for each syscall