[uClibc]Trying to figure out lsh
Robert
robert at digitalisles.com
Wed Nov 6 03:09:33 UTC 2002
Just as an addon, here is an strace of an attempted connection...
/ # strace lsh -l root 192.168.1.16
execve("/usr/bin/lsh", ["lsh", "-l", "root", "192.168.1.16"], [/* 7 vars
*/]) =0
ioctl(0, SNDCTL_TMR_TIMEBASE, {B19200 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE, {B19200 opost isig icanon echo ...}) = 0
brk(0) = 0x80c7c0c
brk(0x80cac0c) = 0x80cac0c
brk(0x80cb000) = 0x80cb000
brk(0x80cc000) = 0x80cc000
brk(0x80cd000) = 0x80cd000
brk(0x80ce000) = 0x80ce000
open("/dev/tty", O_RDWR) = 3
rt_sigaction(SIGWINCH, {0x8062738, [], 0}, NULL, 8) = 0
brk(0x80cf000) = 0x80cf000
open("/etc/passwd", O_RDONLY) = 4
read(4, "root:x:0:0:root:/root:/bin/ash\nd"..., 256) = 256
lseek(4, -225, SEEK_CUR) = 31
read(4, "daemon:x:1:1:daemon:/usr/sbin:/b"..., 256) = 256
lseek(4, -218, SEEK_CUR) = 69
read(4, "bin:x:2:2:bin:/bin:/bin/sh\nsys:x"..., 256) = 256
lseek(4, -229, SEEK_CUR) = 96
read(4, "sys:x:3:3:sys:/dev:/bin/sh\nsync:"..., 256) = 256
lseek(4, -229, SEEK_CUR) = 123
read(4, "sync:x:4:100:sync:/bin:/bin/sync"..., 256) = 256
lseek(4, -223, SEEK_CUR) = 156
read(4, "games:x:5:100:games:/usr/games:/"..., 256) = 256
lseek(4, -217, SEEK_CUR) = 195
read(4, "man:x:6:100:man:/var/cache/man:/"..., 256) = 256
lseek(4, -217, SEEK_CUR) = 234
read(4, "lp:x:7:7:lp:/var/spool/lpd:/bin/"..., 256) = 256
lseek(4, -221, SEEK_CUR) = 269
read(4, "mail:x:8:8:mail:/var/mail:/bin/s"..., 256) = 256
lseek(4, -222, SEEK_CUR) = 303
read(4, "news:x:9:9:news:/var/spool/news:"..., 256) = 256
lseek(4, -216, SEEK_CUR) = 343
read(4, "uucp:x:10:10:uucp:/var/spool/uuc"..., 256) = 256
lseek(4, -214, SEEK_CUR) = 385
read(4, "proxy:x:13:13:proxy:/bin:/bin/sh"..., 256) = 256
lseek(4, -223, SEEK_CUR) = 418
read(4, "majordom:x:30:31:Majordomo:/usr/"..., 256) = 256
lseek(4, -202, SEEK_CUR) = 472
read(4, "postgres:x:31:32:postgres:/var/l"..., 256) = 256
lseek(4, -204, SEEK_CUR) = 524
read(4, "www-data:x:33:33:www-data:/var/w"..., 256) = 256
lseek(4, -213, SEEK_CUR) = 567
read(4, "backup:x:34:34:backup:/var/backu"..., 256) = 256
lseek(4, -213, SEEK_CUR) = 610
read(4, "msql:x:36:36:Mini SQL Database M"..., 256) = 256
lseek(4, -195, SEEK_CUR) = 671
read(4, "operator:x:37:37:Operator:/var:/"..., 256) = 256
lseek(4, -217, SEEK_CUR) = 710
read(4, "list:x:38:38:SmartList:/var/list"..., 256) = 237
lseek(4, -196, SEEK_CUR) = 751
read(4, "irc:x:39:39:ircd:/var:/bin/sh\ngn"..., 256) = 196
lseek(4, -166, SEEK_CUR) = 781
read(4, "gnats:x:41:41:Gnats Bug-Reportin"..., 256) = 166
lseek(4, -85, SEEK_CUR) = 862
read(4, "nobody:x:65534:65534:nobody:/hom"..., 256) = 85
lseek(4, -43, SEEK_CUR) = 904
close(4) = 0
time(NULL) = 1036552389
brk(0x80d0000) = 0x80d0000
open("/etc/services", O_RDONLY) = 4
ioctl(4, SNDCTL_TMR_TIMEBASE, 0xbffffadc) = -1 ENOTTY (Inappropriate ioctl
for )
read(4, "# /etc/services:\n# $Id: services"..., 256) = 256
read(4, "o entries\n# even if the protocol"..., 256) = 256
read(4, "p\ndiscard\t\t9/tcp\t\tsink null\ndisc"..., 256) = 256
read(4, "rgen\t\t19/udp\t\tttytst source\nftp-"..., 256) = 256
close(4) = 0
dup(0) = 4
dup(1) = 5
socketpair(PF_UNIX, SOCK_STREAM, 0, [6, 7]) = 0
shutdown(6, 1 /* send */) = 0
shutdown(7, 0 /* receive */) = 0
fork() = 196
close(6) = 0
fcntl(7, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(7, F_SETFL, O_RDWR|O_NONBLOCK) = 0
fcntl(7, F_GETFD) = 0
fcntl(7, F_SETFD, FD_CLOEXEC) = 0
brk(0x80e0000) = 0x80e0000
fcntl(5, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0
fcntl(5, F_GETFD) = 0
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
brk(0x80f0000) = 0x80f0000
fcntl(4, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0
fcntl(4, F_GETFD) = 0
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE, {B19200 opost isig icanon echo ...}) = 0
ioctl(3, 0x5413, {ws_row=0, ws_col=0, ws_xpixel=0, ws_ypixel=0}) = 0
brk(0x80f1000) = 0x80f1000
brk(0x80f2000) = 0x80f2000
--- SIGILL (Illegal instruction) ---
+++ killed by SIGILL +++
On Tue, 5 Nov 2002 robert at digitalisles.com wrote:
> Hello all... Let me just say that I am by no means a "good" developer, but I
> can usually stumble through things.
>
> I have been able to compile uclibc itself and compile busybox and tinylogin
> against it with no problems.
>
> I am trying to do the same with lsh and I have the patch that is listed on the
> apps page and it compiles fine, it even runs on my host system, but on my
> target machine the only output I get from it is "Illegal Instruction" and I
> have no clue what this refers to. I even attempted to compile it statically in
> case it was a library issue of some sort, but still no go.
>
> Does anybody have any suggestions on how I should proceed? Or even better,
> does anybody have any documentation on how to compile OpenSSH vs. uClibc, I
> tried that before lsh and really had issues compiling OpenSSH itself.
>
> Thanks in advance for the replies and sorry for the lengthy message.
>
> -Robert
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://uclibc.org/mailman/listinfo/uclibc
>
>
More information about the uClibc
mailing list