[#1207] warning in ruby extension eats memory — Eugene Scripnik <Eugene.Scripnik@...>
This message was posted to ruby-talk, but I didn't get responce from
>>>>> "E" == Eugene Scripnik <Eugene.Scripnik@itgrp.net> writes:
ts wrote:
>>>>> "E" == Eugene Scripnik <Eugene.Scripnik@itgrp.net> writes:
ts wrote:
>>>>> "E" == Eugene Scripnik <Eugene.Scripnik@itgrp.net> writes:
ts wrote:
>>>>> "E" == Eugene Scripnik <Eugene.Scripnik@itgrp.net> writes:
ts wrote:
>>>>> "E" == Eugene Scripnik <Eugene.Scripnik@itgrp.net> writes:
Hi,
[#1229] stack problem — Mathieu Bouchard <matju@...>
On Sat, Jul 12, 2003 at 01:59:53PM +0900, Mathieu Bouchard wrote:
On Tue, Jul 15, 2003 at 01:26:43AM +0900, Mathieu Bouchard wrote:
Hi,
[#1237] FTP.new with block — Gavin Sinclair <gsinclair@...>
Hi,
>>>>> "G" == Gavin Sinclair <gsinclair@soyabean.com.au> writes:
Hi,
Mathieu Bouchard wrote:
On Sun, Jul 20, 2003 at 03:06:13AM +0900, Dave Thomas wrote:
>>>>> "R" == Richard Zidlicky <rz@linux-m68k.org> writes:
On Sun, Jul 20, 2003 at 06:51:03PM +0900, ts wrote:
>>>>> "R" == Richard Zidlicky <rz@linux-m68k.org> writes:
On Mon, Jul 21, 2003 at 09:59:19PM +0900, ts wrote:
[#1249] File.write(path, data)? — Gavin Sinclair <gsinclair@...>
I am glad to see File.read(path) in Ruby 1.8. But what about
[#1256] testunit, exit status and at_exit — Dave Thomas <dave@...>
I'd really like TestUnit to be able to return an exit status when I run
-----BEGIN PGP SIGNED MESSAGE-----
Sean E. Russell [mailto:ser@germane-software.com] wrote:
Hi,
[#1257] Add have_defined() and rework have_struct_member() — Michal Rokos <m.rokos@...>
Hello,
[#1297] Fix for Bug 1058 — Markus Walser <walser@...>
Hi,
Hi,
On Friday 25 July 2003 10:58, Yukihiro Matsumoto wrote:
Hi,
On Friday 25 July 2003 11:46, Yukihiro Matsumoto wrote:
I tried to figure out what's wrong. So far I havn't a solution:
Hello,
> Check the value of klass by
Hi,
[#1309] exceptions and such — Mathieu Bouchard <matju@...>
[#1310] adding NodeDump and ii — nobu.nokada@...
Hi,
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
Re: warning in ruby extension eats memory
Hi,
At Fri, 4 Jul 2003 22:40:35 +0900,
ts wrote:
> n> rb_call() checks only receiver's class, but nothing for flags.
>
> Yes, but what I don't understand is how ruby can have all these calls
>
> #108450 0x2808af03 in ruby_finalize () from /usr/local/lib/libruby.so.18
> #108451 0x2808b010 in ruby_cleanup () from /usr/local/lib/libruby.so.18
> #108452 0x2808b11f in ruby_stop () from /usr/local/lib/libruby.so.18
> #108453 0x2808b176 in ruby_run () from /usr/local/lib/libruby.so.18
> #108454 0x080485f6 in main ()
> #108455 0x08048515 in _start ()
I can't get what you mean, these seem to be called normally.
> bad value from getrlimit() ????
On my machine, it was stopped by stack_check() in rb_call0().
Ad-hockery solution.
Index: io.c
===================================================================
RCS file: //sharui/cvs/ruby/src/ruby/io.c,v
retrieving revision 1.218
diff -u -2 -p -r1.218 io.c
--- io.c 26 Jun 2003 18:24:58 -0000 1.218
+++ io.c 4 Jul 2003 14:22:30 -0000
@@ -415,8 +415,6 @@ io_write(io, str)
str = rb_obj_as_string(str);
- if (TYPE(io) != T_FILE) {
- /* port is not IO, call write method for it. */
- return rb_funcall(io, id_write, 1, str);
- }
+ Check_Type(io, T_FILE);
+
if (RSTRING(str)->len == 0) return INT2FIX(0);
@@ -2749,4 +2747,8 @@ rb_write_deferr2(mesg, len)
long len;
{
+ if (SPECIAL_CONST_P(rb_deferr) || !BUILTIN_TYPE(rb_deferr)) {
+ fwrite(mesg, 1, len, stderr);
+ return;
+ }
rb_io_write(rb_deferr, rb_str_new(mesg, len));
}
--
Nobu Nakada