[haiku-bugs] Re: [Haiku] #5498: bfs_shell : stray processes stay active

  • From: "diver" <trac@xxxxxxxxxxxx>
  • Date: Fri, 04 Jan 2013 14:20:55 -0000

#5498: bfs_shell : stray processes stay active
----------------------------+----------------------------
   Reporter:  mmadia        |      Owner:  bonefish
       Type:  bug           |     Status:  reopened
   Priority:  normal        |  Milestone:  R1
  Component:  Build System  |    Version:  R1/Development
 Resolution:                |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  0             |   Platform:  All
----------------------------+----------------------------

Comment (by diver):

 Same problem under ubuntu 12.04

 {{{
 ps ax
 18127 pts/3    S      0:00 /bin/sh
 /home/diver/haiku/haiku/build/scripts/build_haiku_image
 /home/diver/haiku/haiku/generated.x86gcc2
 18129 pts/3    S      0:00
 
/home/diver/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/tools/bfs_shell/bfs_shell
 -n /home/di

 ps xauww
 diver    18127  0.0  0.0   2236   308 pts/3    S    15:30   0:00 /bin/sh
 /home/diver/haiku/haiku/build/scripts/build_haiku_image
 /home/diver/haiku/haiku/generated.x86gcc2/haiku.image-init-vars
 /home/diver/haiku/haiku/generated.x86gcc2/haiku.image-make-dirs
 /home/diver/haiku/haiku/generated.x86gcc2/haiku.image-copy-files
 /home/diver/haiku/haiku/generated.x86gcc2/haiku.image-extract-files
 diver    18129  0.0  0.1   8716  5480 pts/3    S    15:30   0:00
 
/home/diver/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/tools/bfs_shell/bfs_shell
 -n /home/diver/haiku/haiku/generated.x86gcc2/haiku.image
 }}}

 {{{
 lsof -p 18127
 COMMAND     PID  USER   FD   TYPE DEVICE SIZE/OFF     NODE NAME
 build_hai 18127 diver  cwd    DIR    8,1     4096 32918733
 /home/diver/haiku/haiku/generated.x86gcc2
 build_hai 18127 diver  rtd    DIR    8,1     4096        2 /
 build_hai 18127 diver  txt    REG    8,1   100284 38010908 /bin/dash
 build_hai 18127 diver  mem    REG    8,1  1730024 25952269 /lib/i386
 -linux-gnu/libc-2.15.so
 build_hai 18127 diver  mem    REG    8,1   134344 25952387 /lib/i386
 -linux-gnu/ld-2.15.so
 build_hai 18127 diver    0r   CHR    1,3      0t0     5957 /dev/null
 build_hai 18127 diver    1w   CHR    1,3      0t0     5957 /dev/null
 build_hai 18127 diver    2u   CHR  136,3      0t0        6 /dev/pts/3
 build_hai 18127 diver    3r  FIFO    8,1      0t0 29884469
 /tmp/build_haiku_image-18113-fifo-to-shell (deleted)
 build_hai 18127 diver    4w  FIFO    8,1      0t0 29884470
 /tmp/build_haiku_image-18113-fifo-from-shell (deleted)
 build_hai 18127 diver    5r  FIFO    8,1      0t0 29884469
 /tmp/build_haiku_image-18113-fifo-to-shell (deleted)
 build_hai 18127 diver    6w  FIFO    8,1      0t0 29884470
 /tmp/build_haiku_image-18113-fifo-from-shell (deleted)
 build_hai 18127 diver   10u   CHR  136,3      0t0        6 /dev/pts/3
 build_hai 18127 diver   11r  FIFO    8,1      0t0 29884470
 /tmp/build_haiku_image-18113-fifo-from-shell (deleted)
 build_hai 18127 diver   12w  FIFO    8,1      0t0 29884469
 /tmp/build_haiku_image-18113-fifo-to-shell (deleted)
 }}}

 {{{
 lsof -p 18129
 COMMAND     PID  USER   FD   TYPE DEVICE  SIZE/OFF     NODE NAME
 bfs_shell 18129 diver  cwd    DIR    8,1      4096 32918733
 /home/diver/haiku/haiku/generated.x86gcc2
 bfs_shell 18129 diver  rtd    DIR    8,1      4096        2 /
 bfs_shell 18129 diver  txt    REG    8,1    438740 33427161
 
/home/diver/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/tools/bfs_shell/bfs_shell
 bfs_shell 18129 diver  mem    REG    8,1   1730024 25952269 /lib/i386
 -linux-gnu/libc-2.15.so
 bfs_shell 18129 diver  mem    REG    8,1    116232 25953204 /lib/i386
 -linux-gnu/libgcc_s.so.1
 bfs_shell 18129 diver  mem    REG    8,1    905712 14422997 /usr/lib/i386
 -linux-gnu/libstdc++.so.6.0.16
 bfs_shell 18129 diver  mem    REG    8,1    204183 33033908
 /home/diver/haiku/haiku/generated.x86gcc2/objects/linux/lib/libroot_build.so
 bfs_shell 18129 diver  mem    REG    8,1    173576 25952386 /lib/i386
 -linux-gnu/libm-2.15.so
 bfs_shell 18129 diver  mem    REG    8,1    134344 25952387 /lib/i386
 -linux-gnu/ld-2.15.so
 bfs_shell 18129 diver    0r   CHR    1,3       0t0     5957 /dev/null
 bfs_shell 18129 diver    1w   CHR    1,3       0t0     5957 /dev/null
 bfs_shell 18129 diver    2u   CHR  136,3       0t0        6 /dev/pts/3
 bfs_shell 18129 diver    3r  FIFO    8,1       0t0 29884469
 /tmp/build_haiku_image-18113-fifo-to-shell (deleted)
 bfs_shell 18129 diver    4w  FIFO    8,1       0t0 29884470
 /tmp/build_haiku_image-18113-fifo-from-shell (deleted)
 bfs_shell 18129 diver    5r  FIFO    8,1       0t0 29884469
 /tmp/build_haiku_image-18113-fifo-to-shell (deleted)
 bfs_shell 18129 diver    6w  FIFO    8,1       0t0 29884470
 /tmp/build_haiku_image-18113-fifo-from-shell (deleted)
 bfs_shell 18129 diver    7u   REG    8,1 734003200 32918970
 /home/diver/haiku/haiku/generated.x86gcc2/haiku.image (deleted)
 }}}

 {{{
 sudo gdb -p 18127
 Attaching to process 18127
 Reading symbols from /bin/dash...(no debugging symbols found)...done.
 Reading symbols from /lib/i386-linux-gnu/libc.so.6...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/i386-linux-gnu/libc.so.6
 Reading symbols from /lib/ld-linux.so.2...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/ld-linux.so.2
 0xb778d424 in __kernel_vsyscall ()
 (gdb) bt
 #0  0xb778d424 in __kernel_vsyscall ()
 #1  0xb76859ee in wait4 () from /lib/i386-linux-gnu/libc.so.6
 #2  0xb76859c7 in wait3 () from /lib/i386-linux-gnu/libc.so.6
 #3  0x080506c5 in ?? ()
 #4  0x080516ec in ?? ()
 #5  0x0804c19e in ?? ()
 #6  0x0804b209 in ?? ()
 #7  0x0804baa3 in ?? ()
 #8  0x0804c349 in ?? ()
 #9  0x0804b209 in ?? ()
 #10 0x0804b7fc in ?? ()
 #11 0x0804b209 in ?? ()
 #12 0x0804b209 in ?? ()
 #13 0x0804b29e in ?? ()
 #14 0x0804b29e in ?? ()
 #15 0x0804b29e in ?? ()
 #16 0x0804b209 in ?? ()
 #17 0x08051ba4 in ?? ()
 #18 0x08049801 in ?? ()
 #19 0xb75e74d3 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
 #20 0x08049919 in ?? ()
 (gdb)
 }}}
 {{{
 sudo gdb -p 18129
 Attaching to process 18129
 Reading symbols from
 
/home/diver/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/tools/bfs_shell/bfs_shell...(no
 debugging symbols found)...done.
 Reading symbols from /lib/i386-linux-gnu/libm.so.6...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/i386-linux-gnu/libm.so.6
 Reading symbols from
 
/home/diver/haiku/haiku/generated.x86gcc2/objects/linux/lib/libroot_build.so...(no
 debugging symbols found)...done.
 Loaded symbols for
 /home/diver/haiku/haiku/generated.x86gcc2/objects/linux/lib/libroot_build.so
 Reading symbols from /usr/lib/i386-linux-gnu/libstdc++.so.6...(no
 debugging symbols found)...done.
 Loaded symbols for /usr/lib/i386-linux-gnu/libstdc++.so.6
 Reading symbols from /lib/i386-linux-gnu/libgcc_s.so.1...(no debugging
 symbols found)...done.
 Loaded symbols for /lib/i386-linux-gnu/libgcc_s.so.1
 Reading symbols from /lib/i386-linux-gnu/libc.so.6...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/i386-linux-gnu/libc.so.6
 Reading symbols from /lib/ld-linux.so.2...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/ld-linux.so.2
 0xb771c424 in __kernel_vsyscall ()
 (gdb) bt
 #0  0xb771c424 in __kernel_vsyscall ()
 #1  0xb74643c3 in read () from /lib/i386-linux-gnu/libc.so.6
 #2  0xb73f822b in _IO_file_underflow () from /lib/i386-linux-gnu/libc.so.6
 #3  0xb73f9449 in _IO_default_uflow () from /lib/i386-linux-gnu/libc.so.6
 #4  0xb73f9260 in __uflow () from /lib/i386-linux-gnu/libc.so.6
 #5  0xb73ecc9a in _IO_getline_info () from /lib/i386-linux-gnu/libc.so.6
 #6  0xb73ecbe3 in _IO_getline () from /lib/i386-linux-gnu/libc.so.6
 #7  0xb73ebb80 in fgets () from /lib/i386-linux-gnu/libc.so.6
 #8  0x08086ffd in FSShell::get_external_command(char*, int) ()
 #9  0x0807170a in main ()
 (gdb)
 }}}

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5498#comment:8>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: