[#7708] Bug in libsnmp-ruby1.8 — Hadmut Danisch <hadmut@...>

Hi,

8 messages 2006/04/11
[#7709] Re: Bug in libsnmp-ruby1.8 — Eric Hodel <drbrain@...7.net> 2006/04/11

On Apr 11, 2006, at 6:23 AM, Hadmut Danisch wrote:

[#7770] Re: possible defect in array.c — "Brown, Warren" <warrenbrown@...>

> rb_range_beg_len (in range.c) does set beg and len.

13 messages 2006/04/26
[#7771] Re: possible defect in array.c — "Pat Eyler" <rubypate@...> 2006/04/26

On 4/26/06, Brown, Warren <warrenbrown@aquire.com> wrote:

Re: readpartial not working on ARM

From: Joel VanderWerf <vjoel@...>
Date: 2006-04-17 23:27:56 UTC
List: ruby-core #7728
Joel VanderWerf wrote:
> Hi. IO#readpartial seems to be broken on ARM (Intel XScale, gumstix),
> and this is causing telnet to hang. The problem is that readpartial(n)
> hangs until all n bytes are received. I've tested this with TCPSockets.
> 
> Any suggestions for me to try next? What might be misconfigured?
> 
> Gumstix use uClibc (http://www.busybox.net/) rather than GNU libc.
> 
> This is with ruby-1.8.4.

Forgot to add uname:
# uname -a
Linux gumstix 2.6.15gum #1 Fri Apr 7 17:48:42 PDT 2006 armv5tel unknown

Anyway, another data point is that timeout is not working:

require 'socket'
require 'timeout'

s = TCPSocket.open("192.168.1.#{ARGV[0]}", 23)
begin
  Timeout.timeout(1) do
    p s.gets
    p s.gets
  end
rescue TimeoutError
  puts "timed out"
end


Normal output when run on a linux desktop and ARGV specifies the addr of
the telnet server:

"\377\373\001\r\n"
timed out

On the ARM platform, it hangs after printing the first line.

-- 
      vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

In This Thread