[#32009] merging nokogiri to ext/ — Aaron Patterson <aaron@...>

I would like to merge nokogiri to ext for the 1.9.3 release. I spoke to

82 messages 2010/09/02
[#32010] Re: merging nokogiri to ext/ — "U.Nakamura" <usa@...> 2010/09/02

Hello,

[#32012] Re: merging nokogiri to ext/ — Ryan Davis <ryand-ruby@...> 2010/09/02

[#32030] Re: merging nokogiri to ext/ — "NARUSE, Yui" <naruse@...> 2010/09/03

Hi,

[#32033] Re: merging nokogiri to ext/ — "NARUSE, Yui" <naruse@...> 2010/09/03

2010/9/3 NARUSE, Yui <naruse@airemix.jp>:

[#32155] Re: merging nokogiri to ext/ — Yusuke ENDOH <mame@...> 2010/09/08

Currently, we're discussing three different topics:

[#32189] Re: merging nokogiri to ext/ — Aaron Patterson <aaron@...> 2010/09/09

On Thu, Sep 09, 2010 at 01:40:34AM +0900, Yusuke ENDOH wrote:

[#32056] [Ruby 1.8-Bug#3788][Open] URI cannot parse IPv6 addresses propertly — Adam Majer <redmine@...>

Bug #3788: URI cannot parse IPv6 addresses propertly

16 messages 2010/09/04

[#32110] Ruby 2.0 Wiki/Wish-list? — Joshua Ballanco <jballanc@...>

Hi all,

41 messages 2010/09/07
[#32114] Re: Ruby 2.0 Wiki/Wish-list? — "NARUSE, Yui" <naruse@...> 2010/09/08

2010/9/8 Joshua Ballanco <jballanc@gmail.com>:

[#32117] Re: Ruby 2.0 Wiki/Wish-list? — Joshua Ballanco <jballanc@...> 2010/09/08

On Sep 7, 2010, at 5:21 PM, NARUSE, Yui wrote:

[#32143] Re: Ruby 2.0 Wiki/Wish-list? — Roger Pack <rogerdpack2@...> 2010/09/08

> So, for example, a few things I've wanted for a long time:

[#32135] [Ruby-Bug#3802][Open] freeaddrinfo not found in WS2_32.dll — Thomas Volkmar Worm <redmine@...>

Bug #3802: freeaddrinfo not found in WS2_32.dll

16 messages 2010/09/08

[#32154] Making custom_lambda() work — Magnus Holm <judofyr@...>

A tiny suggestion for how we could make it possible to call lambdas

15 messages 2010/09/08
[#32159] Re: Making custom_lambda() work — Nikolai Weibull <now@...> 2010/09/08

On Wed, Sep 8, 2010 at 18:21, Magnus Holm <judofyr@gmail.com> wrote:

[#32156] Can we convert the standard library to gems? — James Edward Gray II <james@...>

Taken from the bundle Nokogiri thread:

98 messages 2010/09/08
[#32161] Re: Can we convert the standard library to gems? — Marcus Rueckert <darix@...> 2010/09/08

On 2010-09-09 01:45:43 +0900, James Edward Gray II wrote:

[#32166] Re: Can we convert the standard library to gems? — James Edward Gray II <james@...> 2010/09/08

On Sep 8, 2010, at 12:03 PM, Marcus Rueckert wrote:

[#32173] Re: Can we convert the standard library to gems? — Marcus Rueckert <darix@...> 2010/09/08

On 2010-09-09 02:54:26 +0900, James Edward Gray II wrote:

[#32249] Re: Can we convert the standard library to gems? — Aaron Patterson <aaron@...> 2010/09/09

On Thu, Sep 09, 2010 at 05:26:54AM +0900, Marcus Rueckert wrote:

[#32278] Re: Can we convert the standard library to gems? — Lucas Nussbaum <lucas@...> 2010/09/10

On 10/09/10 at 02:41 +0900, Aaron Patterson wrote:

[#32162] Re: Can we convert the standard library to gems? — Yusuke ENDOH <mame@...> 2010/09/08

Hi,

[#32216] Re: Can we convert the standard library to gems? — Ryan Davis <ryand-ruby@...> 2010/09/09

[#32229] Re: Can we convert the standard library to gems? — Yusuke ENDOH <mame@...> 2010/09/09

Hi,

[#32260] Re: Can we convert the standard library to gems? — Ryan Davis <ryand-ruby@...> 2010/09/09

[#32275] Re: Can we convert the standard library to gems? — Urabe Shyouhei <shyouhei@...> 2010/09/10

I'm off today so sorry if I missed some mails.

[#32293] Re: Can we convert the standard library to gems? — James Cox <james@...> 2010/09/10

Urabe,

[#32316] Re: Can we convert the standard library to gems? — Urabe Shyouhei <shyouhei@...> 2010/09/11

(2010/09/10 23:48), James Cox wrote:

[#32322] Re: Can we convert the standard library to gems? — James Tucker <jftucker@...> 2010/09/11

[#32335] Re: Can we convert the standard library to gems? — Urabe Shyouhei <shyouhei@...> 2010/09/12

I'm at an airport back to my home so in short,

[#32343] Re: Can we convert the standard library to gems? — James Cox <james@...> 2010/09/12

On Sun, Sep 12, 2010 at 6:51 AM, Urabe Shyouhei <shyouhei@ruby-lang.org> wrote:

[#32382] Re: Can we convert the standard library to gems? — Urabe Shyouhei <shyouhei@...> 2010/09/14

(2010/09/13 3:54), James Cox wrote:

[#32383] Re: Can we convert the standard library to gems? — James Cox <james@...> 2010/09/14

On Tue, Sep 14, 2010 at 12:37 PM, Urabe Shyouhei <shyouhei@ruby-lang.org> wrote:

[#32393] Re: Can we convert the standard library to gems? — Urabe Shyouhei <shyouhei@...> 2010/09/15

How difficult to make myself understood in English.

[#32396] Re: Can we convert the standard library to gems? — James Cox <james@...> 2010/09/15

On Wed, Sep 15, 2010 at 1:43 AM, Urabe Shyouhei <shyouhei@ruby-lang.org> wrote:

[#32399] Re: Can we convert the standard library to gems? — Yusuke ENDOH <mame@...> 2010/09/15

Hi,

[#32400] Re: Can we convert the standard library to gems? — James Cox <james@...> 2010/09/15

On Wed, Sep 15, 2010 at 12:07 PM, Yusuke ENDOH <mame@tsg.ne.jp> wrote:

[#32401] Re: Can we convert the standard library to gems? — Marcus Rueckert <darix@...> 2010/09/15

On 2010-09-16 01:42:39 +0900, James Cox wrote:

[#32402] Re: Can we convert the standard library to gems? — James Cox <james@...> 2010/09/15

On Wed, Sep 15, 2010 at 1:35 PM, Marcus Rueckert <darix@opensu.se> wrote:

[#32411] Re: Can we convert the standard library to gems? — Marcus Rueckert <darix@...> 2010/09/15

On 2010-09-16 03:36:56 +0900, James Cox wrote:

[#32412] Re: Can we convert the standard library to gems? — James Cox <james@...> 2010/09/16

On Wednesday, September 15, 2010, Marcus Rueckert <darix@opensu.se> wrote:

[#32414] Re: Can we convert the standard library to gems? — Lucas Nussbaum <lucas@...> 2010/09/16

On 16/09/10 at 11:02 +0900, James Cox wrote:

[#32248] Replacing stdlib Date with C version — Jeremy Evans <code@...>

I've recently been working on a replacement for the stdlib Date class,

15 messages 2010/09/09

[#32290] [Ruby 1.9.2-Backport#3818][Open] Seg fault with ruby tmail and ruby 1.9.2 — Karl Baum <redmine@...>

Backport #3818: Seg fault with ruby tmail and ruby 1.9.2

10 messages 2010/09/10

[#32453] Why doesn’t Enumerable define a #last method? — Nikolai Weibull <now@...>

Hi!

9 messages 2010/09/17

[#32454] [Ruby 1.9-Feature#3845][Open] "in" infix operator — Yusuke Endoh <redmine@...>

Feature #3845: "in" infix operator

20 messages 2010/09/17
[#32489] Re: [Ruby 1.9-Feature#3845][Open] "in" infix operator — Benoit Daloze <eregontp@...> 2010/09/21

On 17 September 2010 12:30, Yusuke Endoh <redmine@ruby-lang.org> wrote:

[#32529] [Ruby 1.9-Bug#3869][Open] Logger#log does not handle or escape new-line characters. — Hal Brodigan <redmine@...>

Bug #3869: Logger#log does not handle or escape new-line characters.

9 messages 2010/09/23

[#32585] Proposal for Optional Static Typing for Ruby — Martin Pilkington <pilky@...>

Hi,

47 messages 2010/09/27
[#32588] Re: Proposal for Optional Static Typing for Ruby — Yukihiro Matsumoto <matz@...> 2010/09/27

Hi,

[#32592] Re: Proposal for Optional Static Typing for Ruby — Martin Pilkington <pilky@...> 2010/09/28

Hi Matz

[#32595] Re: Proposal for Optional Static Typing for Ruby — Asher <asher@...> 2010/09/28

Martin,

[#32611] Re: Proposal for Optional Static Typing for Ruby — Loren Segal <lsegal@...> 2010/09/28

Hi,

[#32628] Re: Proposal for Optional Static Typing for Ruby — Eleanor McHugh <eleanor@...> 2010/09/29

It strikes me that much of the premise behind this thread is misguided as it overlooks the importance of meta-programming in developing any Ruby program of substantive size. Where a Java or C++ programmer might write a factory method to create instances of a class and spend much of their effort enumerating types explicitly, it's not unusual in Ruby to write meta-programs which create a variety of class and method definitions on request to create or repurpose object instances for the task at hand.

[#32634] [Ruby 1.9-Bug#3889][Open] Incorrectly detected i686-w64-mingw32 as x64-mingw — Luis Lavena <redmine@...>

Bug #3889: Incorrectly detected i686-w64-mingw32 as x64-mingw

21 messages 2010/09/29

[ruby-core:32589] [Ruby 1.9-Bug#3880][Open] Ruby 1.9.1 - crash in timeout.rb

From: Elvita Lobo <redmine@...>
Date: 2010-09-27 19:38:53 UTC
List: ruby-core #32589
Bug #3880: Ruby 1.9.1 - crash in timeout.rb
http://redmine.ruby-lang.org/issues/show/3880

Author: Elvita Lobo
Status: Open, Priority: High
Category: core, Target version: 1.9.1
ruby -v: ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]

I am using the serialport 1.0.4 Ruby gem. In my serial port connection code, I have the following piece of code [1] that causes Ruby to crash from time to time.

[1] In serial_equipment_connection.rb
  23     status = Timeout::timeout(timeout) {
  24         while (!listener.match) 
  25             sleep 0.5
  26         end
  27     }

ruby 窶砺
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]

I am running on a Windows XP SP 3 machine. 

I have attached the two related files - serial_equipment_connection.rb, equipment_connection.rb, and the crash log. 

[2] Crash log (file attached)

MXP>(eval):2: [BUG] The handle is invalid.

ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]

-- control frame ----------
c:0044 p:0054 s:0226 b:0226 l:000225 d:000225 METHOD c:/Ruby191/lib/ruby/1.9.1/monitor.rb:178
c:0043 p:---- s:0232 b:0232 l:000231 d:000231 CFUNC  :to_i
c:0042 p:---- s:0235 b:0235 l:000234 d:000234 CFUNC  :instance_variable_set
c:0041 p:0098 s:0230 b:0230 l:000229 d:000229 METHOD c:/Ruby191/lib/ruby/gems/1.9.1/gems/activesuppo
rt-2.3.8/lib/active_support/core_ext/class/inheritable_attributes.rb:135
c:0040 p:---- s:0226 b:0226 l:000225 d:000225 CFUNC  :index
c:0039 p:---- s:0223 b:0223 l:000222 d:000222 CFUNC  :sleep
c:0038 p:0019 s:0219 b:0219 l:001a24 d:000218 BLOCK  C:/VATF_source/target/serial_equipment_connecti
on.rb:25
c:0037 p:0109 s:0217 b:0217 l:002698 d:002698 METHOD c:/Ruby191/lib/ruby/1.9.1/timeout.rb:52
c:0036 p:0153 s:0205 b:0205 l:001a24 d:001a24 METHOD C:/VATF_source/target/serial_equipment_connecti
on.rb:23
c:0035 p:0014 s:0194 b:0194 l:000193 d:000193 METHOD C:/VATF_source/target/equipment_connection.rb:5
4


----------------------------------------
http://redmine.ruby-lang.org

Attachments (3)

crashLog.txt (4.2 KB, text/plain)
MXP>(eval):2: [BUG] The handle is invalid.

ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]

-- control frame ----------
c:0044 p:0054 s:0226 b:0226 l:000225 d:000225 METHOD c:/Ruby191/lib/ruby/1.9.1/monitor.rb:178
c:0043 p:---- s:0232 b:0232 l:000231 d:000231 CFUNC  :to_i
c:0042 p:---- s:0235 b:0235 l:000234 d:000234 CFUNC  :instance_variable_set
c:0041 p:0098 s:0230 b:0230 l:000229 d:000229 METHOD c:/Ruby191/lib/ruby/gems/1.9.1/gems/activesuppo
rt-2.3.8/lib/active_support/core_ext/class/inheritable_attributes.rb:135
c:0040 p:---- s:0226 b:0226 l:000225 d:000225 CFUNC  :index
c:0039 p:---- s:0223 b:0223 l:000222 d:000222 CFUNC  :sleep
c:0038 p:0019 s:0219 b:0219 l:001a24 d:000218 BLOCK  C:/VATF_source/target/serial_equipment_connecti
on.rb:25
c:0037 p:0109 s:0217 b:0217 l:002698 d:002698 METHOD c:/Ruby191/lib/ruby/1.9.1/timeout.rb:52
c:0036 p:0153 s:0205 b:0205 l:001a24 d:001a24 METHOD C:/VATF_source/target/serial_equipment_connecti
on.rb:23
c:0035 p:0014 s:0194 b:0194 l:000193 d:000193 METHOD C:/VATF_source/target/equipment_connection.rb:5
4
c:0034 p:0047 s:0190 b:0190 l:000189 d:000189 METHOD C:/VATF_source/target/equipment_driver.rb:41
c:0033 p:0045 s:0182 b:0182 l:000181 d:000181 METHOD c:/Ruby191/lib/ruby/1.9.1/delegate.rb:137
c:0032 p:---- s:0175 b:0175 l:000174 d:000174 FINISH
c:0031 p:0079 s:0173 b:0173 l:000141 d:000172 BLOCK  C:\vatf@vgdk_engg_arago-project_org_git_project
s_test-automation_execution-engines_vatf-scripts_git_\VGDK\transcoding\transcodi
c:0030 p:---- s:0169 b:0169 l:000168 d:000168 FINISH
c:0029 p:---- s:0167 b:0167 l:000166 d:000166 CFUNC  :each_pair
c:0028 p:0254 s:0164 b:0164 l:000141 d:000163 BLOCK  C:\vatf@vgdk_engg_arago-project_org_git_project
s_test-automation_execution-engines_vatf-scripts_git_\VGDK\transcoding\transcodi
c:0027 p:---- s:0156 b:0156 l:000155 d:000155 FINISH
c:0026 p:---- s:0154 b:0154 l:000153 d:000153 CFUNC  :each
c:0025 p:0011 s:0151 b:0151 l:000141 d:000150 BLOCK  C:\vatf@vgdk_engg_arago-project_org_git_project
s_test-automation_execution-engines_vatf-scripts_git_\VGDK\transcoding\transcodi
c:0024 p:---- s:0147 b:0147 l:000146 d:000146 FINISH
c:0023 p:---- s:0145 b:0145 l:000144 d:000144 CFUNC  :each_pair
c:0022 p:0916 s:0142 b:0142 l:000141 d:000141 METHOD C:\vatf@vgdk_engg_arago-project_org_git_project
s_test-automation_execution-engines_vatf-scripts_git_\VGDK\transcoding\transcodi
c:0021 p:0897 s:0097 b:0097 l:0015ac d:0015ac METHOD C:/VATF_source/atf_session_runner.rb:420
c:0020 p:0130 s:0078 b:0078 l:000068 d:000077 BLOCK  C:/VATF_source/atf_session_runner.rb:293
c:0019 p:---- s:0075 b:0075 l:000074 d:000074 FINISH
c:0018 p:---- s:0073 b:0073 l:000072 d:000072 CFUNC  :upto
c:0017 p:0232 s:0069 b:0069 l:000068 d:000068 METHOD C:/VATF_source/atf_session_runner.rb:288
c:0016 p:0023 s:0062 b:0062 l:000023 d:000061 BLOCK  atf_run.rb:50
c:0015 p:---- s:0059 b:0059 l:000058 d:000058 FINISH
c:0014 p:---- s:0057 b:0057 l:000056 d:000056 CFUNC  :each
c:0013 p:0031 s:0054 b:0054 l:000023 d:000053 BLOCK  atf_run.rb:49
c:0012 p:---- s:0051 b:0051 l:000050 d:000050 FINISH
c:0011 p:---- s:0049 b:0049 l:000048 d:000048 CFUNC  :each
c:0010 p:0017 s:0046 b:0046 l:000023 d:000045 BLOCK  atf_run.rb:47
c:0009 p:---- s:0043 b:0043 l:000042 d:000042 FINISH
c:0008 p:---- s:0041 b:0041 l:000040 d:000040 CFUNC  :upto
c:0007 p:0229 s:0037 b:0037 l:000023 d:000036 BLOCK  atf_run.rb:46
c:0006 p:---- s:0029 b:0029 l:000028 d:000028 FINISH
c:0005 p:---- s:0027 b:0027 l:000026 d:000026 CFUNC  :each
c:0004 p:0450 s:0024 b:0024 l:000023 d:000023 METHOD atf_run.rb:41
c:0003 p:0084 s:0006 b:0006 l:000204 d:00177c EVAL   atf_run.rb:107
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000204 d:000204 TOP
---------------------------
-- Ruby level backtrace information-----------------------------------------
c:/Ruby191/lib/ruby/1.9.1/timeout.rb:49:in `sleep'
c:/Ruby191/lib/ruby/1.9.1/timeout.rb:49:in `block in timeout'

[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html


This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
serial_equipment_connection.rb (1.24 KB, text/x-ruby)
require 'rubygems'
require 'timeout'
require File.dirname(__FILE__)+'/base_listener'

class SerialEquipmentConnection < SerialBaseListenerClient
  
  def initialize(platform_info)
    super(platform_info)
    rescue Exception => e
      raise
  end

  def send_cmd(*params)
    command        = params[0]
    expected_match = params[1] ? params[1] : Regexp.new('.*')
    timeout        = params[2] ? params[2] : 30
    check_cmd_echo = params[3] ? params[3] : true
	
    @is_timeout = false
    listener = BaseListener.new(command, expected_match, check_cmd_echo)
    add_listener(listener)
    super(command)
    status = Timeout::timeout(timeout) {
        while (!listener.match) 
            sleep 0.5
        end
    }
    rescue Timeout::Error => e
      log_error("On command: "+command.to_s+" waiting for "+expected_match.to_s+" >>> error: "+e.to_s) if respond_to?(:log_error)
      @is_timeout = true
    rescue Exception => e
       Kernel.print e.to_s+"\n"+e.backtrace.to_s
       raise
    ensure
      @response = listener.response
      remove_listener(listener)
  end
  
  def response
    @response.to_s
  end
  
  def timeout?
    @is_timeout
  end
  
  def update_response
    @session_data
  end
end
equipment_connection.rb (1.79 KB, text/x-ruby)
require 'rubygems'
require File.dirname(__FILE__)+'/telnet_equipment_connection'
require File.dirname(__FILE__)+'/serial_equipment_connection'

class EquipmentConnection
  attr_reader :default, :telnet, :serial

  def initialize(platform_info)
    @platform_info = platform_info
    @default = nil
    @telnet = nil
    @serial = nil
  end

  def connect(params)
    case params['type'].to_s.downcase.strip
    when 'telnet'
      @telnet = TelnetEquipmentConnection.new(@platform_info) 
      if @platform_info.driver_class_name.to_s.downcase.include?("wince")
        @telnet.connect
        @telnet.waitfor({'Match' => />/, 'Timeout'=> 10})
        sleep 1
      else
        @telnet.connect
      end
	  @telnet.start_listening
      @default = @telnet
    
    when 'serial'
      if @platform_info.serial_port.to_s.strip != ''
        @serial = SerialEquipmentConnection.new(@platform_info) 
      else
        @serial = SerialServerConnection.new(@platform_info)
      end
	  @serial.start_listening
      @default = @serial if !@default
    else
      raise "Unknown connection type: #{params['type'].to_s}"
    end
  end

  def disconnect
    @telnet.disconnect if @telnet
    @serial.disconnect if @serial
  end

  def send_cmd(*params)
    # command        = params[0]
    # expected_match = params[1] #? params[1] : Regexp.new('.*')
    # timeout        = params[2] #? params[2] : 30
	# check_cmd_echo = params[3] #? params[3] : true
    # puts "equipment_connection: #{command}, #{expected_match}, #{timeout}, #{check_cmd_echo}" # TODO REMOVE DEBUG PRINT
    
	@default.send_cmd(*params)
	end
  
  def response
    @default.response
  end
  
  def timeout?
    @default.timeout?
  end
  
  def update_response
    @default.update_response
  end
  
end


In This Thread

Prev Next