[MAYBE SOLVED] was Can't resolv "sh: can't access tty; job control turned of

Laurent B the_ccm at hotmail.com
Thu Jan 18 13:36:08 PST 2007


>
>Anyway, I'd be more interested in the strace output of the cases where
>it is known to fail. It could be a libc problem.
>
>--
>lfr
>0/0



here is the output of strace :
00:41:59 select(4, [3], [], NULL, NULL) = 1 (in [3])
00:42:06 accept(3, 0, NULL)             = 4
00:42:06 brk(0x8095000)                 = 0x8095000
00:42:06 open("/dev/ptmx", O_RDWR)      = 5
00:42:06 ioctl(5, TIOCSPTLCK, [0])      = 0
00:42:06 ioctl(5, TIOCGPTN, [0])        = 0
00:42:06 fcntl(5, F_GETFL)              = 0x2 (flags O_RDWR)
00:42:06 fcntl(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0
00:42:06 fcntl(4, F_GETFL)              = 0x2 (flags O_RDWR)
00:42:06 fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0
00:42:06 fcntl(4, F_GETFL)              = 0x802 (flags O_RDWR|O_NONBLOCK)
00:42:06 fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0
00:42:06 fork()                         = 565
00:42:06 select(6, [3 4 5], [4], NULL, NULL) = 3 (in [4 5], out [4])
00:42:06 write(4, "\377\375\1\377\375\37\377\375!\377\373\1\377\373\3", 15) 
= 15
00:42:06 read(4, 
"\377\375&\377\373&\377\375\3\377\373\30\377\373\37\377"..., 40
00:42:06 read(5, "\r\r\n", 3985)        = 3
00:42:06 select(6, [3 4 5], [4 5], NULL, NULL) = 2 (out [4 5])
00:42:06 ioctl(5, TIOCSWINSZ, {ws_row=24, ws_col=80, ws_xpixel=17, 
ws_ypixel=0})
00:42:06 write(5, "", 0)                = 0
00:42:06 write(4, "\r\r\n", 3)          = 3
00:42:06 select(6, [3 4 5], [], NULL, NULL) = 1 (in [5])
00:42:06 read(5, "(none) login: ", 4000) = 14
00:42:06 select(6, [3 4 5], [4], NULL, NULL) = 1 (out [4])
00:42:06 write(4, "(none) login: ", 14) = 14
00:42:06 select(6, [3 4 5], [], NULL, NULL) = 1 (in [4])
00:42:07 read(4, "r", 4000)             = 1
00:42:07 select(6, [3 4 5], [5], NULL, NULL) = 1 (out [5])
00:42:07 write(5, "r", 1)               = 1
00:42:07 select(6, [3 4 5], [], NULL, NULL) = 1 (in [5])
00:42:07 read(5, "r", 4000)             = 1
00:42:07 select(6, [3 4 5], [4], NULL, NULL) = 1 (out [4])
00:42:07 write(4, "r", 1)               = 1
00:42:07 select(6, [3 4 5], [], NULL, NULL) = 1 (in [4])
00:42:07 read(4, "o", 4000)             = 1
00:42:07 select(6, [3 4 5], [5], NULL, NULL) = 1 (out [5])
00:42:07 write(5, "o", 1)               = 1
00:42:07 select(6, [3 4 5], [], NULL, NULL) = 1 (in [5])
00:42:07 read(5, "o", 4000)             = 1
00:42:07 select(6, [3 4 5], [4], NULL, NULL) = 1 (out [4])
00:42:07 write(4, "o", 1)               = 1
00:42:07 select(6, [3 4 5], [], NULL, NULL) = 1 (in [4])
00:42:07 read(4, "o", 4000)             = 1
00:42:07 select(6, [3 4 5], [5], NULL, NULL) = 1 (out [5])
00:42:07 write(5, "o", 1)               = 1
00:42:07 select(6, [3 4 5], [], NULL, NULL) = 1 (in [5])
00:42:07 read(5, "o", 4000)             = 1
00:42:07 select(6, [3 4 5], [4], NULL, NULL) = 1 (out [4])
00:42:07 write(4, "o", 1)               = 1
00:42:07 select(6, [3 4 5], [], NULL, NULL) = 1 (in [4])
00:42:07 read(4, "t", 4000)             = 1
00:42:07 select(6, [3 4 5], [5], NULL, NULL) = 1 (out [5])
00:42:07 write(5, "t", 1)               = 1
00:42:07 select(6, [3 4 5], [], NULL, NULL) = 1 (in [5])
00:42:07 read(5, "t", 4000)             = 1
00:42:07 select(6, [3 4 5], [4], NULL, NULL) = 1 (out [4])
00:42:07 write(4, "t", 1)               = 1
00:42:07 select(6, [3 4 5], [], NULL, NULL) = 1 (in [4])
00:42:07 read(4, "\r\0", 4000)          = 2
00:42:07 select(6, [3 4 5], [5], NULL, NULL) = 1 (out [5])
00:42:07 write(5, "\r", 1)              = 1
00:42:07 select(6, [3 4 5], [], NULL, NULL) = 1 (in [5])
00:42:07 read(5, "\r\nPassword: ", 4000) = 12
00:42:07 select(6, [3 4 5], [4], NULL, NULL) = 1 (out [4])
00:42:07 write(4, "\r\nPassword: ", 12) = 12
00:42:07 select(6, [3 4 5], [], NULL, NULL) = 1 (in [4])
00:42:08 read(4, "r", 4000)             = 1
00:42:08 select(6, [3 4 5], [5], NULL, NULL) = 1 (out [5])
00:42:08 write(5, "r", 1)               = 1
00:42:08 select(6, [3 4 5], [], NULL, NULL) = 1 (in [4])
00:42:08 read(4, "o", 4000)             = 1
00:42:08 select(6, [3 4 5], [5], NULL, NULL) = 1 (out [5])
00:42:08 write(5, "o", 1)               = 1
00:42:08 select(6, [3 4 5], [], NULL, NULL) = 1 (in [4])
00:42:08 read(4, "o", 4000)             = 1
00:42:08 select(6, [3 4 5], [5], NULL, NULL) = 1 (out [5])
00:42:08 write(5, "o", 1)               = 1
00:42:08 select(6, [3 4 5], [], NULL, NULL) = 1 (in [4])
00:42:08 read(4, "t", 4000)             = 1
00:42:08 select(6, [3 4 5], [5], NULL, NULL) = 1 (out [5])
00:42:08 write(5, "t", 1)               = 1
00:42:08 select(6, [3 4 5], [], NULL, NULL) = 1 (in [4])
00:42:08 read(4, "\r\0", 4000)          = 2
00:42:08 select(6, [3 4 5], [5], NULL, NULL) = 1 (out [5])
00:42:08 write(5, "\r", 1)              = 1
00:42:09 select(6, [3 4 5], [], NULL, NULL) = 1 (in [5])
00:42:09 read(5, "\r\n", 4000)          = 2
00:42:09 select(6, [3 4 5], [4], NULL, NULL) = 1 (out [4])
00:42:09 write(4, "\r\n", 2)            = 2
00:42:09 select(6, [3 4 5], [], NULL, NULL) = 1 (in [5])
00:42:09 read(5, "\r\n\r\n", 4000)      = 4
00:42:09 select(6, [3 4 5], [4], NULL, NULL) = 2 (in [5], out [4])
00:42:09 write(4, "\r\n\r\n", 4)        = 4
00:42:09 read(5, "BusyBox v1.4.0.svn (2007-01-18 0"..., 3996) = 165
00:42:09 select(6, [3 4 5], [4], NULL, NULL) = 1 (out [4])
00:42:09 write(4, "BusyBox v1.4.0.svn (2007-01-18 0"..., 165) = 165
00:42:09 select(6, [3 4 5], [], NULL, NULL <unfinished ...>

and also the output of strace -f (whith child calls) here :

http://belliv23.free.fr/temp/log_child.txt
there are stange things in it, but I don't really know how to read this 
log....

Thankx,


Laurent

_________________________________________________________________
Ten :  Messenger en illimité sur votre mobile !  
http://mobile.live.fr/messenger/ten/



More information about the busybox mailing list