On Friday 15 February 2008 18:55, Martinb_ARM_NOMMU_KISSDVD wrote:
> i did:
>
> /hdd/newscript # strace -o logfile2 ./hush
>
> if i cat the logfile2 i get:
>
>
> /hdd/newscript # cat logfile2
> execve("./hush", ["./hush"], [/* 5 vars */]) = 0
> ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
> ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
...
> ioctl(0, TCGETS, {B38400 opost -isig -icanon -echo ...}) = 0
> rt_sigaction(SIGWINCH, {0x15e2998, [WINCH], SA_RESTART|0x4000000},
> {SIG_DFL}, 8) = 0
> ioctl(0, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0
> write(1, "/hdd/newscript # ", 17) = 17
> read(0, "e", 1) = 1
> write(1, "e", 1) = 1
> read(0, "x", 1) = 1
> write(1, "x", 1) = 1
> read(0, "i", 1) = 1
> write(1, "i", 1) = 1
> read(0, "t", 1) = 1
> write(1, "t", 1) = 1
> read(0, "\n", 1) = 1
> write(1, "\n", 1) = 1
> ioctl(0, SNDCTL_TMR_START, {B38400 opost isig icanon echo ...}) = 0
> ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
> rt_sigaction(SIGWINCH, {SIG_DFL}, {0x15e2998, [WINCH],
> SA_RESTART|0x4000000}, 8) = 0
> _exit(0) = ?
>
> thanks god i have no idea what this mean
> its possible that strace is not 100% ok (i did build this myself with a
> verry old toolchain)
Looks like strace works just fine.
Take a closer look at the log. Your input (letters "exit")
was read using read() syscalls. There is no select() syscall as you
have shown me in the previous mail.
*This is strange.*
In itself it is not a problem, but it most likely means that these
are two different programs! This is not the same program, otherwise why
it behaves differently? I mean - select() calls cannot "just appear"
in strace output, they have to be coded at C language level.
Can you run strace again, but instead of "exit" type key sequences
which produce bad behavior. I will need full strace log again.
Just showing the tail of it will not be as good.
Thanks for your time debugging this.
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox