[MacRuby-devel] [MacRuby] #746: Net::HTTP assertion failed

MacRuby ruby-noreply at macosforge.org
Sat Jun 12 12:24:56 PDT 2010


#746: Net::HTTP assertion failed
-------------------------------------+--------------------------------------
 Reporter:  mattaimonetti@…          |       Owner:  lsansonetti@…        
     Type:  defect                   |      Status:  new                  
 Priority:  blocker                  |   Milestone:  MacRuby 0.7          
Component:  MacRuby                  |    Keywords:                       
-------------------------------------+--------------------------------------
 {{{
 require 'net/http'
 require 'uri'

 url_string = "http://www.macruby.org/"
 url = URI.parse(url_string)
 feed_uri =  url.query ? "#{url.path}?#{url.query}" : url.path
 req = Net::HTTP.start(url.host, url.port) {|http| http.get(feed_uri) }
 puts req.body
 }}}

 output:
 {{{
 Assertion failed: (IS_BSTR(str)), function rb_bstr_length, file string.c,
 line 5948.
 Abort trap
 }}}

 backtrace:
 {{{
 Application Specific Information:
 objc[89184]: garbage collection is ON
 Assertion failed: (IS_BSTR(str)), function rb_bstr_length, file string.c,
 line 5948.


 Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
 0   libSystem.B.dylib                   0x00007fff858d0886 __kill + 10
 1   libSystem.B.dylib                   0x00007fff85970eae abort + 83
 2   libSystem.B.dylib                   0x00007fff8595def0
 __pthread_markcancel + 0
 3   libmacruby.dylib                    0x00000001000cd871 rb_bstr_length
 + 97
 4   zlib.bundle                         0x00000001037183e9
 gzfile_read_more + 105
 5   zlib.bundle                         0x0000000103718588 gzfile_read_all
 + 40
 6   zlib.bundle                         0x000000010371ac78
 rb_gzreader_read + 152
 7   libmacruby.dylib                    0x0000000100149439 rb_vm_dispatch
 + 6841
 8   http.rbo                            0x000000010170787b vm_dispatch +
 491
 9   http.rbo                            0x000000010171aec1
 MREP_C93CBD3F4CFA4D1494649C026569930E_ruby_scope63 + 1585
 10  libmacruby.dylib                    0x000000010014bf47
 rb_vm_yield_args + 1879
 11  http.rbo                            0x000000010171dc4d
 MREP_C93CBD3F4CFA4D1494649C026569930E_ruby_scope86 + 93
 12  libmacruby.dylib                    0x000000010014bf63
 rb_vm_yield_args + 1907
 13  http.rbo                            0x000000010172bc05
 MREP_C93CBD3F4CFA4D1494649C026569930E_ruby_scope252 + 181
 14  libmacruby.dylib                    0x0000000100149355 rb_vm_dispatch
 + 6613
 15  http.rbo                            0x000000010170787b vm_dispatch +
 491
 16  http.rbo                            0x000000010171d930
 MREP_C93CBD3F4CFA4D1494649C026569930E_ruby_scope85 + 1344
 17  libmacruby.dylib                    0x000000010014937b rb_vm_dispatch
 + 6651
 18  http.rbo                            0x000000010170787b vm_dispatch +
 491
 19  http.rbo                            0x000000010171d087
 MREP_C93CBD3F4CFA4D1494649C026569930E_ruby_scope83 + 1031
 20  libmacruby.dylib                    0x0000000100149355 rb_vm_dispatch
 + 6613
 21  http.rbo                            0x000000010170787b vm_dispatch +
 491
 22  http.rbo                            0x000000010171a2bb
 MREP_C93CBD3F4CFA4D1494649C026569930E_ruby_scope61 + 939
 23  libmacruby.dylib                    0x000000010014932c rb_vm_dispatch
 + 6572
 24  ???                                 0x0000000100e7fb4d 0 + 4310170445
 25  ???                                 0x0000000100e9864f 0 + 4310271567
 26  libmacruby.dylib                    0x000000010014bf47
 rb_vm_yield_args + 1879
 27  http.rbo                            0x0000000101717ab8
 MREP_C93CBD3F4CFA4D1494649C026569930E_ruby_scope37 + 456
 28  libmacruby.dylib                    0x0000000100149396 rb_vm_dispatch
 + 6678
 29  http.rbo                            0x000000010170787b vm_dispatch +
 491
 30  http.rbo                            0x0000000101715fbf
 MREP_C93CBD3F4CFA4D1494649C026569930E_ruby_scope23 + 2239
 31  libmacruby.dylib                    0x0000000100149355 rb_vm_dispatch
 + 6613
 32  ???                                 0x0000000100e7fb4d 0 + 4310170445
 33  ???                                 0x0000000100e7f411 0 + 4310168593
 34  libmacruby.dylib                    0x0000000100156618 rb_vm_run + 488
 35  libmacruby.dylib                    0x0000000100049e90 ruby_run_node +
 80
 36  macruby                             0x0000000100000d28 main + 152
 37  macruby                             0x0000000100000c88 start + 52

 Thread 1:  Dispatch queue: com.apple.libdispatch-manager
 0   libSystem.B.dylib                   0x00007fff8589b4ea kevent + 10
 1   libSystem.B.dylib                   0x00007fff8589d3bd
 _dispatch_mgr_invoke + 154
 2   libSystem.B.dylib                   0x00007fff8589d094
 _dispatch_queue_invoke + 185
 3   libSystem.B.dylib                   0x00007fff8589cbbe
 _dispatch_worker_thread2 + 252
 4   libSystem.B.dylib                   0x00007fff8589c4e8
 _pthread_wqthread + 353
 5   libSystem.B.dylib                   0x00007fff8589c385 start_wqthread
 + 13

 Thread 2:
 0   libSystem.B.dylib                   0x00007fff8589c30a
 __workq_kernreturn + 10
 1   libSystem.B.dylib                   0x00007fff8589c71c
 _pthread_wqthread + 917
 2   libSystem.B.dylib                   0x00007fff8589c385 start_wqthread
 + 13
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/746>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list