[BusyBox] strace for ash

Jules Colding JuBColding at yorkref.com
Sat Apr 26 10:26:07 UTC 2003


Hi,

I have this problem that ash exits right after the:

"BusyBox v0.60.5 (2003.04.25-20:31+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands."
 
greeting. I now have a trace of what happens, but I am rather lost as to
what it means. Could someone give me a clue, please?

Thanks!
  jules


 
execve("/bin/ash", ["/bin/ash", "--login"], [/* 8 vars */]) = 0
uname({sys="Linux", node="apollo", ...}) = 0
brk(0)                                  = 0x8089f44
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=5672, ...}) = 0
mmap2(NULL, 5672, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40013000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240[\1"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1233144, ...}) = 0
mmap2(NULL, 1224228, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40015000
mprotect(0x40138000, 32292, PROT_NONE)  = 0
mmap2(0x40138000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x122) = 0x40138000
mmap2(0x4013e000, 7716, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4013e000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40140000
munmap(0x40013000, 5672)                = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
getpid()                                = 13049
brk(0)                                  = 0x8089f44
brk(0x808af44)                          = 0x808af44
brk(0)                                  = 0x808af44
brk(0x808b000)                          = 0x808b000
getcwd("/", 4098)                       = 2
brk(0)                                  = 0x808b000
brk(0x808c000)                          = 0x808c000
getppid()                               = 13048
ioctl(0, SNDCTL_TMR_TIMEBASE, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE, {B38400 opost isig icanon echo ...}) = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x8054140, [], SA_RESTORER, 0x4003e178}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {SIG_IGN}, NULL, 8) = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40013000
write(1, "\n", 1)                       = 1
write(1, "\n", 1)                       = 1
write(1, "BusyBox v0.60.5 (2003.04.25-20:3"..., 61) = 61
write(1, "Enter \'help\' for a list of built"..., 46) = 46
write(1, "\n", 1)                       = 1
ioctl(2, TIOCGPGRP, [13040])            = 0
getpgrp()                               = 13040
rt_sigaction(SIGTSTP, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTSTP, {SIG_IGN}, NULL, 8) = 0
rt_sigaction(SIGTTOU, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTTOU, {SIG_IGN}, NULL, 8) = 0
rt_sigaction(SIGTTIN, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTTIN, {SIG_DFL}, NULL, 8) = 0
setpgid(0, 13049)                       = 0
ioctl(2, TIOCSPGRP, [13049])            = 0
open("/etc/profile", O_RDONLY)          = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
brk(0)                                  = 0x808c000
brk(0x808e000)                          = 0x808e000
read(3, "# /etc/profile\n\n# System wide en"..., 8191) = 948
stat64("./[", 0xbfffdc18)               = -1 ENOENT (No such file or directory)
pipe([4, 5])                            = 0
fork()                                  = 13050
close(5)                                = 0
read(4, "0\n", 128)                     = 2
read(4, "", 128)                        = 0
close(4)                                = 0
getpgrp()                               = 13049
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], WUNTRACED, NULL) = 13050
ioctl(2, TIOCSPGRP, [13049])            = 0
stat64("./0", 0xbfffdc18)               = -1 ENOENT (No such file or directory)
stat64("./=", 0xbfffdc18)               = -1 ENOENT (No such file or directory)
stat64("./0", 0xbfffdc18)               = -1 ENOENT (No such file or directory)
stat64("./]", 0xbfffdc18)               = -1 ENOENT (No such file or directory)
stat64("/usr/local/bin/[", 0xbfffde14)  = -1 ENOENT (No such file or directory)
stat64("/usr/bin/[", {st_mode=S_IFREG|0755, st_size=227180, ...}) = 0
fork()                                  = 13051
setpgid(13051, 13051)                   = -1 EACCES (Permission denied)
getpgrp()                               = 13049
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], WUNTRACED, NULL) = 13051
ioctl(2, TIOCSPGRP, [13049])            = 0
stat64("./pathmunge", 0xbfffdba0)       = -1 ENOENT (No such file or directory)
stat64("./[", 0xbfffd9e8)               = -1 ENOENT (No such file or directory)
stat64("./-z", 0xbfffd9e8)              = -1 ENOENT (No such file or directory)
stat64("./", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("./]", 0xbfffd9e8)               = -1 ENOENT (No such file or directory)
fork()                                  = 13052
--- SIGCHLD (Child exited) @ 0 (0) ---
setpgid(13052, 13052)                   = -1 EACCES (Permission denied)
getpgrp()                               = 13049
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], WUNTRACED, NULL) = 13052
ioctl(2, TIOCSPGRP, [13049])            = 0
stat64("./exit", 0xbfffd9e8)            = -1 ENOENT (No such file or directory)
stat64("./0", 0xbfffd9e8)               = -1 ENOENT (No such file or directory)
setpgid(0, 13040)                       = 0
ioctl(2, TIOCSPGRP, [13040])            = 0
exit_group(0)                           = ?




More information about the busybox mailing list