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

Denis Vlasenko vda.linux at googlemail.com
Fri Jan 19 07:57:38 PST 2007


On Thursday 18 January 2007 22:36, Laurent B wrote:
> >
> >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) > 00:42:06 accept(3, 0, NULL)             > 00:42:06 brk(0x8095000)                 > 00:42:06 open("/dev/ptmx", O_RDWR)      > 00:42:06 ioctl(5, TIOCSPTLCK, [0])      > 00:42:06 ioctl(5, TIOCGPTN, [0])        > 00:42:06 fcntl(5, F_GETFL)              > 00:42:06 fcntl(5, F_SETFL, O_RDWR|O_NONBLOCK) > 00:42:06 fcntl(4, F_GETFL)              > 00:42:06 fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK) > 00:42:06 fcntl(4, F_GETFL)              > 00:42:06 fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK) > 00:42:06 fork()                         > 00:42:06 select(6, [3 4 5], [4], NULL, NULL) > 00:42:06 write(4, "\377\375\1\377\375\37\377\375!\377\373\1\377\373\3", 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)        > 00:42:06 select(6, [3 4 5], [4 5], NULL, NULL) > 00:42:06 ioctl(5, TIOCSWINSZ, {ws_row$, ws_col€, ws_xpixel, 
> ws_ypixel=0})
> 00:42:06 write(5, "", 0)                > 00:42:06 write(4, "\r\r\n", 3)          > 00:42:06 select(6, [3 4 5], [], NULL, NULL) > 00:42:06 read(5, "(none) login: ", 4000) > 00:42:06 select(6, [3 4 5], [4], NULL, NULL) > 00:42:06 write(4, "(none) login: ", 14) > 00:42:06 select(6, [3 4 5], [], NULL, NULL) > 00:42:07 read(4, "r", 4000)             > 00:42:07 select(6, [3 4 5], [5], NULL, NULL) > 00:42:07 write(5, "r", 1)               > 00:42:07 select(6, [3 4 5], [], NULL, NULL) > 00:42:07 read(5, "r", 4000)             > 00:42:07 select(6, [3 4 5], [4], NULL, NULL) > 00:42:07 write(4, "r", 1)               > 00:42:07 select(6, [3 4 5], [], NULL, NULL) > 00:42:07 read(4, "o", 4000)             > 00:42:07 select(6, [3 4 5], [5], NULL, NULL) > 00:42:07 write(5, "o", 1)               > 00:42:07 select(6, [3 4 5], [], NULL, NULL) > 00:42:07 read(5, "o", 4000)             > 00:42:07 select(6, [3 4 5], [4], NULL, NULL) > 00:42:07 write(4, "o", 1)               > 00:42:07 select(6, [3 4 5], [], NULL, NULL) > 00:42:07 read(4, "o", 4000)             > 00:42:07 select(6, [3 4 5], [5], NULL, NULL) > 00:42:07 write(5, "o", 1)               > 00:42:07 select(6, [3 4 5], [], NULL, NULL) > 00:42:07 read(5, "o", 4000)             > 00:42:07 select(6, [3 4 5], [4], NULL, NULL) > 00:42:07 write(4, "o", 1)               > 00:42:07 select(6, [3 4 5], [], NULL, NULL) > 00:42:07 read(4, "t", 4000)             > 00:42:07 select(6, [3 4 5], [5], NULL, NULL) > 00:42:07 write(5, "t", 1)               > 00:42:07 select(6, [3 4 5], [], NULL, NULL) > 00:42:07 read(5, "t", 4000)             > 00:42:07 select(6, [3 4 5], [4], NULL, NULL) > 00:42:07 write(4, "t", 1)               > 00:42:07 select(6, [3 4 5], [], NULL, NULL) > 00:42:07 read(4, "\r\0", 4000)          > 00:42:07 select(6, [3 4 5], [5], NULL, NULL) > 00:42:07 write(5, "\r", 1)              > 00:42:07 select(6, [3 4 5], [], NULL, NULL) > 00:42:07 read(5, "\r\nPassword: ", 4000) > 00:42:07 select(6, [3 4 5], [4], NULL, NULL) > 00:42:07 write(4, "\r\nPassword: ", 12) > 00:42:07 select(6, [3 4 5], [], NULL, NULL) > 00:42:08 read(4, "r", 4000)             > 00:42:08 select(6, [3 4 5], [5], NULL, NULL) > 00:42:08 write(5, "r", 1)               > 00:42:08 select(6, [3 4 5], [], NULL, NULL) > 00:42:08 read(4, "o", 4000)             > 00:42:08 select(6, [3 4 5], [5], NULL, NULL) > 00:42:08 write(5, "o", 1)               > 00:42:08 select(6, [3 4 5], [], NULL, NULL) > 00:42:08 read(4, "o", 4000)             > 00:42:08 select(6, [3 4 5], [5], NULL, NULL) > 00:42:08 write(5, "o", 1)               > 00:42:08 select(6, [3 4 5], [], NULL, NULL) > 00:42:08 read(4, "t", 4000)             > 00:42:08 select(6, [3 4 5], [5], NULL, NULL) > 00:42:08 write(5, "t", 1)               > 00:42:08 select(6, [3 4 5], [], NULL, NULL) > 00:42:08 read(4, "\r\0", 4000)          > 00:42:08 select(6, [3 4 5], [5], NULL, NULL) > 00:42:08 write(5, "\r", 1)              > 00:42:09 select(6, [3 4 5], [], NULL, NULL) > 00:42:09 read(5, "\r\n", 4000)          > 00:42:09 select(6, [3 4 5], [4], NULL, NULL) > 00:42:09 write(4, "\r\n", 2)            > 00:42:09 select(6, [3 4 5], [], NULL, NULL) > 00:42:09 read(5, "\r\n\r\n", 4000)      > 00:42:09 select(6, [3 4 5], [4], NULL, NULL) > 00:42:09 write(4, "\r\n\r\n", 4)        > 00:42:09 read(5, "BusyBox v1.4.0.svn (2007-01-18 0"..., 3996) > 00:42:09 select(6, [3 4 5], [4], NULL, NULL) > 00:42:09 write(4, "BusyBox v1.4.0.svn (2007-01-18 0"..., 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....

You can filter out child strace like this:

grep ^579 log_child.txt | $PAGER

Some good news. I finally was able to reproduce it.
Please try attached patch - does it help?
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 8.patch
Type: text/x-diff
Size: 920 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20070119/2300c157/attachment.bin 


More information about the busybox mailing list