ts-7000
[Top] [All Lists]

[ts-7000] sshd fails to stay in memory on a TS7400 NAND-flash

To:
Subject: [ts-7000] sshd fails to stay in memory on a TS7400 NAND-flash
From: "Dave da brave" <>
Date: Thu, 14 May 2009 12:35:43 -0000
I tried to get sshd running on my tiny NAND-flash partition.
(kernel 2.4.26-ts11)

After compilation and installation everything seems fine, except.... sshd 
always exits:

# strace /etc/init.d/ssh start
execve("/etc/init.d/ssh", ["/etc/init.d/ssh", "start"], [/* 11 vars */]) = 0
uname({sys="Linux", node="ARM100", ...}) = 0
brk(0)                                  = 0xcfe04
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) = 
0x2aac0000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/lib/v4l/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/v4l", 0x7ffff418)          = -1 ENOENT (No such file or directory)
open("/lib/libcrypt.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\0\30\10\0\000"..., 512) = 
512
fstat64(3, {st_mode=S_IFREG|0666, st_size=21860, ...}) = 0
mmap2(NULL, 213292, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x2aac9000
mprotect(0x2aace000, 192812, PROT_NONE) = 0
mmap2(0x2aad5000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4) = 0x2aad5000
mmap2(0x2aad7000, 155948, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2aad7000
close(3)                                = 0
open("/lib/libm.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\0\3042\0\000"..., 512) = 
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=444224, ...}) = 0
mmap2(NULL, 475460, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x2aafe000
mprotect(0x2ab6a000, 33092, PROT_NONE)  = 0
mmap2(0x2ab71000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6b) = 0x2ab71000
close(3)                                = 0
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|0777, st_size=1091040, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x2aac1000
mmap2(NULL, 1128068, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x2ab73000
mprotect(0x2ac7a000, 50820, PROT_NONE)  = 0
mmap2(0x2ac81000, 12288, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x106) = 0x2ac81000
mmap2(0x2ac84000, 9860, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ac84000
close(3)                                = 0
mprotect(0x2ac81000, 8192, PROT_READ)   = 0
mprotect(0x2ab71000, 4096, PROT_READ)   = 0
mprotect(0x2aad5000, 4096, PROT_READ)   = 0
mprotect(0x2aac7000, 4096, PROT_READ)   = 0
getpid()                                = 1458
getuid32()                              = 0
brk(0)                                  = 0xcfe04
brk(0xf0e04)                            = 0xf0e04
brk(0xf1000)                            = 0xf1000
getpid()                                = 1458
time(NULL)                              = 1242307603
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
geteuid32()                             = 0
getppid()                               = 1457
stat64("/", {st_mode=S_IFDIR|0755, st_size=512, ...}) = 0
stat64(".", {st_mode=S_IFDIR|0755, st_size=512, ...}) = 0
open("/etc/init.d/ssh", O_RDONLY|O_LARGEFILE) = 3
fcntl64(3, F_DUPFD, 10)                 = 10
close(3)                                = 0
fcntl64(10, F_SETFD, FD_CLOEXEC)        = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x4d364, ~[], 0x4000000 /* SA_??? */}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {SIG_DFL}, NULL, 8) = 0
read(10, "#! /bin/sh\nset -e\n\n# /etc/init.d"..., 8191) = 2249
stat64("/usr/sbin/sshd", {st_mode=S_IFREG|0755, st_size=314944, ...}) = 0
geteuid32()                             = 0
stat64("/usr/sbin/sshd", {st_mode=S_IFREG|0755, st_size=314944, ...}) = 0
fork()                                  = 1459
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1459
--- SIGCHLD (Child exited) @ 0 (0) ---
stat64("/etc/default/ssh", 0x7ffff9cc)  = -1 ENOENT (No such file or directory)
stat64("/usr/local/etc/ssh_host_key", {st_mode=S_IFREG|0600, st_size=963, ...}) 
= 0
stat64("/usr/local/etc/ssh_host_rsa_key", {st_mode=S_IFREG|0600, st_size=1675, 
...}) = 0
stat64("/usr/local/etc/ssh_host_dsa_key", {st_mode=S_IFREG|0600, st_size=668, 
...}) = 0
stat64("/usr/local/etc/sshd_not_to_be_run", 0x7ffff760) = -1 ENOENT (No such 
file or directory)
stat64("/var/run/sshd", {st_mode=S_IFDIR|0755, st_size=512, ...}) = 0
dup2(1, 1)                              = 1
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 1), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x2aac2000
write(1, "Starting OpenBSD Secure Shell se"..., 42Starting OpenBSD Secure Shell 
server: sshd) = 42
stat64("/sbin/start-stop-daemon", {st_mode=S_IFREG|0755, st_size=777544, ...}) 
= 0
fork()                                  = 1462
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1462
--- SIGCHLD (Child exited) @ 0 (0) ---
dup2(1, 1)                              = 1
write(1, ".\n", 2.
)                      = 2
io_submit(0, 0xffffffff, 0xcfe58 <unfinished ... exit status 0>
Process 1458 detached



Any suggestions are welcome?

Could it be related to the fork() command? I had problems with it in earlier 
software versions...

Thanks in advance!






------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU