* New & Improved "trace" (aka truss)
@ 1998-04-22 4:00 John Hascall
1998-04-22 4:00 ` Kevin Oberman
1998-04-24 4:00 ` YET ANOTHER " John Hascall
0 siblings, 2 replies; 7+ messages in thread
From: John Hascall @ 1998-04-22 4:00 UTC (permalink / raw)
ftp://ftp/iastate.edu/pub/unix/digital_unix/trace/alpha-trace-1.31.tar.Z
This is a much updated version, lots of bug fixes and new decoding
abilities. It knows about syscalls up through D-Unix 4.0d
If you are not familiar with trace it lets you see all the
syscalls a process makes as well as the signals it receives, etc.
It is a great debugging tool (esp. for software you have no
source for). Appended are excerpts from doing:
trace -o trace.dump netscape
to give you an idea of what it can tell you.
John
---------------------------------------------------------------------
Tracing process /proc/22478
obreak (0x14231000) = 0
getgid () = 101
open ("/dev/zero", O_RDWR, 000) = 5
mmap ( 0x50000000, 163840, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_FILE|MAP_FIXED|MAP_PRIVATE, 5, 0 ) = 0x50000000
mprotect (0x50000000, 16384, PROT_NONE) = 0
open ("/usr/shlib/libXC.so", O_RDONLY, 666) = -1, Errno 2 (No such file or directory)
open ("/usr/lib/X11/locale/locale.alias", O_RDONLY, 666) = 8
fstat (8, 0x11ffb8c0) = 0 [ , <8.32774.42719 -r--r--r-- 1 bin bin 7623 893277642,881653616,891550533> ]
uname (0x11ffd868) = 0 [ {"OSF1", "pvtest.cc.iastate.edu", "V4.0", "878", "alpha"} ]
fcntl (8, F_SETFD, FD_CLOEXEC) = 0
access ("/home/john/.Xauthority", R_OK) = 0
writev (8, 0x140001388={ {0x11ffdcd8,12}, {0x1423cf00,18}, {0x11ffdb80,2}, {0x14241140,16} }, 4) = 48
+ 00 00 00 10 00 12 00 00 00 0b d0 6c <00000000> l...........
+ 45 49 4b 4f 4f 43 2d 43 49 47 41 4d 2d 54 49 4d <00000000> MIT-MAGIC-COOKIE
+ 31 2d <00000010> -1
+ e2 48 <00000000> H.
+ 7a 04 3a 35 aa 18 f8 85 aa f6 19 07 18 9e 72 9f <00000000> .r..........5:.z
poll ( 0x145e8900={{6, <POLLIN>, <>},{13, <POLLIN>, <>},{17, <POLLOUT|POLLPRI>, <>}}, 3, 0) = 1, [ {{6, <>, <0>},{13, <>, <0>},{17, <>, <POLLOUT>}}, , ]
sigaction (SIGCHLD, {{0x120dd640,0xfffefeff,0}}, 0x0) = 0, [ , , NULL ]
select (19, 0x11ffbce8={0x00040000}, 0x0={}, 0x0={}, 0x11ffbc58={5,0}) = 1 [ , {0x00040000}, {}, {}, ]
wait4 (22490, 0x11ffbe38, WNOHANG, 0x0) = 22490 [ , <terminated SIGPIPE>, , ]
ioctl (8, 0x4004667f<Out,FIONREAD,4>, 11ffd660) = 0
+ 00 00 00 20 <00000000> ...
exit (0) = ()
EXIT [status=0]
--
John Hascall, Software Engr. Shut up, be happy. The conveniences you
ISU Computation Center demanded are now mandatory. -Jello Biafra
mailto:john@iastate.edu
http://www.cc.iastate.edu/staff/systems/john/welcome.html <-- the usual crud
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: New & Improved "trace" (aka truss)
1998-04-22 4:00 New & Improved "trace" (aka truss) John Hascall
@ 1998-04-22 4:00 ` Kevin Oberman
1998-04-23 4:00 ` John Hascall
1998-04-24 4:00 ` YET ANOTHER " John Hascall
1 sibling, 1 reply; 7+ messages in thread
From: Kevin Oberman @ 1998-04-22 4:00 UTC (permalink / raw)
john@iastate.edu (John Hascall) writes:
> ftp://ftp/iastate.edu/pub/unix/digital_unix/trace/alpha-trace-1.31.tar.Z
For those who like to click URLs in the messages, I suspect it is:
ftp://ftp.iastate.edu/pub/unix/digital_unix/trace/alpha-trace-1.31.tar.Z
--
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest Orlando Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net Phone: +1 510 486-8634
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New & Improved "trace" (aka truss)
1998-04-22 4:00 ` Kevin Oberman
@ 1998-04-23 4:00 ` John Hascall
1998-04-23 4:00 ` Kevin Oberman
0 siblings, 1 reply; 7+ messages in thread
From: John Hascall @ 1998-04-23 4:00 UTC (permalink / raw)
Kevin Oberman <oberman@es.net> wrote:
}john@iastate.edu (John Hascall) writes:
}> ftp://ftp/iastate.edu/pub/unix/digital_unix/trace/alpha-trace-1.31.tar.Z
^
}For those who like to click URLs in the messages, I suspect it is:
}ftp://ftp.iastate.edu/pub/unix/digital_unix/trace/alpha-trace-1.31.tar.Z
Arrrgh, thanks.
dots, slashes, double-slashes, colons, yada, yada, yada,...
durn url syntax was obviously invented by someone pining
for VMS's baroque filespec syntax! :)
John
--
John Hascall, Software Engr. Shut up, be happy. The conveniences you
ISU Computation Center demanded are now mandatory. -Jello Biafra
mailto:john@iastate.edu
http://www.cc.iastate.edu/staff/systems/john/welcome.html <-- the usual crud
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: New & Improved "trace" (aka truss)
1998-04-23 4:00 ` John Hascall
@ 1998-04-23 4:00 ` Kevin Oberman
1998-04-24 4:00 ` Bob Koehler
0 siblings, 1 reply; 7+ messages in thread
From: Kevin Oberman @ 1998-04-23 4:00 UTC (permalink / raw)
john@iastate.edu (John Hascall) writes:
> Arrrgh, thanks.
>
> dots, slashes, double-slashes, colons, yada, yada, yada,...
According to a radio commercial I've heard recently, URLs are the spawn of
the devil, himself. (He seemed very proud of them.)
They may be right.
> durn url syntax was obviously invented by someone pining
> for VMS's baroque filespec syntax! :)
I was rather fond of VMS's baroque filespec syntax. URL's, on the
other hand... :-(
--
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest Orlando Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net Phone: +1 510 486-8634
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New & Improved "trace" (aka truss)
1998-04-23 4:00 ` Kevin Oberman
@ 1998-04-24 4:00 ` Bob Koehler
0 siblings, 0 replies; 7+ messages in thread
From: Bob Koehler @ 1998-04-24 4:00 UTC (permalink / raw)
In article <sreson4lc3j.fsf@ptavv.es.net>, Kevin Oberman <oberman@es.net> writes:
>
>According to a radio commercial I've heard recently, URLs are the spawn of
>the devil, himself. (He seemed very proud of them.)
So when are the fundmentalists gonig to demand that the government stop
spending taxes on eunichs computers full of deamons? Many devils.
------------------------------------------------------------------------------
Bob Koehler | Computer Sciences Corporation
Hubble Space Telescope Payload | System Sciences Division
Flight Software Team | please remove ".aspm" when replying
^ permalink raw reply [flat|nested] 7+ messages in thread
* YET ANOTHER New & Improved "trace" (aka truss)
1998-04-22 4:00 New & Improved "trace" (aka truss) John Hascall
1998-04-22 4:00 ` Kevin Oberman
@ 1998-04-24 4:00 ` John Hascall
1998-04-30 4:00 ` YES, " John Hascall
1 sibling, 1 reply; 7+ messages in thread
From: John Hascall @ 1998-04-24 4:00 UTC (permalink / raw)
ftp://ftp.iastate.edu/pub/unix/digital_unix/trace/alpha-trace-1.32.tar.Z
Changes since 1.31:
+ Better handling of "BSD4.4" sockaddr struct's (_SOCKADDR_LEN).
+ Compiles cleanly under D-Unix 4.0b (as well as 3.2x and 4.0d)
+ New command line flag: -c bytes [default 64k]
to limit the number of bytes malloc'd and copied out
of the traced processes' address space. For example,
this mistake:
struct sockaddr_in sin;
int slen = sizeof(sin);
fillin(sin);
bind(sockFd, &sin, &slen); /* should be bind(sockFd, &sin, slen); */
passing the pointer to slen, rather than slen itself
would cause trace to try to malloc and then read a
very large number of bytes to decode 'sin', often
causing trace to give up or die.
John
--
John Hascall, Software Engr. Shut up, be happy. The conveniences you
ISU Computation Center demanded are now mandatory. -Jello Biafra
mailto:john@iastate.edu
http://www.cc.iastate.edu/staff/systems/john/welcome.html <-- the usual crud
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1998-04-30 4:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-04-22 4:00 New & Improved "trace" (aka truss) John Hascall
1998-04-22 4:00 ` Kevin Oberman
1998-04-23 4:00 ` John Hascall
1998-04-23 4:00 ` Kevin Oberman
1998-04-24 4:00 ` Bob Koehler
1998-04-24 4:00 ` YET ANOTHER " John Hascall
1998-04-30 4:00 ` YES, " John Hascall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox