Re: [tuxdroid-user] Tuxdroid ans slug (NSLU2)
Status: Beta
Brought to you by:
ks156
From: Philippe T. <ph...@te...> - 2007-04-18 20:56:56
|
> Could you please give an strace output? > Here is an attempt to make a diff with the laptop + slug - laptop Big diffs: much more mprotect calls, pthreads seem different (and ps ax shows me the 4 "threads" on the slug) +mprotect(0x400b6000, 32392, PROT_NONE) = 0 +mprotect(0x400c2000, 29828, PROT_NONE) = 0 -open("/lib/tls/i686/cmov/libpthread.so.0", O_RDONLY) = 3 +open("/lib/libpthread.so.0", O_RDONLY) = 3 +mprotect(0x400d9000, 306432, PROT_NONE) = 0 +mprotect(0x4012a000, 36064, PROT_NONE) = 0 -open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3 +open("/lib/libc.so.6", O_RDONLY) = 3 +mprotect(0x4023a000, 50820, PROT_NONE) = 0 -open("/lib/tls/i686/cmov/librt.so.1", O_RDONLY) = 3 +open("/lib/librt.so.1", O_RDONLY) = 3 +mprotect(0x4024e000, 77416, PROT_NONE) = 0 -set_thread_area({entry_number:-1 -> 6, base_addr:0xb7d2fba0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 -set_tid_address(0xb7d2fbe8) = 5845 +mprotect(0x40241000, 8192, PROT_READ) = 0 +mprotect(0x400e0000, 4096, PROT_READ) = 0 +mprotect(0x4001c000, 4096, PROT_READ) = 0 -uname({sys="Linux", node="mercure", ...}) = 0 +setrlimit(RLIMIT_STACK, {rlim_cur=2044*1024, rlim_max=RLIM_INFINITY}) = 0 +getpid() = 2234 +rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0 +rt_sigprocmask(SIG_UNBLOCK, [RT_1], NULL, 8) = 0 +getpid() = 2234 -mmap2(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb752d000 -mprotect(0xb752d000, 4096, PROT_NONE) = 0 -clone(child_stack=0xb7d2d4c4, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID|CLONE_DETACHED, parent_tidptr=0xb7d2dbf8, {entry_number:6, base_addr:0xb7d2dbb0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xb7d2dbf8) = 5846 -mmap2(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6d2c000 -mprotect(0xb6d2c000, 4096, PROT_NONE) = 0 -clone(child_stack=0xb752c4c4, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID|CLONE_DETACHED, parent_tidptr=0xb752cbf8, {entry_number:6, base_addr:0xb752cbb0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xb752cbf8) = 5847 +sched_get_priority_max(SCHED_OTHER) = 0 +sched_get_priority_min(SCHED_OTHER) = 0 +clone(child_stack=0x1dff0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND) = 2235 +write(4, "\330\244\1@\5\0\0\0\324*\2@\221\2\0\0\264H\2@\0\0\0\0\270"..., 148) = 148 +rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0 +write(4, "`\22\16@\0\0\0\0t\375\260\276\270\243\6@ \264\1\0\0\0\0"..., 148) = 148 +rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0 +rt_sigsuspend([] <unfinished ...> +--- SIGRTMIN (Unknown signal 32) @ 0 (0) --- +<... rt_sigsuspend resumed> ) = 32 +sigreturn() = ? (mask now [QUIT TRAP ABRT FPE USR2 TERM CONT SYS]) +sched_get_priority_max(SCHED_OTHER) = 0 +sched_get_priority_min(SCHED_OTHER) = 0 +rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0 +write(4, "`\22\16@\0\0\0\0t\375\260\276\270\243\6@\310\250\1\0\0"..., 148) = 148 +rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0 +rt_sigsuspend([] <unfinished ...> +--- SIGRTMIN (Unknown signal 32) @ 0 (0) --- +<... rt_sigsuspend resumed> ) = 32 +sigreturn() = ? (mask now [QUIT TRAP ABRT FPE USR2 TERM CONT SYS]) +pipe([5, 6]) = 0 -[{fd=3, events=POLLIN}], 1, -1) = -1 EINTR (Interrupted system call) ---- SIGRT_1 (Unknown signal 33) @ 0 (0) --- -setgid32(65534) = 0 -futex(0xb7d2d3c0, FUTEX_WAKE, 1) = 1 -rt_sigreturn(0x8052310) = -1 EINTR (Interrupted system call) ---- SIGRT_1 (Unknown signal 33) @ 0 (0) --- -setuid32(65534) = 0 -futex(0xb7d2d3c0, FUTEX_WAKE, 1) = 1 -rt_sigreturn(0x8052310) = -1 EINTR (Interrupted system call) -poll(usb_os_init: Found USB VFS at /dev/bus/usb Full strace: execve("/usr/local/bin/tuxdaemon", ["tuxdaemon"], [/* 12 vars */]) = 0 uname({sys="Linux", node="LKG63472F", ...}) = 0 brk(0) = 0x19000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40015000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=14761, ...}) = 0 mmap2(NULL, 14761, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40016000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/libglib-2.0.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\354\317\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=622556, ...}) = 0 mmap2(NULL, 654984, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4001e000 mprotect(0x400b6000, 32392, PROT_NONE) = 0 mmap2(0x400bd000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x97) = 0x400bd000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/libgthread-2.0.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\210\21\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=14532, ...}) = 0 mmap2(NULL, 46212, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x400be000 mprotect(0x400c2000, 29828, PROT_NONE) = 0 mmap2(0x400c9000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3) = 0x400c9000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libpthread.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\260=\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=92378, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001a000 mmap2(NULL, 367872, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x400ca000 mprotect(0x400d9000, 306432, PROT_NONE) = 0 mmap2(0x400e0000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) = 0x400e0000 mmap2(0x400e2000, 269568, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400e2000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libusb-0.1.so.4", O_RDONLY) = 3 read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0h\22\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=28892, ...}) = 0 mmap2(NULL, 60640, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40124000 mprotect(0x4012a000, 36064, PROT_NONE) = 0 mmap2(0x40131000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5) = 0x40131000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0HO\1\0004"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1091040, ...}) = 0 mmap2(NULL, 1128068, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40133000 mprotect(0x4023a000, 50820, PROT_NONE) = 0 mmap2(0x40241000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x106) = 0x40241000 mmap2(0x40244000, 9860, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40244000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/librt.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0000\35\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=30548, ...}) = 0 mmap2(NULL, 106088, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40247000 mprotect(0x4024e000, 77416, PROT_NONE) = 0 mmap2(0x40255000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0x40255000 mmap2(0x40257000, 40552, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40257000 close(3) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001b000 mprotect(0x40255000, 4096, PROT_READ) = 0 mprotect(0x40241000, 8192, PROT_READ) = 0 mprotect(0x400e0000, 4096, PROT_READ) = 0 mprotect(0x4001c000, 4096, PROT_READ) = 0 munmap(0x40016000, 14761) = 0 getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0 setrlimit(RLIMIT_STACK, {rlim_cur=2044*1024, rlim_max=RLIM_INFINITY}) = 0 getpid() = 2234 rt_sigaction(SIGRTMIN, {0x400d1e98, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {0x400d1b1c, [RTMIN], 0x4000000 /* SA_??? */}, NULL, 8) = 0 rt_sigaction(SIGRT_2, {0x400d1894, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RT_1], NULL, 8) = 0 rt_sigaction(SIGINT, {0x400d6898, [INT], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGKILL, {0x400d6898, [KILL], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = -1 EINVAL (Invalid argument) brk(0) = 0x19000 brk(0x3a000) = 0x3a000 open("/var/run/tuxdaemon.pid", O_RDONLY) = -1 ENOENT (No such file or directory) open("/var/run/tuxdaemon.pid", O_RDWR|O_CREAT|O_TRUNC, 0644) = 3 fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR) fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000 _llseek(3, 0, [0], SEEK_CUR) = 0 flock(3, LOCK_EX|LOCK_NB) = 0 getpid() = 2234 write(3, "2234\n", 5) = 5 flock(3, LOCK_UN) = 0 close(3) = 0 chown32("/var/run/tuxdaemon.pid", 65534, 65534) = 0 fstat64(1, {st_mode=S_IFREG|0644, st_size=6108, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 write(2, "usb_set_debug: Setting debugging"..., 49usb_set_debug: Setting debugging level to 1 (on) ) = 49 open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3 fstat64(3, {st_mode=S_IFDIR|0755, st_size=100, ...}) = 0 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 getdents64(3, /* 5 entries */, 4096) = 120 close(3) = 0 write(2, "usb_os_init: Found USB VFS at /d"..., 43usb_os_init: Found USB VFS at /dev/bus/usb ) = 43 sched_getscheduler(2234) = 0 (SCHED_OTHER) sched_getparam(2234, { 0 }) = 0 sched_get_priority_min(SCHED_OTHER) = 0 sched_get_priority_max(SCHED_OTHER) = 0 sched_get_priority_max(SCHED_OTHER) = 0 gettimeofday({1176925211, 226099}, NULL) = 0 open("/usr/lib/charset.alias", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("/usr/share/locale/locale.alias", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=2582, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000 read(3, "# Locale name alias data base.\n#"..., 4096) = 2582 read(3, "", 4096) = 0 close(3) = 0 munmap(0x40018000, 4096) = 0 sched_get_priority_max(SCHED_OTHER) = 0 sched_get_priority_min(SCHED_OTHER) = 0 pipe([3, 4]) = 0 clone(child_stack=0x1dff0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND) = 2235 write(4, "\330\244\1@\5\0\0\0\324*\2@\221\2\0\0\264H\2@\0\0\0\0\270"..., 148) = 148 rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0 write(4, "`\22\16@\0\0\0\0t\375\260\276\270\243\6@ \264\1\0\0\0\0"..., 148) = 148 rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0 rt_sigsuspend([] <unfinished ...> --- SIGRTMIN (Unknown signal 32) @ 0 (0) --- <... rt_sigsuspend resumed> ) = 32 sigreturn() = ? (mask now [QUIT TRAP ABRT FPE USR2 TERM CONT SYS]) sched_get_priority_max(SCHED_OTHER) = 0 sched_get_priority_min(SCHED_OTHER) = 0 rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0 write(4, "`\22\16@\0\0\0\0t\375\260\276\270\243\6@\310\250\1\0\0"..., 148) = 148 rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0 rt_sigsuspend([] <unfinished ...> --- SIGRTMIN (Unknown signal 32) @ 0 (0) --- <... rt_sigsuspend resumed> ) = 32 sigreturn() = ? (mask now [QUIT TRAP ABRT FPE USR2 TERM CONT SYS]) pipe([5, 6]) = 0 poll(usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 usb_os_init: Found USB VFS at /dev/bus/usb skipping descriptor 0x25 skipping descriptor 0x25 skipping descriptor 0x25 <unfinished ...> Could not delete PID file |