[#6143] — Christophe Poucet <christophe.poucet@...>

Hello,

17 messages 2005/10/04
[#6147] Re: patch.tgz — nobu.nokada@... 2005/10/04

Hi,

[#6199] Kernel rdoc HTML file not being created when rdoc is run on 1.8.3 — James Britt <ruby@...>

When 1.8.3 came out, I grabbed the source and ran rdoc on it. After

9 messages 2005/10/08

[#6251] RubyGems, upstream releases and idempotence of packaging — Mauricio Fern疣dez <mfp@...>

[sorry for the very late reply; I left this message in +postponed and forgot

14 messages 2005/10/12

[#6282] Wilderness: Need Code to invoke ELTS_SHARED response — "Charles E. Thornton" <ruby-core@...>

Testing the My Object Dump and I am trying to cause creation

13 messages 2005/10/14
[#6283] Re: Wilderness: Need Code to invoke ELTS_SHARED response — Mauricio Fern疣dez <mfp@...> 2005/10/14

On Fri, Oct 14, 2005 at 05:04:59PM +0900, Charles E. Thornton wrote:

[#6288] Re: Wilderness: Need Code to invoke ELTS_SHARED response — "Charles E. Thornton" <ruby-core@...> 2005/10/14

Mauricio Fern疣dez wrote:

[#6365] Time for built-in Rational and Complex classes? — Gavin Sinclair <gsinclair@...>

There has been some support for, but no comment on, RCR #260 ("Make

12 messages 2005/10/24
[#6366] Re: Time for built-in Rational and Complex classes? — "Ara.T.Howard" <Ara.T.Howard@...> 2005/10/24

On Mon, 24 Oct 2005, Gavin Sinclair wrote:

[#6405] Re: [PATCH] Pathname.exists?() — "Berger, Daniel" <Daniel.Berger@...>

12 messages 2005/10/25
[#6406] Re: [PATCH] Pathname.exists?() — TRANS <transfire@...> 2005/10/25

On 10/25/05, Berger, Daniel <Daniel.Berger@qwest.com> wrote:

[#6408] Re: [PATCH] Pathname.exists?() — Gavin Sinclair <gsinclair@...> 2005/10/25

On 10/26/05, TRANS <transfire@gmail.com> wrote:

[#6442] Wilderness: I Have formatted README.EXT into an HTML Document — "Charles E. Thornton" <ruby-core@...>

I have taken README.EXT (English Version Only) and have reformatted

14 messages 2005/10/27

[#6469] csv.rb a start on refactoring. — Hugh Sasse <hgs@...>

For a database application I found using CSV to be rather slow.

50 messages 2005/10/28
[#6470] Re: csv.rb a start on refactoring. — "Ara.T.Howard" <Ara.T.Howard@...> 2005/10/28

[#6471] Re: csv.rb a start on refactoring. — James Edward Gray II <james@...> 2005/10/28

On Oct 28, 2005, at 8:53 AM, Ara.T.Howard wrote:

[#6474] Re: csv.rb a start on refactoring. — "Ara.T.Howard" <Ara.T.Howard@...> 2005/10/28

On Fri, 28 Oct 2005, James Edward Gray II wrote:

[#6484] Re: csv.rb a start on refactoring. — James Edward Gray II <james@...> 2005/10/29

On Oct 28, 2005, at 9:58 AM, Ara.T.Howard wrote:

[#6485] Re: csv.rb a start on refactoring. — "Ara.T.Howard" <Ara.T.Howard@...> 2005/10/29

On Sat, 29 Oct 2005, James Edward Gray II wrote:

[#6486] Re: csv.rb a start on refactoring. — James Edward Gray II <james@...> 2005/10/29

On Oct 28, 2005, at 8:25 PM, Ara.T.Howard wrote:

[#6487] Re: csv.rb a start on refactoring. — "Ara.T.Howard" <Ara.T.Howard@...> 2005/10/29

On Sat, 29 Oct 2005, James Edward Gray II wrote:

[#6491] Re: csv.rb a start on refactoring. — James Edward Gray II <james@...> 2005/10/29

On Oct 28, 2005, at 8:43 PM, Ara.T.Howard wrote:

[#6493] Re: csv.rb a start on refactoring. — James Edward Gray II <james@...> 2005/10/29

On Oct 28, 2005, at 10:06 PM, James Edward Gray II wrote:

[#6496] Re: csv.rb a start on refactoring. — "Ara.T.Howard" <Ara.T.Howard@...> 2005/10/29

On Sun, 30 Oct 2005, James Edward Gray II wrote:

[#6502] Re: csv.rb a start on refactoring. — James Edward Gray II <james@...> 2005/10/30

On Oct 29, 2005, at 12:11 PM, Ara.T.Howard wrote:

[#6505] Re: csv.rb a start on refactoring. — "Ara.T.Howard" <Ara.T.Howard@...> 2005/10/30

On Mon, 31 Oct 2005, James Edward Gray II wrote:

[#6511] Planning FasterCSV (was Re: csv.rb a start on refactoring.) — James Edward Gray II <james@...> 2005/10/30

I've decided to create a FasterCSV library, based on the code we

[#6516] Re: Planning FasterCSV (was Re: csv.rb a start on refactoring.) — "Ara.T.Howard" <Ara.T.Howard@...> 2005/10/31

On Mon, 31 Oct 2005, James Edward Gray II wrote:

[#6518] Re: Planning FasterCSV (was Re: csv.rb a start on refactoring.) — "NAKAMURA, Hiroshi" <nakahiro@...> 2005/10/31

-----BEGIN PGP SIGNED MESSAGE-----

Re: Crash in Tk demo of Ruby 1.9.0 CVS

From: "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
Date: 2005-10-25 03:00:23 UTC
List: ruby-core #6382
Jean-Claude Arbaut <jcarbaut@laposte.net> wrote:
(2005/10/25 08:19)

>I tried the demos in /ruby/ext/tk/sample/demos-en/widget
>and the Animation demo "A Celebration of Rube Goldberg"
>crashes with the following Tk message:
>
>  failed to allocate memory
>  failed to allocate memory
>      while executing
>  "rb_after a00000"
>      ("after" script)
>
>It can crash when launching this demo, or when running,
>or even when running for the 2nd or 3st time.
>
>I tried with Ruby 1.8.3 and it seems to work, so I suppose
>it doesn't come from my version of Tcl/Tk. In case
>it helps, I have MacOSX 10.4 with Tcl/Tk 8.4 (installed
>with the OS).
>
>Does anybody know where this error can come from ?

This error comes from this change. (this change is done because in some cases, ALLOC_N
or some other stuff causing GC can be called before interpreter is initialized)

http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/gc.c.diff?r1=1.209;r2=1.211

E:\ruby-cvs\win32>irb
"..\\ruby"
irb(main):001:0> GC.disable
=> false
irb(main):002:0> Array.new(100000)
E:/ruby-cvs/ruby/lib/irb.rb:298:in `inspect': failed to allocate memory (NoMemor
yError)
        from E:/ruby-cvs/ruby/lib/irb.rb:298:in `output_value'
        from E:/ruby-cvs/ruby/lib/irb.rb:151:in `eval_input'
        from E:/ruby-cvs/ruby/lib/irb.rb:259:in `signal_status'
        from E:/ruby-cvs/ruby/lib/irb.rb:147:in `eval_input'
        from E:/ruby-cvs/ruby/lib/irb/ruby-lex.rb:244:in `each_top_level_stateme
nt'
        from E:/ruby-cvs/ruby/lib/irb/ruby-lex.rb:230:in `each_top_level_stateme
nt'
        from E:/ruby-cvs/ruby/lib/irb/ruby-lex.rb:229:in `each_top_level_stateme
nt'
        from E:/ruby-cvs/ruby/lib/irb.rb:146:in `eval_input'
        from E:/ruby-cvs/ruby/lib/irb.rb:70:in `start'
        from E:/ruby-cvs/ruby/lib/irb.rb:69:in `start'
        from ../ruby/bin/irb:13

ruby/tk calls rb_gc_disable in many places, so probably this error occurs in that section.

This adhok patch seems to prevent this error, but I don't think this patch is good enough.
(I don't know GC mechanizm. Just tried and run fine.)

Index: gc.c
===================================================================
RCS file: /src/ruby/gc.c,v
retrieving revision 1.214
diff -u -w -b -p -r1.214 gc.c
--- gc.c	18 Oct 2005 17:35:18 -0000	1.214
+++ gc.c	25 Oct 2005 02:35:28 -0000
@@ -1280,6 +1280,7 @@ garbage_collect(void)
     if (dont_gc || during_gc) {
 	if (!freelist) {
 	    add_heap();
+	    return Qtrue;
 	}
 	return Qfalse;
     }



In This Thread