[uClibc]strace of uClibc/busybox ctrl+c problem

Giulio Orsero giulioo at pobox.com
Wed Jan 9 11:50:40 UTC 2002


This refers to 
http://uclibc.org/lists/busybox/2001-December/010699.html


busybox linked to uClibc
problem is not related to "more", "more" is just a test case.

strace -F -ff -o myfile busybox ash
./busybox more /etc/hosts
<ctrl+c>


ending lines of strace of busybox more
===
write(1, "--More-- (15% of 3071 bytes)", 28) = 28
read(4, 0x8085000, 512)                 = ? ERESTARTSYS (To be restarted)
--- SIGINT (Interrupt) ---
write(1, "\n", 1)                       = 1
ioctl(4, SNDCTL_TMR_START, {B9600 opost isig icanon echo ...}) = 0
ioctl(4, TCGETS, {B9600 opost isig icanon echo ...}) = 0
_exit(1)
===


ending lines of strace of busybox ash
===
read(0, "s", 1)                         = 1
write(1, "s", 1)                        = 1
read(0, "t", 1)                         = 1
write(1, "t", 1)                        = 1
read(0, "s", 1)                         = 1
write(1, "s", 1)                        = 1
read(0, "\n", 1)                        = 1
write(1, "\n", 1)                       = 1
ioctl(0, SNDCTL_TMR_START, {B9600 opost isig icanon echo ...}) = 0
ioctl(0, TCGETS, {B9600 opost isig icanon echo ...}) = 0
rt_sigaction(SIGWINCH, {SIG_DFL}, {0x8063cc0, [], SA_RESTART}, 8) = 0
stat(".", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
open(".", O_RDONLY)                     = 4
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
getdents(4, /* 47 entries */, 4096)     = 928
close(4)                                = 0
stat(".", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
open(".", O_RDONLY)                     = 4
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
getdents(4, /* 47 entries */, 4096)     = 928
getdents(4, /* 0 entries */, 4096)      = 0
close(4)                                = 0
stat("/etc", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc", O_RDONLY)
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
getdents(4, /* 151 entries */, 4096)    = 3260
close(4)                                = 0
fork()                                  = 29623
wait4(-1, 0xbffff27c, 0, NULL) = ? ERESTARTSYS (To be restarted)
--- SIGINT (Interrupt) ---
sigreturn()                             = ? (mask now [])
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 1], 0, NULL) = 29623
--- SIGCHLD (Child exited) ---
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

===

-- 
giulioo at pobox.com



More information about the uClibc mailing list