Skip to content

Instantly share code, notes, and snippets.

@raphael
Created March 25, 2009 06:21
Show Gist options
  • Save raphael/85330 to your computer and use it in GitHub Desktop.
Save raphael/85330 to your computer and use it in GitHub Desktop.
munmap(0x7f7f9e340000, 4096) = 0
dup2(27, 2) = 2
select(31, [3 28 30], [], NULL, {0, 90000}) = 2 (in [28 30], left {0, 90000})
read(28, "456", 16384) = 3
read(28, "", 16384) = 0
read(30, "123", 16383) = 3
read(30, "", 16383) = 0
select(31, [3 28 30], [], NULL, {0, 90000}) = 2 (in [28 30], left {0, 90000})
read(28, "", 16384) = 0
read(30, "", 16383) = 0
close(28) = 0
close(28) = -1 EBADF (Bad file descriptor)
wait4(28855, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 28855
write(1, "Force detach\n", 13Force detach
) = 13
write(1, "Got 123 on stdout and 456 on std"..., 36Got 123 on stdout and 456 on stderr
) = 36
close(30) = 0
close(30) = -1 EBADF (Bad file descriptor)
select(4, [3], [], NULL, {0, 90000}) = 0 (Timeout)
write(1, "Iteration 23\n", 13Iteration 23
) = 13
dup(2) = 28
fcntl(28, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(28, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 7), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7f9e340000
lseek(28, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
lseek(2, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
lseek(28, 18446744073709551615, SEEK_SET) = -1 ESPIPE (Illegal seek)
pipe([29, 30]) = 0
fcntl(29, F_GETFL) = 0 (flags O_RDONLY)
fstat(29, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7f9e33f000
lseek(29, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
fcntl(30, F_GETFL) = 0x1 (flags O_WRONLY)
fstat(30, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7f9e33e000
lseek(30, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
dup2(30, 2) = 2
fcntl(29, F_GETFL) = 0 (flags O_RDONLY)
fcntl(29, F_GETFL) = 0 (flags O_RDONLY)
fcntl(29, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
write(1, "Attaching 0x9a25f0\n", 19Attaching 0x9a25f0
) = 19
socketpair(PF_FILE, SOCK_STREAM, 0, [31, 32]) = 0
fcntl(31, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(31, F_SETFL, O_RDWR|O_NONBLOCK) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f7f9e468770) = 28856
close(32) = 0
close(30) = 0
munmap(0x7f7f9e33e000, 4096) = 0
dup2(28, 2) = 2
select(32, [3 29 31], [], NULL, {0, 90000}) = 1 (in [29], left {0, 90000})
read(29, "456", 16384) = 3
read(29, 0x7fffa647f340, 16384) = -1 EAGAIN (Resource temporarily unavailable)
select(32, [3 29 31], [], NULL, {0, 90000}) = 1 (in [31], left {0, 90000})
read(31, "123", 16383) = 3
read(31, 0x7fffa647f340, 16383) = -1 EAGAIN (Resource temporarily unavailable)
select(32, [3 29 31], [], NULL, {0, 90000}) = 2 (in [29 31], left {0, 90000})
--- SIGCHLD (Child exited) @ 0 (0) ---
read(29, "", 16384) = 0
read(31, "", 16383) = 0
close(29) = 0
close(29) = -1 EBADF (Bad file descriptor)
wait4(28856, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 28856
write(1, "Force detach\n", 13Force detach
) = 13
write(1, "Got 123 on stdout and 456 on std"..., 36Got 123 on stdout and 456 on stderr
) = 36
close(31) = 0
close(31) = -1 EBADF (Bad file descriptor)
select(4, [3], [], NULL, {0, 90000}) = 0 (Timeout)
write(1, "Iteration 24\n", 13Iteration 24
) = 13
dup(2) = 29
fcntl(29, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(29, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 7), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7f9e33e000
lseek(29, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
lseek(2, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
lseek(29, 18446744073709551615, SEEK_SET) = -1 ESPIPE (Illegal seek)
pipe([30, 31]) = 0
fcntl(30, F_GETFL) = 0 (flags O_RDONLY)
fstat(30, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7f9e33d000
lseek(30, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
fcntl(31, F_GETFL) = 0x1 (flags O_WRONLY)
fstat(31, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7f9e33c000
lseek(31, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
dup2(31, 2) = 2
fcntl(30, F_GETFL) = 0 (flags O_RDONLY)
fcntl(30, F_GETFL) = 0 (flags O_RDONLY)
fcntl(30, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
write(1, "Attaching 0x9a5c30\n", 19Attaching 0x9a5c30
) = 19
socketpair(PF_FILE, SOCK_STREAM, 0, [32, 33]) = 0
fcntl(32, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(32, F_SETFL, O_RDWR|O_NONBLOCK) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f7f9e468770) = 28857
close(33) = 0
close(31) = 0
munmap(0x7f7f9e33c000, 4096) = 0
dup2(29, 2) = 2
select(33, [3 30 32], [], NULL, {0, 90000}) = 1 (in [30], left {0, 88000})
read(30, "456", 16384) = 3
read(30, 0x7fffa647f340, 16384) = -1 EAGAIN (Resource temporarily unavailable)
select(33, [3 30 32], [], NULL, {0, 90000}) = 1 (in [32], left {0, 90000})
read(32, "123", 16383) = 3
read(32, 0x7fffa647f340, 16383) = -1 EAGAIN (Resource temporarily unavailable)
select(33, [3 30 32], [], NULL, {0, 90000}) = 1 (in [32], left {0, 90000})
--- SIGCHLD (Child exited) @ 0 (0) ---
read(32, "", 16383) = 0
wait4(28857, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 28857
write(1, "Force detach\n", 13Force detach
) = 13
write(1, "Detaching 0x9a5c30\n", 19Detaching 0x9a5c30
) = 19
write(1, "Got 123 on stdout and 456 on std"..., 36Got 123 on stdout and 456 on stderr
) = 36
close(32) = 0
close(32) = -1 EBADF (Bad file descriptor)
write(1, "Invalid socket for 0x9a3f30\n", 28Invalid socket for 0x9a3f30
) = 28
write(2, "ruby: em.cpp:781: bool EventMach"..., 86ruby: em.cpp:781: bool EventMachine_t::_RunSelectOnce(): Assertion `sd != -1' failed.
) = 86
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
gettid() = 28833
tgkill(28833, 28833, SIGABRT) = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT +++
Process 28833 detached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment