[Toybox] toybox host command

J Martin taea2015 at outlook.com
Thu Dec 20 15:11:30 PST 2018


Hello,
I was wondering if the host command is functional? I have had no success in getting it to run on Windows 10 under Mobaxterm 11.

It just returns with no output.

/etc/resolv.conf is valid and has correct info.
Thanks for any input!
Jeff

this is from strace:
<snip>
   49  132541 [main] toybox 12836 fcntl64: 0 = fcntl(3, 2, 0x1)
   67  132608 [main] toybox 12836 fhandler_socket::bind: 0 = setsockopt(SO_EXCLUSIVEADDRUSE), Win32 error 0
  143  132751 [main] toybox 12836 cygwin_bind: 0 = bind(3, 0x64BF4C, 16)
   52  132803 [main] toybox 12836 getpid: 12836 = getpid()
   72  132875 [main] toybox 12836 __set_errno: void __set_winsock_errno(const char*, int):224 setting errno 11
   51  132926 [main] toybox 12836 __set_winsock_errno: recv_internal:1613 - winsock error 10035 -> errno 11
   52  132978 [main] toybox 12836 cygwin_recvfrom: -1 = recvfrom(3, 0x64C6C0, 512, 0x0, 0x0, 0x0), errno 11
  294  133272 [main] toybox 12836 cygwin_sendto: 27 = sendto(3, 0x64C5A8, 27, 0x0, 0x612A4F00, 16)
   55  133327 [main] toybox 12836 pselect: pselect (4, 0x64BF3C, 0x0, 0x0, 0x64BED8, 0x0)
   51  133378 [main] toybox 12836 pselect: to->tv_sec 5, to->tv_nsec 0, us 5000000
   92  133470 [main] toybox 12836 dtable::select_read:  fd 3
   45  133515 [main] toybox 12836 select: sel.always_ready 0
  172  133687 [main] toybox 12836 start_thread_socket: stuff_start 0x64BCC4
--- Process 12836 thread 9800 created
--- Process 12836, exception 406d1388 at 76A34172
 2102  135789 [socksel] toybox 12836 cygthread::stub: thread 'socksel', id 0x2648, stack_ptr 0x4FFCD60
   56  135845 [socksel] toybox 12836 thread_socket: stuff_start 0x64BCC4, timeout 4294967295
   56  135901 [main] toybox 12836 select_stuff::wait: m 4, us 5000000, wmfo_timeout -1
   93  135994 [socksel] toybox 12836 peek_socket: read_ready: 1, write_ready: 0, except_ready: 0
   51  136045 [socksel] toybox 12836 thread_socket: leaving thread_socket
   99  136144 [main] toybox 12836 select_stuff::wait: wait_ret 2, m = 4.  verifying
   52  136196 [main] toybox 12836 select_stuff::wait: res after verify 0
   89  136285 [main] toybox 12836 select_stuff::wait: returning 0
   45  136330 [main] toybox 12836 select: sel.wait returns 0
   54  136384 [main] toybox 12836 peek_socket: read_ready: 1, write_ready: 0, except_ready: 0
   53  136437 [main] toybox 12836 set_bits: me 0x20061AE0, testing fd 3 ()
   52  136489 [main] toybox 12836 set_bits: ready 1
   88  136577 [main] toybox 12836 select_stuff::cleanup: calling cleanup routines
   44  136621 [main] toybox 12836 socket_cleanup: si 0x20061B10 si->thread 0x611CE950
  181  136802 [main] toybox 12836 socket_cleanup: returning
   48  136850 [main] toybox 12836 select_stuff::destroy: deleting select records
   90  136940 [main] toybox 12836 select_stuff::cleanup: calling cleanup routines
   46  136986 [main] toybox 12836 select_stuff::destroy: deleting select records
   47  137033 [main] toybox 12836 pselect: 1 = select (4, 0x64BF3C, 0x0, 0x0, 0x64BED8)
  111  137144 [main] toybox 12836 cygwin_recvfrom: 27 = recvfrom(3, 0x64C6C0, 512, 0x0, 0x64BF5C, 0x64BF38)
  401  137545 [main] toybox 12836 fhandler_pty_slave::write: pty0, write(0x432E3C, 4)
   49  137594 [main] toybox 12836 fhandler_pty_common::process_opost_output: (1902): pty output_mutex (0x1CC): waiting -1 ms
   51  137645 [main] toybox 12836 fhandler_pty_common::process_opost_output: (1902): pty output_mutex: acquired
   53  137698 [main] toybox 12836 fhandler_pty_common::process_opost_output: (1941): pty output_mutex(0x1CC) released
