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
old_mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, 0, 0) =
0x1cce000
getcwd("/hdd/newscript", 192)           = 15
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
fcntl64(0, F_DUPFD, 255)                = 255
geteuid()                               = 0
old_mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, 0, 0) =
0x1cd0000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, 0, 0) =
0x1cf6000
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, SNDCTL_TMR_START, {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)
config is attach

If you want more debuginfo just tell me what to do






> -----Oorspronkelijk bericht-----
> Van: Denys Vlasenko [mailto:[EMAIL PROTECTED]
> Verzonden: vrijdag 15 februari 2008 10:24
> Aan: [email protected]
> CC: Martinb_ARM_NOMMU_KISSDVD
> Onderwerp: Re: Command line editing give a wrong result for me on hush
> shell 1.9.1
>
>
> On Thursday 14 February 2008 22:52, Martinb_ARM_NOMMU_KISSDVD wrote:
> > (repost with the 1.9.1 results)
> >
> > After reading the README, TODO and some part of the source I
> want to report
> > the following behaviour
> >
> > I’m still using the lash (1.2) and I’m starting to switch to hush
> > (I already need hush for scripting and I want to remove lash so
> I can spare
> > some space on the flashrom)
> >
> > Problem is a bit hard to explain but in general I just see strange
> > characters if I use the backspace and cursor keys
> >
> > To make it simple to explain I give some output on strace
> > 1e output is strace attached to a working lash (1.2.0)
> > and I do type the keys <a> <b> <cursor left> <backspace>
> >
> > read(0, "a", 1)                         = 1
> > write(1, "a", 1)                        = 1
> > read(0, "b", 1)                         = 1
> > write(1, "b", 1)                        = 1
> > read(0, "\33", 1)                       = 1
> > read(0, "[", 1)                         = 1
> > read(0, "D", 1)                         = 1
> > write(1, "\10", 1)                      = 1
> > read(0, "\177", 1)                      = 1
> > write(1, "\10b \10\10", 5)              = 5
> > read(0,
> >
> > so this is giving me the correct results
> >
> > If I do the exact same thing from hush (1.9.1) I get:
> >
> > / # strace -p66
> > Process 66 attached - interrupt to quit
> > select(4, [0 3], [], NULL, NULL)        = 1 (in [0])
> > read(0, "a", 4000)                      = 1
> > select(4, [0 3], [3], NULL, NULL)       = 1 (out [3])
> > write(3, "a", 1)                        = 1
>
> This is very strange that you see select()! I see just read():
>
> # strace -p8185
> Process 8185 attached - interrupt to quit
> 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 or TCSETS, {B38400 opost isig icanon
> echo ...}) = 0
> ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon
> echo ...}) = 0
> rt_sigaction(SIGWINCH, {SIG_DFL}, {0x80c6a2d, [WINCH],
> SA_RESTORER|SA_RESTART, 0x80486eb}, 8) = 0
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
> rt_sigaction(SIGTSTP, {0x8086707, [], SA_RESTORER|SA_RESTART,
> 0x80486eb}, NULL, 8) = 0
> rt_sigaction(SIGINT, {0x80866f7, [INT], SA_RESTORER|SA_RESTART,
> 0x80486eb}, {SIG_IGN}, 8) = 0
> rt_sigprocmask(SIG_SETMASK, ~[], NULL, 8) = 0
> ioctl(255, TIOCSPGRP, [2328])           = 0
> _exit(0)                                = ?
> Process 8185 detached
> #
>
> Can you do this: "strace -o logfile ./busybox hush", and then type "exit"
> into hush prompt, and send complete logfile to the list?
> bzip2 it if it's big. Also attach your .config.
> I guess it's a NOMMU build?
>
> > I do understand that most people will comment "update
> toolchain" but that’s
> > not a option at this time (I’m working on this)
>
> No, actially I think toolchain is not a culprit here.
> --
> vda

Attachment: .config
Description: Binary data

_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to