[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Someone with a good command construct ??



hi,


I am sure some of you can come up with some clever command. Here is what
I would like to do:

In (A) - I am executing the commands I came up with, but would like to have
the dump that appear in (B) directed to a file.

Then it should execute again as in (C)... 

(A)

[root ----]#  strace  -o /dev/null  -p `pgrep Xorg`
Process 2469 attached - interrupt to quit         

(B)

*** glibc detected *** strace: malloc(): memory corruption (fast): 0x0000000002129be0 ***  
======= Backtrace: =========
/lib64/libc.so.6[0x3d00c77ec8]
/lib64/libc.so.6[0x3d00c7b561]
/lib64/libc.so.6(__libc_malloc+0x98)[0x3d00c7ca38]
strace[0x408728]
strace[0x40598e]
strace[0x404696]
/lib64/libc.so.6(__libc_start_main+0xe6)[0x3d00c1e576]
strace[0x401e69]
======= Memory map: ========
00400000-00447000 r-xp 00000000 fd:00 479722                             /usr/bin/strace
00647000-00648000 rw-p 00047000 fd:00 479722                             /usr/bin/strace
00648000-00656000 rw-p 00648000 00:00 0 
00847000-00848000 rw-p 00047000 fd:00 479722                             /usr/bin/strace
02129000-0214a000 rw-p 02129000 00:00 0                                  [heap]
3cff800000-3cff820000 r-xp 00000000 fd:00 1667922                        /lib64/ld-2.9.so
3cffa1f000-3cffa20000 r--p 0001f000 fd:00 1667922                        /lib64/ld-2.9.so
3cffa20000-3cffa21000 rw-p 00020000 fd:00 1667922                        /lib64/ld-2.9.so
3d00c00000-3d00d68000 r-xp 00000000 fd:00 1667924                        /lib64/libc-2.9.so
3d00d68000-3d00f68000 ---p 00168000 fd:00 1667924                        /lib64/libc-2.9.so
3d00f68000-3d00f6c000 r--p 00168000 fd:00 1667924                        /lib64/libc-2.9.so
3d00f6c000-3d00f6d000 rw-p 0016c000 fd:00 1667924                        /lib64/libc-2.9.so
3d00f6d000-3d00f72000 rw-p 3d00f6d000 00:00 0 
3d0e200000-3d0e216000 r-xp 00000000 fd:00 1668144                        /lib64/libgcc_s-4.3.2-20081105.so.1
3d0e216000-3d0e416000 ---p 00016000 fd:00 1668144                        /lib64/libgcc_s-4.3.2-20081105.so.1
3d0e416000-3d0e417000 rw-p 00016000 fd:00 1668144                        /lib64/libgcc_s-4.3.2-20081105.so.1
7f2710000000-7f2710021000 rw-p 7f2710000000 00:00 0 
7f2710021000-7f2714000000 ---p 7f2710021000 00:00 0 
7f27176c5000-7f27176c7000 rw-p 7f27176c5000 00:00 0 
7f27176e5000-7f27176e8000 rw-p 7f27176e5000 00:00 0 
7fff1f6d3000-7fff1f6e8000 rw-p 7ffffffea000 00:00 0                      [stack]
7fff1f7ff000-7fff1f800000 r-xp 7fff1f7ff000 00:00 0                      [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted

(C)

[root      ]#  strace  -o /dev/null  -p `pgrep Xorg`
Process 2469 attached - interrupt to quit


                          ----------------------------------------------

Sometimes it it failing like above, sometimes it is segmentation faults, and sometimes it may throw you out
of the session.  By writing to a tempory file instead of /dev/null, I have been running Rosegarden thet otherwise
just threw me out of the session. ( As an example )

Perhaps there are better ways to do this ?  

//ARNE






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]