|
root@lambda:~/Desktop# ps af -jl
|
|
F S UID PID PPID PGID SID C PRI NI ADDR SZ WCHAN TTY TIME CMD
|
|
0 S 0 20576 19390 20576 20576 5 80 0 - 2047 wait pts/9 0:00 bash
|
|
4 R 0 20606 20576 20606 20576 0 80 0 - 1031 - pts/9 0:00 \_ ps af -jl
|
|
0 S 0 20129 19390 20129 20129 0 80 0 - 2062 wait pts/2 0:00 bash
|
|
0 S 0 20569 20129 20569 20129 0 80 0 - 2985 poll_s pts/2 0:00 \_ ruby ./forktest.rb 1
|
|
5 S 0 20573 20569 20573 20573 0 80 0 - 2950 futex_ pts/4 0:00 \_ ruby ./forktest.rb 1
|
|
0 S 0 19392 19390 19392 19392 0 80 0 - 2047 wait pts/0 0:00 bash
|
|
0 S 0 19910 19392 19910 19392 0 80 0 - 1989 poll_s pts/0 0:02 \_ mc
|
|
0 S 0 19912 19910 19912 19912 0 80 0 - 2049 n_tty_ pts/1 0:00 \_ bash -rcfile .bashrc
|
|
4 S 0 21690 2866 21690 21690 7 80 0 - 15851 poll_s tty8 775:05 /usr/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth vt8
|
|
4 S 0 16179 1 16179 16179 0 80 0 - 1165 wait pts/12 0:00 sh -c ./start_shell.sh -noshell -name n_0@127.0.0.1 -ns_serve
|
|
0 S 0 16180 16179 16179 16179 0 80 0 - 12320 poll_s pts/12 2:40 \_ /usr/lib/erlang/erts-5.7.5/bin/beam.smp -- -root /usr/lib
|
|
4 S 0 2953 1 2953 2953 0 80 0 - 409 n_tty_ tty6 0:00 /sbin/getty 38400 tty6
|
|
4 S 0 2952 1 2952 2952 0 80 0 - 409 n_tty_ tty5 0:00 /sbin/getty 38400 tty5
|
|
4 S 0 2951 1 2951 2951 0 80 0 - 409 n_tty_ tty4 0:00 /sbin/getty 38400 tty4
|
|
4 S 0 2950 1 2950 2950 0 80 0 - 410 n_tty_ tty3 0:00 /sbin/getty 38400 tty3
|
|
4 S 0 2949 1 2949 2949 0 80 0 - 409 n_tty_ tty2 0:00 /sbin/getty 38400 tty2
|
|
4 S 0 2948 1 2948 2948 0 80 0 - 409 n_tty_ tty1 0:00 /sbin/getty 38400 tty1
|
|
root@lambda:~/Desktop# gdb
|
|
GNU gdb (GDB) 7.1-debian
|
|
Copyright (C) 2010 Free Software Foundation, Inc.
|
|
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
|
|
This is free software: you are free to change and redistribute it.
|
|
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
|
|
and "show warranty" for details.
|
|
This GDB was configured as "i486-linux-gnu".
|
|
For bug reporting instructions, please see:
|
|
<http://www.gnu.org/software/gdb/bugs/>.
|
|
(gdb) attach 20573
|
|
Attaching to process 20573
|
|
Reading symbols from /usr/bin/ruby1.8...Reading symbols from /usr/lib/debug/usr/bin/ruby1.8...done.
|
|
done.
|
|
Reading symbols from /usr/lib/libruby1.8.so.1.8...Reading symbols from /usr/lib/debug/usr/lib/libruby1.8.so.1.8.7...done.
|
|
done.
|
|
Loaded symbols for /usr/lib/libruby1.8.so.1.8
|
|
Reading symbols from /lib/i686/cmov/libpthread.so.0...Reading symbols from /usr/lib/debug/lib/i686/cmov/libpthread-2.10.2.so...done.
|
|
[Thread debugging using libthread_db enabled]
|
|
done.
|
|
Loaded symbols for /lib/i686/cmov/libpthread.so.0
|
|
Reading symbols from /lib/i686/cmov/librt.so.1...Reading symbols from /usr/lib/debug/lib/i686/cmov/librt-2.10.2.so...done.
|
|
done.
|
|
Loaded symbols for /lib/i686/cmov/librt.so.1
|
|
Reading symbols from /lib/i686/cmov/libdl.so.2...Reading symbols from /usr/lib/debug/lib/i686/cmov/libdl-2.10.2.so...done.
|
|
done.
|
|
Loaded symbols for /lib/i686/cmov/libdl.so.2
|
|
Reading symbols from /lib/i686/cmov/libcrypt.so.1...Reading symbols from /usr/lib/debug/lib/i686/cmov/libcrypt-2.10.2.so...done.
|
|
done.
|
|
Loaded symbols for /lib/i686/cmov/libcrypt.so.1
|
|
Reading symbols from /lib/i686/cmov/libm.so.6...Reading symbols from /usr/lib/debug/lib/i686/cmov/libm-2.10.2.so...done.
|
|
done.
|
|
Loaded symbols for /lib/i686/cmov/libm.so.6
|
|
Reading symbols from /lib/i686/cmov/libc.so.6...Reading symbols from /usr/lib/debug/lib/i686/cmov/libc-2.10.2.so...done.
|
|
done.
|
|
Loaded symbols for /lib/i686/cmov/libc.so.6
|
|
Reading symbols from /lib/ld-linux.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.10.2.so...done.
|
|
done.
|
|
Loaded symbols for /lib/ld-linux.so.2
|
|
Reading symbols from /usr/lib/ruby/1.8/i486-linux/pty.so...Reading symbols from /usr/lib/debug/usr/lib/ruby/1.8/i486-linux/pty.so...done.
|
|
done.
|
|
Loaded symbols for /usr/lib/ruby/1.8/i486-linux/pty.so
|
|
Reading symbols from /lib/i686/cmov/libutil.so.1...Reading symbols from /usr/lib/debug/lib/i686/cmov/libutil-2.10.2.so...done.
|
|
done.
|
|
Loaded symbols for /lib/i686/cmov/libutil.so.1
|
|
0xffffe430 in __kernel_vsyscall ()
|
|
(gdb) bt
|
|
#0 0xffffe430 in __kernel_vsyscall ()
|
|
#1 0xf763ab69 in __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:142
|
|
#2 0xf76386f6 in pthread_cond_signal@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_signal.S:174
|
|
#3 0xf767591f in rb_thread_stop_timer () at eval.c:12365
|
|
#4 0xf76ca2f0 in rb_proc_exec (str=0x86790a8 "ruby -e '(4000000/1).times {}; sleep 0.2; puts 1'") at process.c:1063
|
|
#5 0xf76ca3b5 in proc_exec_args (earg=4292093184) at process.c:1236
|
|
#6 0xf76ca488 in rb_f_exec (argc=1, argv=0xffd42ac0) at process.c:1292
|
|
#7 0xf77497f6 in pty_exec (v=4292093780) at pty.c:189
|
|
#8 0xf7675001 in rb_protect (proc=0xf77497d0 <pty_exec>, data=4292093780, state=0xffd4275c) at eval.c:5544
|
|
#9 0xf7749789 in establishShell (argc=1, argv=0xffd42ac0, self=4148608340) at pty.c:284
|
|
#10 pty_getpty (argc=1, argv=0xffd42ac0, self=4148608340) at pty.c:427
|
|
#11 0xf7673608 in call_cfunc (func=0xf7749380 <pty_getpty>, recv=4151402368, len=-1, argc=1, argv=0xffd42ac0) at eval.c:5778
|
|
#12 0xf767eb68 in rb_call0 (klass=<value optimized out>, recv=<value optimized out>, id=10961, oid=10961, argc=1, argv=0xffd42ac0,
|
|
body=0xf746bcb4, flags=0) at eval.c:5928
|
|
#13 0xf767ed0a in rb_call (klass=4148608280, recv=4148608340, mid=10961, argc=1, argv=0xffd42ac0, scope=0, self=4148681040)
|
|
at eval.c:6176
|
|
#14 0xf767bff5 in rb_eval (self=<value optimized out>, n=<value optimized out>) at eval.c:3506
|
|
#15 0xf767ca70 in rb_eval (self=<value optimized out>, n=<value optimized out>) at eval.c:3236
|
|
#16 0xf767d212 in rb_yield_0 (val=<value optimized out>, self=<value optimized out>, klass=0, flags=<value optimized out>, avalue=0)
|
|
at eval.c:5095
|
|
#17 0xf76889b7 in rb_yield (val=3) at eval.c:5179
|
|
#18 0xf76a8601 in int_dotimes (num=9) at numeric.c:2960
|
|
#19 0xf76735ed in call_cfunc (func=0xf76a85b0 <int_dotimes>, recv=4151402368, len=0, argc=0, argv=0xfffffe00) at eval.c:5781
|
|
#20 0xf767eb68 in rb_call0 (klass=<value optimized out>, recv=<value optimized out>, id=5753, oid=5753, argc=0, argv=0x0,
|
|
body=0xf7479c60, flags=0) at eval.c:5928
|
|
#21 0xf767ed0a in rb_call (klass=4148665720, recv=9, mid=5753, argc=0, argv=0x0, scope=0, self=4148681040) at eval.c:6176
|
|
#22 0xf767bff5 in rb_eval (self=<value optimized out>, n=<value optimized out>) at eval.c:3506
|
|
#23 0xf767ca70 in rb_eval (self=<value optimized out>, n=<value optimized out>) at eval.c:3236
|
|
#24 0xf767d212 in rb_yield_0 (val=<value optimized out>, self=<value optimized out>, klass=0, flags=<value optimized out>, avalue=0)
|
|
at eval.c:5095
|
|
#25 0xf7688cd3 in loop_i () at eval.c:5227
|
|
#26 0xf7672ecb in rb_rescue2 (b_proc=0xf7688c90 <loop_i>, data1=0, r_proc=0, data2=0) at eval.c:5491
|
|
#27 0xf767301c in rb_f_loop () at eval.c:5252
|
|
#28 0xf76735ed in call_cfunc (func=0xf7672fd0 <rb_f_loop>, recv=4151402368, len=0, argc=0, argv=0xfffffe00) at eval.c:5781
|
|
#29 0xf767eb68 in rb_call0 (klass=<value optimized out>, recv=<value optimized out>, id=4121, oid=4121, argc=0, argv=0x0,
|
|
body=0xf747cdc0, flags=2) at eval.c:5928
|
|
#30 0xf767ed0a in rb_call (klass=4148685980, recv=4148681040, mid=4121, argc=0, argv=0x0, scope=1, self=4148681040) at eval.c:6176
|
|
#31 0xf767bf06 in rb_eval (self=<value optimized out>, n=<value optimized out>) at eval.c:3521
|
|
#32 0xf767ca70 in rb_eval (self=<value optimized out>, n=<value optimized out>) at eval.c:3236
|
|
#33 0xf768b157 in ruby_exec_internal () at eval.c:1654
|
|
---Type <return> to continue, or q <return> to quit---
|
|
#34 0xf768b1a2 in ruby_exec () at eval.c:1674
|
|
#35 0xf768b1e5 in ruby_run () at eval.c:1684
|
|
#36 0x0804870d in main (argc=3, argv=0xffd45434, envp=0xffd45444) at main.c:48
|
|
(gdb)
|