host   55  137753 [main] toybox 12836 write: 4 = write(2, 0x432E3C, 4)
  111  137864 [main] toybox 12836 fhandler_pty_slave::write: pty0, write(0x43260F, 2)
   74  137938 [main] toybox 12836 fhandler_pty_common::process_opost_output: (1902): pty output_mutex (0x1CC): waiting -1 ms
   46  137984 [main] toybox 12836 fhandler_pty_common::process_opost_output: (1902): pty output_mutex: acquired
   69  138053 [main] toybox 12836 fhandler_pty_common::process_opost_output: (1941): pty output_mutex(0x1CC) released
:    49  138102 [main] toybox 12836 write: 2 = write(2, 0x43260F, 2)
  218  138320 [main] toybox 12836 fhandler_pty_slave::write: pty0, write(0x4342DE, 15)
   42  138362 [main] toybox 12836 fhandler_pty_common::process_opost_output: (1902): pty output_mutex (0x1CC): waiting -1 ms
   49  138411 [main] toybox 12836 fhandler_pty_common::process_opost_output: (1902): pty output_mutex: acquired
   52  138463 [main] toybox 12836 fhandler_pty_common::process_opost_output: (1941): pty output_mutex(0x1CC) released
Host not found.   45  138508 [main] toybox 12836 write: 15 = write(2, 0x4342DE, 15)
  307  138815 [main] toybox 12836 fhandler_pty_slave::write: pty0, write(0x611CBDF7, 1)
   45  138860 [main] toybox 12836 fhandler_pty_common::process_opost_output: (1902): pty output_mutex (0x1CC): waiting -1 ms
   48  138908 [main] toybox 12836 fhandler_pty_common::process_opost_output: (1902): pty output_mutex: acquired
   54  138962 [main] toybox 12836 fhandler_pty_common::process_opost_output: (1941): pty output_mutex(0x1CC) released

   47  139009 [main] toybox 12836 write: 1 = write(2, 0x611CBDF7, 1)
 1041  140050 [main] toybox 12836 do_exit: do_exit (256), exit_state 1
   46  140096 [main] toybox 12836 void: 0x0 = signal (20, 0x1)
   51  140147 [main] toybox 12836 void: 0x0 = signal (1, 0x1)
   47  140194 [main] toybox 12836 void: 0x0 = signal (2, 0x1)
   46  140240 [main] toybox 12836 void: 0x0 = signal (3, 0x1)
   49  140289 [main] toybox 12836 fhandler_base::close_with_arch: line 1129:  /dev/pty0<0x612F59C0> usecount + -1 = 3
   44  140333 [main] toybox 12836 fhandler_base::close_with_arch: not closing archetype
   46  140379 [main] toybox 12836 fhandler_base::close_with_arch: line 1129:  /dev/pty0<0x612F59C0> usecount + -1 = 2
   49  140428 [main] toybox 12836 fhandler_base::close_with_arch: not closing archetype
   55  140483 [main] toybox 12836 fhandler_base::close_with_arch: line 1129:  /dev/pty0<0x612F59C0> usecount + -1 = 1
   48  140531 [main] toybox 12836 fhandler_base::close_with_arch: not closing archetype
  115  140646 [main] toybox 12836 fhandler_socket::close: 0 = fhandler_socket::close()
   49  140695 [main] toybox 12836 init_cygheap::close_ctty: closing cygheap->ctty 0x612F59C0
   47  140742 [main] toybox 12836 fhandler_base::close_with_arch: closing passed in archetype 0x0, usecount 0
   49  140791 [main] toybox 12836 fhandler_pty_slave::cleanup: /dev/pty0 closed, usecount 0
   47  140838 [main] toybox 12836 fhandler_pty_slave::close: closing last open /dev/pty0 handle
   77  140915 [main] toybox 12836 fhandler_console::free_console: freed console, res 1
   52  140967 [main] toybox 12836 fhandler_pty_common::close: pty0 <0x224,0x22C> closing
   54  141021 [main] toybox 12836 dtable::delete_archetype: deleting element 0 for /dev/pty0(136/0)
   54  141075 [main] toybox 12836 getpid: 12836 = getpid()
   46  141121 [main] toybox 12836 proc_terminate: nprocs 0
   49  141170 [main] toybox 12836 proc_terminate: leaving
   66  141236 [main] toybox 12836 pinfo::exit: Calling ExitProcess n 0x100, exitcode 0x1
--- Process 12836 thread 9800 exited with status 0x1
--- Process 12836 thread 9992 exited with status 0x1
--- Process 12836 thread 9420 exited with status 0x1
--- Process 12836 thread 13504 exited with status 0x1
--- Process 12836 exited with status 0x1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20181220/a46f8e9d/attachment.htm>


More information about the Toybox mailing list