blob: 31c0a984d427fa51b509ab62ef08e2a197272e14 [file] [log] [blame]
Wichert Akkerman76baf7c1999-02-19 00:21:36 +00001.\" Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
2.\" Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
3.\" Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey <jrs@world.std.com>
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\" notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\" notice, this list of conditions and the following disclaimer in the
13.\" documentation and/or other materials provided with the distribution.
14.\" 3. The name of the author may not be used to endorse or promote products
15.\" derived from this software without specific prior written permission.
16.\"
17.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27.\"
28.\" $Id$
29.\"
30.de CW
31.sp
32.nf
33.ft CW
34..
35.de CE
Wichert Akkerman8829a551999-06-11 13:18:40 +000036.ft R
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000037.fi
38.sp
39..
Roland McGrath4417fda2003-01-24 04:31:20 +000040.TH STRACE 1 "2003-01-21"
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000041.SH NAME
42strace \- trace system calls and signals
43.SH SYNOPSIS
44.B strace
45[
46.B \-dffhiqrtttTvxx
47]
48[
49.BI \-a column
50]
51[
52.BI \-e expr
53]
54\&...
55[
56.BI \-o file
57]
58[
59.BI \-p pid
60]
61\&...
62[
63.BI \-s strsize
64]
65[
66.BI \-u username
67]
68[
Roland McGrath4417fda2003-01-24 04:31:20 +000069.BI \-E var=val
70]
71\&...
72[
73.BI \-E var
74]
75\&...
76[
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000077.I command
78[
79.I arg
80\&...
81]
82]
83.sp
84.B strace
85.B \-c
86[
87.BI \-e expr
88]
89\&...
90[
91.BI \-O overhead
92]
93[
94.BI \-S sortby
95]
96[
97.I command
98[
99.I arg
100\&...
101]
102]
103.SH DESCRIPTION
104.IX "strace command" "" "\fLstrace\fR command"
105.LP
106In the simplest case
107.B strace
108runs the specified
109.I command
110until it exits.
111It intercepts and records the system calls which are called
112by a process and the signals which are received by a process.
113The name of each system call, its arguments and its return value
114are printed on standard error or to the file specified with the
115.B \-o
116option.
117.LP
118.B strace
Nate Sammonsb4aa1131999-03-31 05:59:04 +0000119is a useful diagnostic, instructional, and debugging tool.
Roland McGrath0411b402003-10-22 06:16:32 +0000120System administrators, diagnosticians and trouble-shooters will find
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000121it invaluable for solving problems with
122programs for which the source is not readily available since
123they do not need to be recompiled in order to trace them.
124Students, hackers and the overly-curious will find that
125a great deal can be learned about a system and its system calls by
126tracing even ordinary programs. And programmers will find that
127since system calls and signals are events that happen at the user/kernel
128interface, a close examination of this boundary is very
129useful for bug isolation, sanity checking and
130attempting to capture race conditions.
131.LP
132Each line in the trace contains the system call name, followed
133by its arguments in parentheses and its return value.
134An example from stracing the command ``cat /dev/null'' is:
135.CW
136open("/dev/null", O_RDONLY) = 3
137.CE
138Errors (typically a return value of \-1) have the errno symbol
139and error string appended.
140.CW
141open("/foo/bar", O_RDONLY) = -1 ENOENT (No such file or directory)
142.CE
143Signals are printed as a signal symbol and a signal string.
144An excerpt from stracing and interrupting the command ``sleep 666'' is:
145.CW
146sigsuspend([] <unfinished ...>
147--- SIGINT (Interrupt) ---
148+++ killed by SIGINT +++
149.CE
150Arguments are printed in symbolic form with a passion.
Roland McGrath0411b402003-10-22 06:16:32 +0000151This example shows the shell performing ``>>xyzzy'' output redirection:
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000152.CW
153open("xyzzy", O_WRONLY|O_APPEND|O_CREAT, 0666) = 3
154.CE
155Here the three argument form of open is decoded by breaking down the
156flag argument into its three bitwise-OR constituents and printing the
157mode value in octal by tradition. Where traditional or native
158usage differs from ANSI or POSIX, the latter forms are preferred.
Wichert Akkerman8829a551999-06-11 13:18:40 +0000159In some cases,
160.B strace
161output has proven to be more readable than the source.
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000162.LP
163Structure pointers are dereferenced and the members are displayed
164as appropriate. In all cases arguments are formatted in the most C-like
165fashion possible.
166For example, the essence of the command ``ls \-l /dev/null'' is captured as:
167.CW
168lstat("/dev/null", {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
169.CE
170Notice how the `struct stat' argument is dereferenced and how each member is
171displayed symbolically. In particular, observe how the st_mode member
172is carefully decoded into a bitwise-OR of symbolic and numeric values.
173Also notice in this example that the first argument to lstat is an input
174to the system call and the second argument is an output. Since output
Wichert Akkerman8829a551999-06-11 13:18:40 +0000175arguments are not modified if the system call fails, arguments may not
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000176always be dereferenced. For example, retrying the ``ls \-l'' example
177with a non-existent file produces the following line:
178.CW
179lstat("/foo/bar", 0xb004) = -1 ENOENT (No such file or directory)
180.CE
181In this case the porch light is on but nobody is home.
182.LP
183Character pointers are dereferenced and printed as C strings.
184Non-printing characters in strings are normally represented by
185ordinary C escape codes.
186Only the first
187.I strsize
188(32 by default) bytes of strings are printed;
189longer strings have an ellipsis appended following the closing quote.
Wichert Akkerman8829a551999-06-11 13:18:40 +0000190Here is a line from ``ls \-l'' where the
191.B getpwuid
192library routine is reading the password file:
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000193.CW
194read(3, "root::0:0:System Administrator:/"..., 1024) = 422
195.CE
196While structures are annotated using curly braces, simple pointers
197and arrays are printed using square brackets with commas separating
198elements. Here is an example from the command ``id'' on a system with
199supplementary group ids:
200.CW
201getgroups(32, [100, 0]) = 2
202.CE
203On the other hand, bit-sets are also shown using square brackets
204but set elements are separated only by a space. Here is the shell
205preparing to execute an external command:
206.CW
207sigprocmask(SIG_BLOCK, [CHLD TTOU], []) = 0
208.CE
209Here the second argument is a bit-set of two signals, SIGCHLD and SIGTTOU.
210In some cases the bit-set is so full that printing out the unset
211elements is more valuable. In that case, the bit-set is prefixed by
212a tilde like this:
213.CW
214sigprocmask(SIG_UNBLOCK, ~[], NULL) = 0
215.CE
216Here the second argument represents the full set of all signals.
217.SH OPTIONS
218.TP 12
219.TP
220.B \-c
Roland McGrath4de04aa2004-08-31 07:47:47 +0000221Count time, calls, and errors for each system call and report a summary on
222program exit. On Linux, this attempts to show system time (CPU time spent
223running in the kernel) independent of wall clock time.
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000224.TP
225.B \-d
Wichert Akkerman8829a551999-06-11 13:18:40 +0000226Show some debugging output of
227.B strace
228itself on the standard error.
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000229.TP
230.B \-f
231Trace child processes as they are created by currently traced
Wichert Akkerman8829a551999-06-11 13:18:40 +0000232processes as a result of the
233.BR fork (2)
234system call. The new process is
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000235attached to as soon as its pid is known (through the return value of
Wichert Akkerman8829a551999-06-11 13:18:40 +0000236.BR fork (2)
237in the parent process). This means that such children may run
238uncontrolled for a while (especially in the case of a
239.BR vfork (2)),
240until the parent is scheduled again to complete its
241.RB ( v ) fork (2)
242call.
243If the parent process decides to
244.BR wait (2)
245for a child that is currently
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000246being traced, it is suspended until an appropriate child process either
247terminates or incurs a signal that would cause it to terminate (as
248determined from the child's current signal disposition).
249.TP
250.B \-ff
251If the
252.B \-o
253.I filename
254option is in effect, each processes trace is written to
255.I filename.pid
256where pid is the numeric process id of each process.
257.TP
258.B \-F
Wichert Akkerman8829a551999-06-11 13:18:40 +0000259Attempt to follow
260.BR vfork s.
261(On SunOS 4.x, this is accomplished with
Roland McGrath3766a562004-01-13 09:59:55 +0000262some dynamic linking trickery.)
263Otherwise,
Wichert Akkerman8829a551999-06-11 13:18:40 +0000264.BR vfork s
265will
Nate Sammonsccd8f211999-03-29 22:57:54 +0000266not be followed even if
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000267.B \-f
268has been given.
269.TP
270.B \-h
271Print the help summary.
272.TP
273.B \-i
274Print the instruction pointer at the time of the system call.
275.TP
276.B \-q
277Suppress messages about attaching, detaching etc. This happens
278automatically when output is redirected to a file and the command
279is run directly instead of attaching.
280.TP
281.B \-r
282Print a relative timestamp upon entry to each system call. This
283records the time difference between the beginning of successive
284system calls.
285.TP
286.B \-t
287Prefix each line of the trace with the time of day.
288.TP
289.B \-tt
290If given twice, the time printed will include the microseconds.
291.TP
292.B \-ttt
293If given thrice, the time printed will include the microseconds
294and the leading portion will be printed as the number
295of seconds since the epoch.
296.TP
297.B \-T
298Show the time spent in system calls. This records the time
299difference between the beginning and the end of each system call.
300.TP
301.B \-v
302Print unabbreviated versions of environment, stat, termios, etc.
303calls. These structures are very common in calls and so the default
304behavior displays a reasonable subset of structure members. Use
305this option to get all of the gory details.
306.TP
307.B \-V
Wichert Akkerman8829a551999-06-11 13:18:40 +0000308Print the version number of
309.BR strace .
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000310.TP
311.B \-x
Wichert Akkerman8829a551999-06-11 13:18:40 +0000312Print all non-ASCII strings in hexadecimal string format.
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000313.TP
314.B \-xx
315Print all strings in hexadecimal string format.
316.TP
317.BI "\-a " column
Wichert Akkerman4dc8a2a1999-12-23 14:20:14 +0000318Align return values in a specific column (default column 40).
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000319.TP
320.BI "\-e " expr
321A qualifying expression which modifies which events to trace
322or how to trace them. The format of the expression is:
Wichert Akkerman8829a551999-06-11 13:18:40 +0000323.RS 15
324.IP
325[\fIqualifier\fB=\fR][\fB!\fR]\fIvalue1\fR[\fB,\fIvalue2\fR]...
326.RE
327.IP
328where
329.I qualifier
330is one of
331.BR trace ,
332.BR abbrev ,
333.BR verbose ,
334.BR raw ,
335.BR signal ,
336.BR read ,
337or
338.B write
339and
340.I value
341is a qualifier-dependent symbol or number. The default
342qualifier is
343.BR trace .
344Using an exclamation mark negates the set of values. For example,
345.B \-eopen
346means literally
347.B "\-e trace=open"
348which in turn means trace only the
349.B open
350system call. By contrast,
351.B "\-etrace=!open"
352means to trace every system call except
353.BR open .
354In addition, the special values
355.B all
356and
357.B none
358have the obvious meanings.
359.IP
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000360Note that some shells use the exclamation point for history
Wichert Akkerman8829a551999-06-11 13:18:40 +0000361expansion even inside quoted arguments. If so, you must escape
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000362the exclamation point with a backslash.
363.TP
364.BI "\-e trace=" set
365Trace only the specified set of system calls. The
366.B \-c
367option is useful for determining which system calls might be useful
Wichert Akkerman8829a551999-06-11 13:18:40 +0000368to trace. For example,
369.B trace=open,close,read,write
370means to only
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000371trace those four system calls. Be careful when making inferences
372about the user/kernel boundary if only a subset of system calls
Wichert Akkerman8829a551999-06-11 13:18:40 +0000373are being monitored. The default is
374.BR trace=all .
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000375.TP
376.B "\-e trace=file"
377Trace all system calls which take a file name as an argument. You
378can think of this as an abbreviation for
Wichert Akkerman8829a551999-06-11 13:18:40 +0000379.BR "\-e\ trace=open,stat,chmod,unlink," ...
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000380which is useful to seeing what files the process is referencing.
381Furthermore, using the abbreviation will ensure that you don't
382accidentally forget to include a call like
383.B lstat
384in the list. Betchya woulda forgot that one.
385.TP
386.B "\-e trace=process"
387Trace all system calls which involve process management. This
388is useful for watching the fork, wait, and exec steps of a process.
389.TP
390.B "\-e trace=network"
391Trace all the network related system calls.
392.TP
393.B "\-e trace=signal"
394Trace all signal related system calls.
395.TP
396.B "\-e trace=ipc"
397Trace all IPC related system calls.
398.TP
Roland McGrath2fe7b132005-07-05 03:25:35 +0000399.B "\-e trace=desc"
400Trace all file descriptor related system calls.
401.TP
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000402.BI "\-e abbrev=" set
403Abbreviate the output from printing each member of large structures.
Wichert Akkerman8829a551999-06-11 13:18:40 +0000404The default is
405.BR abbrev=all .
406The
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000407.B \-v
Wichert Akkerman8829a551999-06-11 13:18:40 +0000408option has the effect of
409.BR abbrev=none .
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000410.TP
411.BI "\-e verbose=" set
412Dereference structures for the specified set of system calls. The
Wichert Akkerman8829a551999-06-11 13:18:40 +0000413default is
414.BR verbose=all .
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000415.TP
416.BI "\-e raw=" set
Roland McGrath0411b402003-10-22 06:16:32 +0000417Print raw, undecoded arguments for the specified set of system calls.
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000418This option has the effect of causing all arguments to be printed
419in hexadecimal. This is mostly useful if you don't trust the
420decoding or you need to know the actual numeric value of an
421argument.
422.TP
423.BI "\-e signal=" set
Wichert Akkerman8829a551999-06-11 13:18:40 +0000424Trace only the specified subset of signals. The default is
425.BR signal=all .
426For example,
427.B signal=!SIGIO
428(or
429.BR signal=!io )
430causes SIGIO signals not to be traced.
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000431.TP
432.BI "\-e read=" set
Wichert Akkerman8829a551999-06-11 13:18:40 +0000433Perform a full hexadecimal and ASCII dump of all the data read from
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000434file descriptors listed in the specified set. For example, to see
435all input activity on file descriptors 3 and 5 use
436.BR "\-e read=3,5" .
Wichert Akkerman8829a551999-06-11 13:18:40 +0000437Note that this is independent from the normal tracing of the
438.BR read (2)
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000439system call which is controlled by the option
440.BR "\-e trace=read" .
441.TP
442.BI "\-e write=" set
Wichert Akkerman8829a551999-06-11 13:18:40 +0000443Perform a full hexadecimal and ASCII dump of all the data written to
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000444file descriptors listed in the specified set. For example, to see
445all output activity on file descriptors 3 and 5 use
446.BR "\-e write=3,5" .
Wichert Akkerman8829a551999-06-11 13:18:40 +0000447Note that this is independent from the normal tracing of the
448.BR write (2)
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000449system call which is controlled by the option
450.BR "\-e trace=write" .
451.TP
452.BI "\-o " filename
453Write the trace output to the file
454.I filename
455rather than to stderr.
456Use
457.I filename.pid
458if
459.B \-ff
460is used.
461If the argument begins with `|' or with `!' then the rest of the
462argument is treated as a command and all output is piped to it.
463This is convenient for piping the debugging output to a program
464without affecting the redirections of executed programs.
465.TP
466.BI "\-O " overhead
Wichert Akkerman8829a551999-06-11 13:18:40 +0000467Set the overhead for tracing system calls to
468.I overhead
469microseconds.
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000470This is useful for overriding the default heuristic for guessing
471how much time is spent in mere measuring when timing system calls using
472the
473.B \-c
Roland McGrath0411b402003-10-22 06:16:32 +0000474option. The accuracy of the heuristic can be gauged by timing a given
Wichert Akkerman8829a551999-06-11 13:18:40 +0000475program run without tracing (using
476.BR time (1))
477and comparing the accumulated
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000478system call time to the total produced using
Wichert Akkerman8829a551999-06-11 13:18:40 +0000479.BR \-c .
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000480.TP
481.BI "\-p " pid
482Attach to the process with the process
483.SM ID
484.I pid
485and begin tracing.
486The trace may be terminated
487at any time by a keyboard interrupt signal (\c
488.SM CTRL\s0-C).
489.B strace
490will respond by detaching itself from the traced process(es)
491leaving it (them) to continue running.
492Multiple
493.B \-p
494options can be used to attach to up to 32 processes in addition to
495.I command
496(which is optional if at least one
497.B \-p
498option is given).
499.TP
500.BI "\-s " strsize
501Specify the maximum string size to print (the default is 32). Note
502that filenames are not considered strings and are always printed in
503full.
504.TP
505.BI "\-S " sortby
506Sort the output of the histogram printed by the
507.B \-c
Roland McGrath0411b402003-10-22 06:16:32 +0000508option by the specified criterion. Legal values are
Wichert Akkerman8829a551999-06-11 13:18:40 +0000509.BR time ,
510.BR calls ,
511.BR name ,
512and
513.B nothing
514(default
515.BR time ).
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000516.TP
517.BI "\-u " username
Wichert Akkerman8829a551999-06-11 13:18:40 +0000518Run command with the user \s-1ID\s0, group \s-2ID\s0, and
519supplementary groups of
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000520.IR username .
521This option is only useful when running as root and enables the
522correct execution of setuid and/or setgid binaries.
523Unless this option is used setuid and setgid programs are executed
524without effective privileges.
Roland McGrath4417fda2003-01-24 04:31:20 +0000525.TP
526.BI "\-E " var=val
527Run command with
528.IR var=val
529in its list of environment variables.
530.TP
531.BI "\-E " var
532Remove
533.IR var
534from the inherited list of environment variables before passing it on to
535the command.
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000536.SH "SETUID INSTALLATION"
537If
538.B strace
539is installed setuid to root then the invoking user will be able to
540attach to and trace processes owned by any user.
541In addition setuid and setgid programs will be executed and traced
542with the correct effective privileges.
543Since only users trusted with full root privileges should be allowed
544to do these things,
545it only makes sense to install
546.B strace
547as setuid to root when the users who can execute it are restricted
548to those users who have this trust.
549For example, it makes sense to install a special version of
Wichert Akkerman8829a551999-06-11 13:18:40 +0000550.B strace
551with mode `rwsr-xr--', user
552.B root
553and group
554.BR trace ,
555where members of the
556.B trace
557group are trusted users.
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000558If you do use this feature, please remember to install
Wichert Akkerman8829a551999-06-11 13:18:40 +0000559a non-setuid version of
560.B strace
561for ordinary lusers to use.
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000562.SH "SEE ALSO"
Roland McGrath7f7f4362005-12-02 03:59:35 +0000563.BR ltrace (1),
Wichert Akkerman8829a551999-06-11 13:18:40 +0000564.BR time (1),
Roland McGrath7f7f4362005-12-02 03:59:35 +0000565.BR ptrace (2),
566.BR proc (5)
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000567.SH NOTES
568It is a pity that so much tracing clutter is produced by systems
569employing shared libraries.
570.LP
571It is instructive to think about system call inputs and outputs
572as data-flow across the user/kernel boundary. Because user-space
573and kernel-space are separate and address-protected, it is
574sometimes possible to make deductive inferences about process
575behavior using inputs and outputs as propositions.
576.LP
577In some cases, a system call will differ from the documented behavior
Wichert Akkerman8829a551999-06-11 13:18:40 +0000578or have a different name. For example, on System V-derived systems
579the true
580.BR time (2)
581system call does not take an argument and the
582.B stat
583function is called
584.B xstat
585and takes an extra leading argument. These
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000586discrepancies are normal but idiosyncratic characteristics of the
587system call interface and are accounted for by C library wrapper
588functions.
589.LP
590On some platforms a process that has a system call trace applied
591to it with the
592.B \-p
593option will receive a
594.BR \s-1SIGSTOP\s0 .
595This signal may interrupt a system call that is not restartable.
596This may have an unpredictable effect on the process
597if the process takes no action to restart the system call.
598.SH BUGS
599Programs that use the
600.I setuid
601bit do not have
602effective user
603.SM ID
604privileges while being traced.
605.LP
606A traced process ignores
607.SM SIGSTOP
Nate Sammonsb4aa1131999-03-31 05:59:04 +0000608except on SVR4 platforms.
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000609.LP
610A traced process which tries to block SIGTRAP will be sent a SIGSTOP
611in an attempt to force continuation of tracing.
612.LP
613A traced process runs slowly.
614.LP
615Traced processes which are descended from
616.I command
617may be left running after an interrupt signal (\c
618.SM CTRL\s0-C).
619.LP
620On Linux, exciting as it would be, tracing the init process is forbidden.
621.LP
622The
623.B \-i
624option is weakly supported.
625.SH HISTORY
626.B strace
Wichert Akkerman8829a551999-06-11 13:18:40 +0000627The original
628.B strace
629was written by Paul Kranenburg
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000630for SunOS and was inspired by its trace utility.
Wichert Akkerman8829a551999-06-11 13:18:40 +0000631The SunOS version of
632.B strace
633was ported to Linux and enhanced
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000634by Branko Lankester, who also wrote the Linux kernel support.
Wichert Akkerman8829a551999-06-11 13:18:40 +0000635Even though Paul released
636.B strace
6372.5 in 1992,
638Branko's work was based on Paul's
639.B strace
6401.5 release from 1991.
641In 1993, Rick Sladkey merged
642.B strace
6432.5 for SunOS and the second release of
644.B strace
645for Linux, added many of the features of
646.BR truss (1)
647from SVR4, and produced an
648.B strace
649that worked on both platforms. In 1994 Rick ported
650.B strace
651to SVR4 and Solaris and wrote the
652automatic configuration support. In 1995 he ported
653.B strace
654to Irix
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000655and tired of writing about himself in the third person.
656.SH PROBLEMS
657Problems with
658.B strace
Roland McGrath4a9b49a2003-01-14 23:40:55 +0000659should be reported via the Debian Bug Tracking System,
660or to the
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000661.B strace
Roland McGrath4a9b49a2003-01-14 23:40:55 +0000662mailing list at <strace-devel@lists.sourceforge.net>.