[#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

22 messages 2003/07/01
[#1208] Re: warning in ruby extension eats memory — ts <decoux@...> 2003/07/01

>>>>> "E" == Eugene Scripnik <Eugene.Scripnik@itgrp.net> writes:

[#1209] Re: warning in ruby extension eats memory — Eugene Scripnik <Eugene.Scripnik@...> 2003/07/02

ts wrote:

[#1210] Re: warning in ruby extension eats memory — ts <decoux@...> 2003/07/02

>>>>> "E" == Eugene Scripnik <Eugene.Scripnik@itgrp.net> writes:

[#1211] Re: warning in ruby extension eats memory — Eugene Scripnik <Eugene.Scripnik@...> 2003/07/04

ts wrote:

[#1212] Re: warning in ruby extension eats memory — ts <decoux@...> 2003/07/04

>>>>> "E" == Eugene Scripnik <Eugene.Scripnik@itgrp.net> writes:

[#1213] Re: warning in ruby extension eats memory — Eugene Scripnik <Eugene.Scripnik@...> 2003/07/04

ts wrote:

[#1214] Re: warning in ruby extension eats memory — ts <decoux@...> 2003/07/04

>>>>> "E" == Eugene Scripnik <Eugene.Scripnik@itgrp.net> writes:

[#1215] Re: warning in ruby extension eats memory — Eugene Scripnik <Eugene.Scripnik@...> 2003/07/04

ts wrote:

[#1237] FTP.new with block — Gavin Sinclair <gsinclair@...>

Hi,

22 messages 2003/07/19
[#1238] Re: [Patch] FTP.new with block — ts <decoux@...> 2003/07/19

>>>>> "G" == Gavin Sinclair <gsinclair@soyabean.com.au> writes:

[#1240] Re: [Patch] FTP.new with block — Mathieu Bouchard <matju@...> 2003/07/19

[#1297] Fix for Bug 1058 — Markus Walser <walser@...>

Hi,

16 messages 2003/07/25

Re: Bug 1060

From: Markus Walser <walser@...>
Date: 2003-07-25 17:47:12 UTC
List: ruby-core #1304
> Check the value of klass by
>
>   (gdb) p *(struct RClass*)klass

(gdb) bt
#0  st_lookup (table=0x60000000000fb380, key=0x37fd <Address 0x37fd out of bounds>, value=0x600000fffffe3210) at st.c:253
#1  0x4000000000014770 in ev_const_get (cref=0x20000000004e5498, id=14333, self=2305843009217626888) at eval.c:1469
#2  0x400000000001daa0 in rb_eval (self=2305843009217626888, n=0x20000000003d8d18) at eval.c:2040
#3  0x4000000000014770 in ev_const_get (cref=0x600000fffffed360, id=0, self=2305843009215401808) at eval.c:1469
#4  0x0000000000000001 in ?? ()
#5  0x4000000000014770 in ev_const_get (cref=0x600000fffffea780, id=2305843009217918968, self=1) at eval.c:1469
#6  0x20000000003dd0c0 in ?? ()
#7  0x4000000000014770 in ev_const_get (cref=0x0, id=0, self=0) at eval.c:1469
#8  0x600000000000b858 in ruby_dln_librefs ()
warning: Can't fetch instructions for slot numbers greater than 2.
Using slot 0 instead
#9  0x4000000000014770 in ev_const_get (cref=0x0, id=2305843009215401808, self=6917529027641129048) at eval.c:1469
#10 0x0000000000000000 in ?? ()
(gdb) select 1
(gdb) p *(struct RClass*)klass
No symbol "klass" in current context.
(gdb) p *((struct RClass*)(cbase->u1.value))
$1 = {basic = {flags = 512, klass = 2305843009217626808}, iv_tbl = 0x60000000000fb380, m_tbl = 0x60000000000fb300, super = 2305843009218026048}
(gdb) p *((struct RClass*)(cbase->u1.value))->iv_tbl
$2 = {type = 0x60000000000fb2f0, num_bins = 11, num_entries = 1, bins = 0x60000000000fb3a0}
(gdb) p ((struct RClass*)(cbase->u1.value))->iv_tbl
$3 = (struct st_table *) 0x60000000000fb380
(gdb) p *((struct RClass*)(cbase->u1.value))->iv_tbl->type
$4 = {compare = 0, hash = 0x21}
(gdb) p ((struct RClass*)(cbase->u1.value))->iv_tbl->type
$5 = (struct st_hash_type *) 0x60000000000fb2f0


Markus

In This Thread