[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: [LI] core dump in user login
Hi Pramod,
Thanks. I will check the PCQ CD for ltrace/strace RPM.
Rajesh
On Wed, 26 Jan 2000, you wrote:
> Hello,
> strace is for "system call tracing". It shows you what all system
> calls your program executes. For example, if you trace a simple
> "hello world" program, you will find that your program executes the
> write() syscall because the printf() library function ultimately calls
> the write() system call. Knowing what all syscalls your program
> executes (strace also shows you the arguments to the syscall) is
> sometimes invaluable in debugging programs whose source is not
> available.
> ltrace is similar to strace, but it does not trace to the
> syscall level. It simply shows you all the library functions your
> program executes. For example, suppose you have a piece of code
> like this:
> main()
> {
> printf("hello world");
> }
> You compile this to a.out and simply type 'ltrace a.out'. Here is the
> output on my machine:
> atexit(0x40005d10)
> __libc__init_first(1, ..... <lots of arguments>)
> atexit(0x080484c0)
> printf("hello world")
> exit(11)
> -------------------------------
>
> strace should be available by default on your Red hat machine. If not,
> check out the RPM's.
>
>
--
Rajesh(ALIAS Shriram)
--------------------------------------------------------------------------------
How I Configured my SiS6215 Card ?Visit:http://rajesh.computers.webjump.com/linux.html
Web Site : http://rajesh.computers.webjump.com/
Email : rfowkar@xxxxxxxxxxxxxxx
Hold fast to dreams, for if dreams die, life is a broken bird that cannot fly.
Langston Hughes
---------------------------------------------------------------------------------
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available. Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.