bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash 3 loops


From: Freddy
Subject: bash 3 loops
Date: Sun, 28 Nov 2004 23:34:58 +0100
User-agent: Mozilla Thunderbird 0.9 (Windows/20041103)

im no coder, but perhaps someone can help me figure out what has gone wrong here. bash 3 was compiled with gcc version 3.4.3 and prefix=/usr.

strace:

read(0, "\r", 1)                        = 1
write(2, "\n", 1)                       = 1
rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {0x80893d0, [], 0}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGALRM, {0x8089340, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGTSTP, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTTOU, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTTIN, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGWINCH, {0x807a6b0, [], 0}, {0x80bb030, [], SA_RESTART}, 8) = 0
rt_sigaction(SIGINT, {0x80893d0, [], 0}, {0x80893d0, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigaction(SIGINT, {0x80893d0, [], 0}, {0x80893d0, [], 0}, 8) = 0
time(NULL)                              = 1101679956
rt_sigprocmask(SIG_BLOCK, [CHLD TSTP TTIN TTOU], [], 8) = 0
ioctl(255, TIOCSPGRP, [21233])          = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {0x80893d0, [], 0}, {0x80893d0, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
ioctl(0, TIOCGWINSZ, {ws_row=24, ws_col=110, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(0, TIOCSWINSZ, {ws_row=24, ws_col=110, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {0x80bafa0, [], 0}, {0x80893d0, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x80bafa0, [], 0}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTERM, {SIG_IGN}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {0x80bafa0, [], 0}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGALRM, {0x80bafa0, [], 0}, {0x8089340, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, 8) = 0
rt_sigaction(SIGTSTP, {0x80bafa0, [], 0}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTSTP, {SIG_IGN}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGTTOU, {0x80bafa0, [], 0}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTTOU, {SIG_IGN}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGTTIN, {0x80bafa0, [], 0}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTTIN, {SIG_IGN}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGWINCH, {0x80bb030, [], SA_RESTART}, {0x807a6b0, [], 0}, 8) = 0
write(2, "root@obra:/tmp/bash-3.0# ", 25) = 25
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(0, "\r", 1)                        = 1
write(2, "\n", 1)                       = 1
rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {0x80893d0, [], 0}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGALRM, {0x8089340, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGTSTP, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTTOU, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTTIN, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGWINCH, {0x807a6b0, [], 0}, {0x80bb030, [], SA_RESTART}, 8) = 0
rt_sigaction(SIGINT, {0x80893d0, [], 0}, {0x80893d0, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigaction(SIGINT, {0x80893d0, [], 0}, {0x80893d0, [], 0}, 8) = 0
time(NULL)                              = 1101679957
rt_sigprocmask(SIG_BLOCK, [CHLD TSTP TTIN TTOU], [], 8) = 0
ioctl(255, TIOCSPGRP, [21233])          = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {0x80893d0, [], 0}, {0x80893d0, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
ioctl(0, TIOCGWINSZ, {ws_row=24, ws_col=110, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(0, TIOCSWINSZ, {ws_row=24, ws_col=110, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {0x80bafa0, [], 0}, {0x80893d0, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x80bafa0, [], 0}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTERM, {SIG_IGN}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {0x80bafa0, [], 0}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGALRM, {0x80bafa0, [], 0}, {0x8089340, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, 8) = 0
rt_sigaction(SIGTSTP, {0x80bafa0, [], 0}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTSTP, {SIG_IGN}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGTTOU, {0x80bafa0, [], 0}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTTOU, {SIG_IGN}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGTTIN, {0x80bafa0, [], 0}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTTIN, {SIG_IGN}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGWINCH, {0x80bb030, [], SA_RESTART}, {0x807a6b0, [], 0}, 8) = 0
write(2, "root@obra:/tmp/bash-3.0# ", 25) = 25
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(0, "\r", 1)                        = 1
write(2, "\n", 1)                       = 1
rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {0x80893d0, [], 0}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGALRM, {0x8089340, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGTSTP, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTTOU, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTTIN, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGWINCH, {0x807a6b0, [], 0}, {0x80bb030, [], SA_RESTART}, 8) = 0
rt_sigaction(SIGINT, {0x80893d0, [], 0}, {0x80893d0, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigaction(SIGINT, {0x80893d0, [], 0}, {0x80893d0, [], 0}, 8) = 0
time(NULL)                              = 1101679957
rt_sigprocmask(SIG_BLOCK, [CHLD TSTP TTIN TTOU], [], 8) = 0
ioctl(255, TIOCSPGRP, [21233])          = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {0x80893d0, [], 0}, {0x80893d0, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
ioctl(0, TIOCGWINSZ, {ws_row=24, ws_col=110, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(0, TIOCSWINSZ, {ws_row=24, ws_col=110, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {0x80bafa0, [], 0}, {0x80893d0, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x80bafa0, [], 0}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTERM, {SIG_IGN}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {0x80bafa0, [], 0}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGALRM, {0x80bafa0, [], 0}, {0x8089340, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, 8) = 0
rt_sigaction(SIGTSTP, {0x80bafa0, [], 0}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTSTP, {SIG_IGN}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGTTOU, {0x80bafa0, [], 0}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTTOU, {SIG_IGN}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGTTIN, {0x80bafa0, [], 0}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTTIN, {SIG_IGN}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGWINCH, {0x80bb030, [], SA_RESTART}, {0x807a6b0, [], 0}, 8) = 0
write(2, "root@obra:/tmp/bash-3.0# ", 25) = 25
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(0, "l", 1)                         = 1
write(2, "l", 1)                        = 1
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(0, "s", 1)                         = 1
write(2, "s", 1)                        = 1
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(0, "\r", 1)                        = 1
write(2, "\n", 1)                       = 1
rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {0x80893d0, [], 0}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGALRM, {0x8089340, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {0x80bafa0, [], 0}, 8) = 0
rt_sigaction(SIGTSTP, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTTOU, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTTIN, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGWINCH, {0x807a6b0, [], 0}, {0x80bb030, [], SA_RESTART}, 8) = 0
rt_sigaction(SIGINT, {0x80893d0, [], 0}, {0x80893d0, [], 0}, 8) = 0
time(NULL)                              = 1101679962
stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/local/sbin/ls", 0xbffff7c0) = -1 ENOENT (No such file or directory) stat64("/usr/sbin/ls", 0xbffff7c0) = -1 ENOENT (No such file or directory) stat64("/sbin/ls", 0xbffff7c0) = -1 ENOENT (No such file or directory) stat64("/usr/local/bin/ls", 0xbffff7c0) = -1 ENOENT (No such file or directory)
stat64("/usr/bin/ls", {st_mode=S_IFREG|0755, st_size=72608, ...}) = 0
stat64("/usr/bin/ls", {st_mode=S_IFREG|0755, st_size=72608, ...}) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
fork()                                  = 21237
setpgid(21237, 21237)                   = -1 EACCES (Permission denied)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0xbffff51c, WNOHANG|WUNTRACED|0x8) = -1 EINVAL (Invalid argument)
sigreturn()                             = ? (mask now [])
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD TSTP TTIN TTOU], [CHLD], 8) = 0
ioctl(255, TIOCSPGRP, [21237])          = 0
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
waitpid(-1, 0xbffff908, WUNTRACED|0x8)  = -1 EINVAL (Invalid argument)
waitpid(-1, 0xbffff908, WUNTRACED|0x8)  = -1 EINVAL (Invalid argument)
waitpid(-1, 0xbffff908, WUNTRACED|0x8)  = -1 EINVAL (Invalid argument)
waitpid(-1, 0xbffff908, WUNTRACED|0x8)  = -1 EINVAL (Invalid argument)
waitpid(-1, 0xbffff908, WUNTRACED|0x8)  = -1 EINVAL (Invalid argument)
waitpid(-1, 0xbffff908, WUNTRACED|0x8)  = -1 EINVAL (Invalid argument)
waitpid(-1, 0xbffff908, WUNTRACED|0x8)  = -1 EINVAL (Invalid argument)
waitpid(-1, 0xbffff908, WUNTRACED|0x8)  = -1 EINVAL (Invalid argument)
...........etc




reply via email to

[Prev in Thread] Current Thread [Next in Thread]