Skip to content

Instantly share code, notes, and snippets.

@mhayashi1120
Last active August 29, 2015 13:58
Show Gist options
  • Save mhayashi1120/9932930 to your computer and use it in GitHub Desktop.
Save mhayashi1120/9932930 to your computer and use it in GitHub Desktop.
gosh memory exhaustion
#!/usr/bin/env /usr/local/gauche-current/bin/gosh
(debug-print-width #f)
(use gauche.uvector)
(use gauche.sequence)
(use gauche.threads)
(use rfc.json)
(use parser.peg)
(define (invoke-reader handler ip)
(rlet1 th
(make-thread
(^[]
(let1 gen (peg-parser->generator json-parser ip)
(generator-for-each handler gen))))
(thread-start! th)))
(define (main args)
(receive (ip op) (sys-pipe)
(let1 reader (invoke-reader (^x x) ip)
(let1 json (with-input-from-file "./hoge.json" parse-json)
(let loop ()
(let* ([text (construct-json-string json)])
(display text op))
(loop)))
(thread-terminate! reader)))
0)
{"created_at":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","id":111111111111111111,"id_str":"111111111111111111","text":"\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c\u300c","source":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","truncated":false}
ps auxw | grep gosh[2]
=>
masa 29602 62.4 0.8 102992 51080 pts/4 Rsl+ 20:29 10:08 /usr/local/gauche-current/bin/gosh /home/masa/bin/exam-gosh2
masa 29605 59.9 9.8 657192 604680 pts/5 Rsl+ 20:29 9:44 /usr/local/gauche-current/bin/gosh /home/masa/bin/exam-gosh2
masa 29606 57.6 24.9 1584900 1531524 pts/6 Rsl+ 20:29 9:21 /usr/local/gauche-current/bin/gosh /home/masa/bin/exam-gosh2
ps auxw | grep gosh[2]
=>
masa 29602 63.0 0.8 102992 51016 pts/4 Rsl+ 20:29 13:23 /usr/local/gauche-current/bin/gosh /home/masa/bin/exam-gosh2
masa 29605 60.9 9.8 657192 604616 pts/5 Rsl+ 20:29 12:55 /usr/local/gauche-current/bin/gosh /home/masa/bin/exam-gosh2
masa 29606 57.6 35.9 2259460 2205452 pts/6 Rsl+ 20:29 12:14 /usr/local/gauche-current/bin/gosh /home/masa/bin/exam-gosh2
ps auxw | grep gosh[2]
=>
masa 29602 63.1 0.8 102992 49048 pts/4 Rsl+ 20:29 14:24 /usr/local/gauche-current/bin/gosh /home/masa/bin/exam-gosh2
masa 29605 60.8 9.8 657192 602648 pts/5 Rsl+ 20:29 13:53 /usr/local/gauche-current/bin/gosh /home/masa/bin/exam-gosh2
masa 29606 57.4 39.2 2461956 2406500 pts/6 Rsl+ 20:29 13:05 /usr/local/gauche-current/bin/gosh /home/masa/bin/exam-gosh2
lsof -p 29606
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
gosh 29606 masa cwd DIR 8,17 20480 12845898 /home/masa/tmp
gosh 29606 masa rtd DIR 8,1 4096 2 /
gosh 29606 masa txt REG 8,1 60401 1592583 /usr/local/gauche-current/bin/gosh
gosh 29606 masa mem REG 8,1 102570 1584867 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/srfi-43.so
gosh 29606 masa mem REG 8,1 213416 1584730 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/parser--peg.so
gosh 29606 masa mem REG 8,1 173722 1587757 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/gauche--threads.so
gosh 29606 masa mem REG 8,1 224342 1584719 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/util--match.so
gosh 29606 masa mem REG 8,1 2094782 1584676 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/libgauche-uvector.so
gosh 29606 masa mem REG 8,1 146062 1584726 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/util--queue.so
gosh 29606 masa mem REG 8,1 154716 1584692 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/gauche--sequence.so
gosh 29606 masa mem REG 8,1 226656 1584688 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/gauche--collection.so
gosh 29606 masa mem REG 8,1 64926 1584694 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/gauche--parameter.so
gosh 29606 masa mem REG 8,1 278083 1584863 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/srfi-13.so
gosh 29606 masa mem REG 8,1 110024 1584668 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/srfi-1.so
gosh 29606 masa mem REG 8,1 1599504 392451 /lib/x86_64-linux-gnu/libc-2.13.so
gosh 29606 masa mem REG 8,1 131107 392470 /lib/x86_64-linux-gnu/libpthread-2.13.so
gosh 29606 masa mem REG 8,1 530736 392459 /lib/x86_64-linux-gnu/libm-2.13.so
gosh 29606 masa mem REG 8,1 31744 392472 /lib/x86_64-linux-gnu/librt-2.13.so
gosh 29606 masa mem REG 8,1 10640 392473 /lib/x86_64-linux-gnu/libutil-2.13.so
gosh 29606 masa mem REG 8,1 35104 392455 /lib/x86_64-linux-gnu/libcrypt-2.13.so
gosh 29606 masa mem REG 8,1 14768 392466 /lib/x86_64-linux-gnu/libdl-2.13.so
gosh 29606 masa mem REG 8,1 7338305 1584812 /usr/local/gauche-current/lib/libgauche-0.9.so.0.4
gosh 29606 masa mem REG 8,1 136936 392474 /lib/x86_64-linux-gnu/ld-2.13.so
gosh 29606 masa 0u CHR 136,6 0t0 9 /dev/pts/6
gosh 29606 masa 1u CHR 136,6 0t0 9 /dev/pts/6
gosh 29606 masa 2u CHR 136,6 0t0 9 /dev/pts/6
gosh 29606 masa 3r FIFO 0,8 0t0 742485 pipe
gosh 29606 masa 4w FIFO 0,8 0t0 742485 pipe
gosh 29606 masa 16r FIFO 0,8 0t0 677499 pipe
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
gosh 18667 masa cwd DIR 8,17 12288 12453196 /home/masa/bin
gosh 18667 masa rtd DIR 8,1 4096 2 /
gosh 18667 masa txt REG 8,1 60401 1592583 /usr/local/gauche-current/bin/gosh
gosh 18667 masa mem REG 8,1 102570 1584867 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/srfi-43.so
gosh 18667 masa mem REG 8,1 213416 1584730 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/parser--peg.so
gosh 18667 masa mem REG 8,1 173722 1587757 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/gauche--threads.so
gosh 18667 masa mem REG 8,1 224342 1584719 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/util--match.so
gosh 18667 masa mem REG 8,1 2094782 1584676 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/libgauche-uvector.so
gosh 18667 masa mem REG 8,1 146062 1584726 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/util--queue.so
gosh 18667 masa mem REG 8,1 154716 1584692 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/gauche--sequence.so
gosh 18667 masa mem REG 8,1 226656 1584688 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/gauche--collection.so
gosh 18667 masa mem REG 8,1 64926 1584694 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/gauche--parameter.so
gosh 18667 masa mem REG 8,1 278083 1584863 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/srfi-13.so
gosh 18667 masa mem REG 8,1 110024 1584668 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/srfi-1.so
gosh 18667 masa mem REG 8,1 1599504 392451 /lib/x86_64-linux-gnu/libc-2.13.so
gosh 18667 masa mem REG 8,1 131107 392470 /lib/x86_64-linux-gnu/libpthread-2.13.so
gosh 18667 masa mem REG 8,1 530736 392459 /lib/x86_64-linux-gnu/libm-2.13.so
gosh 18667 masa mem REG 8,1 31744 392472 /lib/x86_64-linux-gnu/librt-2.13.so
gosh 18667 masa mem REG 8,1 10640 392473 /lib/x86_64-linux-gnu/libutil-2.13.so
gosh 18667 masa mem REG 8,1 35104 392455 /lib/x86_64-linux-gnu/libcrypt-2.13.so
gosh 18667 masa mem REG 8,1 14768 392466 /lib/x86_64-linux-gnu/libdl-2.13.so
gosh 18667 masa mem REG 8,1 7338305 1584812 /usr/local/gauche-current/lib/libgauche-0.9.so.0.4
gosh 18667 masa mem REG 8,1 136936 392474 /lib/x86_64-linux-gnu/ld-2.13.so
gosh 18667 masa 0u CHR 136,4 0t0 7 /dev/pts/4
gosh 18667 masa 1u CHR 136,4 0t0 7 /dev/pts/4
gosh 18667 masa 2u CHR 136,4 0t0 7 /dev/pts/4
gosh 18667 masa 3r FIFO 0,8 0t0 691767 pipe
gosh 18667 masa 4w FIFO 0,8 0t0 691767 pipe
gosh 18667 masa 16r FIFO 0,8 0t0 677499 pipe
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
gosh 18669 masa cwd DIR 8,17 12288 12453196 /home/masa/bin
gosh 18669 masa rtd DIR 8,1 4096 2 /
gosh 18669 masa txt REG 8,1 60401 1592583 /usr/local/gauche-current/bin/gosh
gosh 18669 masa mem REG 8,1 102570 1584867 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/srfi-43.so
gosh 18669 masa mem REG 8,1 213416 1584730 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/parser--peg.so
gosh 18669 masa mem REG 8,1 173722 1587757 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/gauche--threads.so
gosh 18669 masa mem REG 8,1 224342 1584719 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/util--match.so
gosh 18669 masa mem REG 8,1 2094782 1584676 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/libgauche-uvector.so
gosh 18669 masa mem REG 8,1 146062 1584726 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/util--queue.so
gosh 18669 masa mem REG 8,1 154716 1584692 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/gauche--sequence.so
gosh 18669 masa mem REG 8,1 226656 1584688 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/gauche--collection.so
gosh 18669 masa mem REG 8,1 64926 1584694 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/gauche--parameter.so
gosh 18669 masa mem REG 8,1 278083 1584863 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/srfi-13.so
gosh 18669 masa mem REG 8,1 110024 1584668 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/srfi-1.so
gosh 18669 masa mem REG 8,1 1599504 392451 /lib/x86_64-linux-gnu/libc-2.13.so
gosh 18669 masa mem REG 8,1 131107 392470 /lib/x86_64-linux-gnu/libpthread-2.13.so
gosh 18669 masa mem REG 8,1 530736 392459 /lib/x86_64-linux-gnu/libm-2.13.so
gosh 18669 masa mem REG 8,1 31744 392472 /lib/x86_64-linux-gnu/librt-2.13.so
gosh 18669 masa mem REG 8,1 10640 392473 /lib/x86_64-linux-gnu/libutil-2.13.so
gosh 18669 masa mem REG 8,1 35104 392455 /lib/x86_64-linux-gnu/libcrypt-2.13.so
gosh 18669 masa mem REG 8,1 14768 392466 /lib/x86_64-linux-gnu/libdl-2.13.so
gosh 18669 masa mem REG 8,1 7338305 1584812 /usr/local/gauche-current/lib/libgauche-0.9.so.0.4
gosh 18669 masa mem REG 8,1 136936 392474 /lib/x86_64-linux-gnu/ld-2.13.so
gosh 18669 masa 0u CHR 136,5 0t0 8 /dev/pts/5
gosh 18669 masa 1u CHR 136,5 0t0 8 /dev/pts/5
gosh 18669 masa 2u CHR 136,5 0t0 8 /dev/pts/5
gosh 18669 masa 3r FIFO 0,8 0t0 692260 pipe
gosh 18669 masa 4w FIFO 0,8 0t0 692260 pipe
gosh 18669 masa 16r FIFO 0,8 0t0 677499 pipe
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
gosh 18672 masa cwd DIR 8,17 12288 12453196 /home/masa/bin
gosh 18672 masa rtd DIR 8,1 4096 2 /
gosh 18672 masa txt REG 8,1 60401 1592583 /usr/local/gauche-current/bin/gosh
gosh 18672 masa mem REG 8,1 102570 1584867 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/srfi-43.so
gosh 18672 masa mem REG 8,1 213416 1584730 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/parser--peg.so
gosh 18672 masa mem REG 8,1 173722 1587757 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/gauche--threads.so
gosh 18672 masa mem REG 8,1 224342 1584719 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/util--match.so
gosh 18672 masa mem REG 8,1 2094782 1584676 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/libgauche-uvector.so
gosh 18672 masa mem REG 8,1 146062 1584726 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/util--queue.so
gosh 18672 masa mem REG 8,1 154716 1584692 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/gauche--sequence.so
gosh 18672 masa mem REG 8,1 226656 1584688 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/gauche--collection.so
gosh 18672 masa mem REG 8,1 64926 1584694 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/gauche--parameter.so
gosh 18672 masa mem REG 8,1 278083 1584863 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/srfi-13.so
gosh 18672 masa mem REG 8,1 110024 1584668 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/srfi-1.so
gosh 18672 masa mem REG 8,1 1599504 392451 /lib/x86_64-linux-gnu/libc-2.13.so
gosh 18672 masa mem REG 8,1 131107 392470 /lib/x86_64-linux-gnu/libpthread-2.13.so
gosh 18672 masa mem REG 8,1 530736 392459 /lib/x86_64-linux-gnu/libm-2.13.so
gosh 18672 masa mem REG 8,1 31744 392472 /lib/x86_64-linux-gnu/librt-2.13.so
gosh 18672 masa mem REG 8,1 10640 392473 /lib/x86_64-linux-gnu/libutil-2.13.so
gosh 18672 masa mem REG 8,1 35104 392455 /lib/x86_64-linux-gnu/libcrypt-2.13.so
gosh 18672 masa mem REG 8,1 14768 392466 /lib/x86_64-linux-gnu/libdl-2.13.so
gosh 18672 masa mem REG 8,1 7338305 1584812 /usr/local/gauche-current/lib/libgauche-0.9.so.0.4
gosh 18672 masa mem REG 8,1 136936 392474 /lib/x86_64-linux-gnu/ld-2.13.so
gosh 18672 masa 0u CHR 136,6 0t0 9 /dev/pts/6
gosh 18672 masa 1u CHR 136,6 0t0 9 /dev/pts/6
gosh 18672 masa 2u CHR 136,6 0t0 9 /dev/pts/6
gosh 18672 masa 3r FIFO 0,8 0t0 691768 pipe
gosh 18672 masa 4w FIFO 0,8 0t0 691768 pipe
gosh 18672 masa 16r FIFO 0,8 0t0 677499 pipe
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
gosh 24941 masa cwd DIR 8,17 12288 12453196 /home/masa/bin
gosh 24941 masa rtd DIR 8,1 4096 2 /
gosh 24941 masa txt REG 8,1 60401 1592583 /usr/local/gauche-current/bin/gosh
gosh 24941 masa mem REG 8,1 102570 1584867 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/srfi-43.so
gosh 24941 masa mem REG 8,1 213416 1584730 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/parser--peg.so
gosh 24941 masa mem REG 8,1 173722 1587757 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/gauche--threads.so
gosh 24941 masa mem REG 8,1 224342 1584719 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/util--match.so
gosh 24941 masa mem REG 8,1 2094782 1584676 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/libgauche-uvector.so
gosh 24941 masa mem REG 8,1 146062 1584726 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/util--queue.so
gosh 24941 masa mem REG 8,1 154716 1584692 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/gauche--sequence.so
gosh 24941 masa mem REG 8,1 226656 1584688 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/gauche--collection.so
gosh 24941 masa mem REG 8,1 64926 1584694 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/gauche--parameter.so
gosh 24941 masa mem REG 8,1 278083 1584863 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/srfi-13.so
gosh 24941 masa mem REG 8,1 110024 1584668 /usr/local/gauche-current/lib/gauche-0.9/0.9.4_pre3/x86_64-unknown-linux-gnu/srfi-1.so
gosh 24941 masa mem REG 8,1 1599504 392451 /lib/x86_64-linux-gnu/libc-2.13.so
gosh 24941 masa mem REG 8,1 131107 392470 /lib/x86_64-linux-gnu/libpthread-2.13.so
gosh 24941 masa mem REG 8,1 530736 392459 /lib/x86_64-linux-gnu/libm-2.13.so
gosh 24941 masa mem REG 8,1 31744 392472 /lib/x86_64-linux-gnu/librt-2.13.so
gosh 24941 masa mem REG 8,1 10640 392473 /lib/x86_64-linux-gnu/libutil-2.13.so
gosh 24941 masa mem REG 8,1 35104 392455 /lib/x86_64-linux-gnu/libcrypt-2.13.so
gosh 24941 masa mem REG 8,1 14768 392466 /lib/x86_64-linux-gnu/libdl-2.13.so
gosh 24941 masa mem REG 8,1 7338305 1584812 /usr/local/gauche-current/lib/libgauche-0.9.so.0.4
gosh 24941 masa mem REG 8,1 136936 392474 /lib/x86_64-linux-gnu/ld-2.13.so
gosh 24941 masa 0u CHR 136,4 0t0 7 /dev/pts/4
gosh 24941 masa 1u CHR 136,4 0t0 7 /dev/pts/4
gosh 24941 masa 2u CHR 136,4 0t0 7 /dev/pts/4
gosh 24941 masa 3r FIFO 0,8 0t0 723798 pipe
gosh 24941 masa 4w FIFO 0,8 0t0 723798 pipe
gosh 24941 masa 16r FIFO 0,8 0t0 677499 pipe
@shirok
Copy link

shirok commented Apr 3, 2014

GCの中で、バックトレースを表示するルーチンで外部プロセスを呼んでpipeを開くコードがあるんですが、普通にGaucheをコンパイルしたら含まれないはずだし…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment