
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] Possibly helpful debugging tool
Hi Tobias.
You should also see a series of files with names like
stracelog11948
( ie stracelog$pid)
in the /tmp directory.
Those contain the strace of the process that encountered the
[stracestart] tag.
It is very simple. You can send the commands START STOP STATUS and QUIT
to the fifo.
START and STOP require a process id to follow them. STATUS and QUIT do
not. STATUS is buggy because it sends the status to the last strace log
file - this will be fixed next time I get to play with it.
BTW, you need to mkfifo /tmp/strcfifo before you run the program. That
also will be fixed (automated) next time I play with it.
Finally, I wrote this to run in debug mode. Don't run it when the system
is live ! Strace does show some of the arguments passed to library calls
- this could include passwords for you database etc. These are stored in
that bastion of security, the /tmp directory, with the loosest
system-supplied (umask) permissions. It really is insecure. It also is
useful.
Cheers, HTH
Leon
Tobias Henle wrote:
> LEON> ... wrote something ...
>
> Hi Leon, hi List
> found some things to say about your programm
>
> 1. it would be good to tell the user to use:
> "SafeUntrap open close"
> in their interchange.cfg
>
> 2. and i have a problem with your prog! it only says :
>
> # tail --follow /tmp/strcfifo
> close 31449
>
> in the fifo (not so nice?) thats all, any ideas
>
> cu (mit freundliche Grüßen)
>
> -Tobias Henle
> _ _ _
> __ __ ____ __ ____ __ _| |_| |_ (_)___ ___ ___ _ _ __ ___ _ __
> \ V V /\ V V /\ V V / _| ' \| / -_|_-</ -_) ' \ _/ _/ _ \ ' \
> \_/\_/ \_/\_/ \_/\_(_)__|_||_|_\___/__/\___|_||_(_)__\___/_|_|_|
> --
> ________E-Mail________________________URL____________________________
> mailto:t.henle@thiesen.com http://www.thiesen.com
> _____________________________________________________________________
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users