[#7809] uninit bug in yaml/emitter.c — "Pat Eyler" <rubypate@...>
During our hacking night, we also looked at an UNINIT bug in yaml/emitter.c
[#7813] :!~ not a symbol — noreply@...
Bugs item #4344, was opened at 2006-05-03 17:41
[#7818] (security-related) patch to ALLOC macros to prevent integer overflow bugs — "Dominique Brezinski" <dominique.brezinski@...>
While fixing the integer overflow in rb_ary_fill(), it occurred to me
[#7833] segfault on Proc#call after setting a trace_func — Mauricio Fernandez <mfp@...>
$ cat bug2.rb
[#7843] Possible YAMl bug in 1.8.4 — Damphyr <damphyr@...>
OK, while parsing the td2 data from the ruby-lang website we stumbled on
Its probably a bug. I'm not familiar with the specifics, but Ruby
[#7858] Ruby threads working with native threads — "Francis Cianfrocca" <garbagecat10@...>
I recently wrote a network-event extension for Ruby ("eventmachine" in
[#7865] Strange interactions between Struct and 'pp' — noreply@...
Bugs item #4457, was opened at 2006-05-12 17:13
[#7872] Nonblocking socket-connect — "Francis Cianfrocca" <garbagecat10@...>
All, I needed a nonblocking socket connect for my asynchronous-event
In article <3a94cf510605140559l7baa0205le341dac4f47d424b@mail.gmail.com>,
How about introducing the method Socket#set_nonblocking, or alternatively
Hi,
Well, it's ok then. I'm comfortable adding in the nonblocking
Hi,
How about Socket#nbconnect and Socket#nbaccept?
On 5/15/06, Francis Cianfrocca <garbagecat10@gmail.com> wrote:
In article <1147709691.180288.28647.nullmailer@x31.priv.netlab.jp>,
[#7881] Segfault on x86_64 when built with -O0 in CFLAGS — noreply@...
Bugs item #4491, was opened at 2006-05-16 12:46
[#7882] reproducible bug in DRb on OSX — cremes.devlist@...
I've been tearing my hair out the last few days trying to track down
[#7909] SCRIPT_LINES__ issue when loading a file more than once — Mauricio Fernandez <mfp@...>
SCRIPT_LINES__ is an obscure feature very few people care about, but I happen
On Fri, May 19, 2006 at 06:46:05PM +0900, Mauricio Fernandez wrote:
Hi,
[#7923] Nonblocking accept — "Francis Cianfrocca" <garbagecat10@...>
Thanks to the Matz and colleagues for adding the *_nonblock functions. They
[#7928] set_trace_func: binding has wrong self value for return events — =?ISO-8859-15?Q?Florian_Gro=DF?= <florgro@...>
Moin.
Florian Growrote:
Re: [ ruby-Bugs-4457 ] Strange interactions between Struct and 'pp'
On May 12, 2006, at 8:13 AM, noreply@rubyforge.org wrote:
> Bugs item #4457, was opened at 2006-05-12 17:13
> You can respond by visiting:
> http://rubyforge.org/tracker/?
> func=detail&atid=1698&aid=4457&group_id=426
>
> Category: Standard Library
> Group: None
> Status: Open
> Resolution: None
> Priority: 3
> Submitted By: Gustav Munkby (grddev)
> Assigned to: Nobody (None)
> Summary: Strange interactions between Struct and 'pp'
>
> Initial Comment:
>
> A structure which defines an accessor named "members" cannot be
> used together with the standard library pp.
>
> The following program works as expected, and outputs the contents
> of the structure:
>
>> ruby -rpp -e 'pp Struct.new(:member).new'
> #<struct member=nil>
>
> If the accessor instead is named members, the above operation fails
> with an exception:
>
>> ruby -rpp -e 'pp Struct.new(:members).new'
> /usr/lib/ruby/1.8/pp.rb:181:in `__send__': undefined method `each'
> for nil:NilClass (NoMethodError)
>
> The reason is that the pp-library uses the members method of the
> created structure to enumerate the members. The problem is easy to
> fix by using the members method on the class instead. The
> documentation for Struct suggest that you should use members in the
> said way however, and it's not clear (to me) that Struct.new
> (:members) overrides this.
$ cvs diff lib/pp.rb
Index: lib/pp.rb
===================================================================
RCS file: /src/ruby/lib/pp.rb,v
retrieving revision 1.45
diff -u -r1.45 pp.rb
--- lib/pp.rb 30 Nov 2005 05:02:37 -0000 1.45
+++ lib/pp.rb 12 May 2006 18:42:35 -0000
@@ -344,7 +344,7 @@
class Struct
def pretty_print(q)
q.group(1, '#<struct ' + self.class.name, '>') {
- q.seplist(self.members, lambda { q.text "," }) {|member|
+ q.seplist(self.class.members, lambda { q.text "," }) {|member|
q.breakable
q.text member.to_s
q.text '='
--
Eric Hodel - drbrain@segment7.net - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant
http://trackmap.robotcoop.com