[#41531] Re: possible bug: stack dump with <<-String, #{...} and large loops — "Christoph" <chr_news@...>
From: ts decoux@moulon.inra.fr
[#41532] Ruby-GNOME 0.28 is out! — Masao Mutoh <mutoh@...>
Hi, folks.
[#41546] \G in regexps not documented? — "Marcin 'Qrczak' Kowalczyk" <qrczak@...>
Where is an *up to date* documentation of Ruby regexps?
[#41547] Reading binary files (or strings) — Han Holl <han.holl@...>
[#41581] Ruby 1.6.7 dieing of segfault — Dossy <dossy@...>
I've got something that's fairly reproducible in 1.6.7. Is
Hi,
On 2002.06.02, Nobuyoshi Nakada <nobu.nokada@softhome.net> wrote:
On 2002.06.02, Dossy <dossy@panoptic.com> wrote:
Hi,
On 2002.06.02, Nobuyoshi Nakada <nobu.nokada@softhome.net> wrote:
[#41627] $a = 5; $b = 'a'; print $$b — Philip Mak <pmak@...>
Hello,
[#41637] Does assert() exist? — Philip Mak <pmak@...>
I saw a bunch of Ruby examples on the web that involve the assert()
On Sunday 02 June 2002 06:54 pm, Philip Mak wrote:
[#41647] Question: Recommended Postgresql interface? — Jeremy Henty <jeremy@...>
What is the recommended way to interface Ruby to Postgresql? I have
[#41660] dynamic attr_accessor?? — Markus Jais <mjais@...>
hello
[#41677] ruby equivalent for perl multi-index sort? — Rick Bradley <rick@...>
Coming from a perl background I have a lot of programs which do
[#41693] ruby-dev summary #17208-17251 — TAKAHASHI Masayoshi <maki@...>
Hello,
[#41704] Word for Windows Ruby Trick — <james@...>
This may be of limited value to many folks here, but I thought it kinda
[#41712] Annoucement: Interactive Learning Environment + Ocelot Servlet Engine — "Brad Cox, Ph.D." <bcox@...>
Interactive Learning Environment (ILE) Announcement
* Brad Cox, Ph.D. (bcox@virtualschool.edu) wrote:
[#41742] class inheritance tree — Matthias Veit <matthias_veit@...>
[#41746] Rexml / OpenSSL on Windows — "Stephan J. Schmidt" <stephan.schmidt@...>
Someone I know has a Ruby problem:
[#41755] HTML Parser suggestions wanted — Ned Konz <ned@...>
I've written an HTML parser that builds trees from HTML source. After
[#41763] When should actually freeze work ? — "Philip Mateescu" <philip@...>
Hi,
[#41793] Calling a (any) superclass method when already have one by that name — "Philip Mateescu" <philip@...>
Sorry if I did change the thread, but I seem to have at least clarified the
[#41809] eval and local variable — "Park Heesob" <phasis@...>
[#41819] mod_ruby and module space — "Sean O'Dell" <sean@...>
It seems that if I execute a script using mod_ruby, I cannot call
[#41842] How might "Apocalypse 5" affect Ruby? — Todd Holloway <todd@...>
[#41867] Pascal-like 'with' statement? — Philip Mak <pmak@...>
Is there something like Pascal's with statement? I'd like to turn this
Philip Mak wrote:
[#41883] DRb, Rinda and Jini — Aidan <ahumphreys@...>
I've been experimenting with DRb and Rinda recently - a beautifully
[#41899] unsubscribe — Bhagavatheeswaran Mahadevan <BMahadevan@...>
unsubscribe
[#41900] Array.foldr (Array.reduce) — "Kontra, Gergely" <kgergely@...>
Hi!
[#41907] Hashes sensitive to simularity — Thomas Hurst <tom.hurst@...>
I'm after something like nilsimsa[1]; a hashing algorithm that allow you to
[#41919] 1-second events — Paul Brannan <pbrannan@...>
I need to create an event that occurs exactly once per second.
Hi,
On 2002.06.07, nobu.nokada@softhome.net <nobu.nokada@softhome.net> wrote:
Hi,
On Fri, Jun 07, 2002 at 09:25:48AM +0900, Nobuyoshi Nakada wrote:
[#41928] Getting a reference to the object which called a method — Mathew Johnston <mjohnston@...>
Is it possible to get the same effect as the following, but without
On Fri, Jun 07, 2002 at 03:44:19AM +0900, Mathew Johnston wrote:
On Thu, 2002-06-06 at 14:25, Paul Brannan wrote:
[#41935] Returning an instance from a different class from new — jos@... (Jos Backus)
[For some reason I am no longer subscribed to ruby-talk and I don't get any
[#41943] InternetSeer Alert — InternetSeer <ndsub.7g7j5YxDpdLv76OyKAWPKWD7671EP.e3@...>
[#41967] ANNOUNCE: PageTemplate 0.3.1 — Brian Wisti <brian@...>
Hi All,
Brian Wisti wrote:
[#41969] subclassing SWIG generated c++ class — Martin Man <Martin.Man@...>
hi all,
[#42004] SWIG & the New Allocation Framework (Ruby 1.7) — Lyle Johnson <lyle@...>
All,
[#42018] precedence of =, and, or — "Volkmann, Mark" <Mark.Volkmann@...>
I'm fairly new to Ruby.
[#42040] GTK w/ ruby — Cameron Matheson <cmatheson3@...>
Hey,
[#42051] RE: Need a ruby book — "Victor Manuel Reyes Viloria" <vmreyes@...>
[#42073] Hash#===() — Han Holl <han@...>
[#42086] ANN: REXML 2.3.5 && 2.2.3 — Sean Russell <ser@...>
<posted & mailed>
Sean Russell wrote:
>
james@rubyxml.com wrote:
<posted & mailed>
> Well, XMLSchema may be troublesome to interpret, but it isn't
james@rubyxml.com wrote:
> My big question is: do I invest the time and effort in providing XML
james@rubyxml.com wrote:
> Hmm. Ok. What I meant was that I sort of feel obligated to provide a
[#42093] RE: Park and Sean....Possible memory bug in Ruby? I'm stumped! — Kurt Euler <keuler@...>
Thanks a lot, Park and Sean.
On Sunday 09 June 2002 02:07 pm, Kurt Euler wrote:
[#42112] Getting method! for free from method — Philip Mak <pmak@...>
Let's say I have:
[#42131] RubyCOM, ActiveScriptRuby, etc. — "Hal E. Fulton" <hal9000@...>
I ask this periodically in hopes that
[#42147] multiple instances of Ruby interpreter in my C++ code? — Thorsten Scheuermann <TScheuermann@...>
Hi,
[#42152] RE: multiple instances of Ruby interpreter in my C++ code? — Thorsten Scheuermann <TScheuermann@...>
Well, the threading in the app is cooperative, not preemptive. So if there
To be honest, I've never really seen the point of cooperative
[#42170] def += — "Kontra, Gergely" <kgergely@...>
Hi!
[#42192] ruby-dev summary 17252-17356 — Minero Aoki <aamine@...>
Hi all,
Minero Aoki wrote:
----- Original Message -----
"Hal E. Fulton" <hal9000@hypermetrics.com> writes:
> a = 1
Hi,
"Hal E. Fulton" wrote:
----- Original Message -----
Hi,
On Tue, 11 Jun 2002 13:20:03 +0900
----- Original Message -----
Not wanting to flog a dead horse, but I just wonder what the final word
Hi,
matz@ruby-lang.org (Yukihiro Matsumoto) writes:
Hi,
matz@ruby-lang.org (Yukihiro Matsumoto) writes:
Hi,
matz@ruby-lang.org (Yukihiro Matsumoto) wrote in message news:<1023845919.929356.32025.nullmailer@picachu.netlab.jp>...
[#42202] ruby-qt3 proposal (c++ based extensions) — Martin Man <Martin.Man@...>
hi all,
[#42207] rubycookbook — Bil Kleb <W.L.Kleb@...>
Any news on http://www.rubycookbook.org/ availability?
[#42227] pack()ing Bignums — Dan Debertin <airboss@...>
I have a 128-bit Bignum that I need to pack into a binary string in
[#42241] Modules and version determination — "Mr. Sunblade" <djberge@...>
Hi all,
On 2002.06.12, Mr. Sunblade <djberge@qwest.com> wrote:
On Wed, Jun 12, 2002 at 04:45:37AM +0900, Dossy wrote:
[#42252] How to reset a variable to the value in another variable? — Kurt Euler <keuler@...>
All-
[#42261] Ruby for jMax — Mathieu Bouchard <matju@...>
On Tue, 11 Jun 2002, Mathieu Bouchard wrote:
Mathieu Bouchard wrote:
[#42269] threads question (newbie) — "Shashank Date" <ADATE@...>
This is using Ruby 1.6.7 on Windows (mswin32).
[#42329] eruby — Manfred Hansen <manfred@...>
Hello
[#42347] procs and blocks — Evan Martin <martine@...>
When a need to use a callback function, it seem there are two ways to go
[#42386] ANN: Cellular Automata — Peter Hickman <peter@...>
Just released a little class / application to play with 1D cellular
[#42402] RE: Modules and version determination — "Berger, Daniel" <djberge@...>
> -----Original Message-----
On 2002.06.13, Berger, Daniel <djberge@qwest.com> wrote:
On Thu, Jun 13, 2002 at 10:53:16PM +0900, Dossy wrote:
[#42410] Relational operators redux (returning RHS) — Austin Ziegler <austin@...>
I have only recently started looking over the Ruby language, being
On Thu, Jun 13, 2002 at 11:13:03PM +0900, Austin Ziegler wrote:
[#42422] RE: Modules and version determination — "Berger, Daniel" <djberge@...>
[#42440] UNIX pipes — "David Douthitt" <DDouthitt@...>
I thought I could do:
[#42455] Application server & web developement enviroment — "Radu M. Obad磚 <whizkid@...>
Howdy,
On Fri, 14 Jun 2002 15:55:31 +0900, Radu M. Obadwrote:
Oops! Tobias Reif <tobiasreif@pinkjuice.com> was seen spray-painting on a wall:
On Fri, 14 Jun 2002 23:53:28 +0900, Christopher Browne wrote:
On Sat, Jun 15, 2002 at 12:46:58AM +0900, Austin Ziegler wrote:
[#42472] ANN: Programmierung in Ruby — "Juergen Katins" <katins.juergen@...>
Programmierung in Ruby Online gibt es jetzt mit ausfrlichem
[#42504] Are Unix tools just slow? — Chris Gehlker <gehlker@...>
Awhile back I was asking for help with a unixy way to search the mounted
On Sat, 15 Jun 2002 07:14:38 +0900
On Sat, Jun 15, 2002 at 01:26:11PM +0900, Daniel P. Zepeda wrote:
On 6/16/02 11:22 AM, "Kyle Rawlins" <rawlins@cs.umass.edu> wrote:
Chris Gehlker <gehlker@fastq.com> writes:
On 6/17/02 11:35 AM, "Josh Huber" <huber@alum.wpi.edu> wrote:
* Chris Gehlker (gehlker@fastq.com) [020614 17:18]:
On 6/14/02 3:34 PM, "Rick Bradley" <rick@rickbradley.com> wrote:
unix newby failing miserably here:
In <EDF421EF-8011-11D6-BEEF-000393722276@bigpond.com> ccos wrote:
yeah it is darwin, and the compiler is cc,
ok i still get errors, see below.
On Saturday 15 June 2002 12:18 am, ccos wrote:
hey there,
Rick Bradley wrote:
Centuries ago, Nostradamus foresaw when "Daniel P. Zepeda" <daniel@zepeda-zone.net> would write:
On 6/17/02 11:36 AM, "Christopher Browne" <cbbrowne@acm.org> wrote:
In an attempt to throw the authorities off his trail, Chris Gehlker <gehlker@fastq.com> transmitted:
[#42507] mpg123 — Tobias Reif <tobiasreif@...>
Hi,
Thomas A. Reilly wrote:
[#42529] Q: mod_ruby for Apache2.0 — kwatch@... (kwatch)
Hi,
[#42546] File.new('foo', 0600 , 'wb') — Tobias Reif <tobiasreif@...>
Hi,
Dossy wrote:
[#42561] system & changes to ENV on Windows — Johan Holmberg <holmberg@...>
Hello,
[#42591] Kernel#select questions — Wilkes Joiner <boognish23@...>
I'm trying to track down a bug where Kernel#select is returning [[],[],[]] as
Hi,
> I don't know. Maybe a bug. Show me more information, please.
Hi,
On 2002.06.17, nobu.nokada@softhome.net <nobu.nokada@softhome.net> wrote:
> I think I was wrong in [ruby-talk:40015] -- although, I can't
[#42596] Q: n-times matching — kwatch@... (kwatch)
Hi,
[#42617] eRuby on Mac OS X — Jim Menard <jimm@...>
I've searched ruby-talk for this topic, and the only messages I found show
[moving to modruby list]
On 6/18/02 11:03 PM, "Sean Chittenden" <sean@ruby-lang.org> wrote:
[#42635] problem with inner classes — Francis Hwang <sera@...>
I'm having a problem defining inner classes. The outer class is a
[#42651] Debug.rb and exceptions — Han Holl <han@...>
[#42671] Currently in rpkg repository — Massimiliano Mirra <list@...>
cliff - Command Line Interface Fast Framework
On Tue, Jun 18, 2002 at 07:05:48PM +0900, Massimiliano Mirra wrote:
On Tue, Jun 18, 2002 at 08:12:04PM +0900, patrik wrote:
On Tue, Jun 18, 2002 at 08:37:00PM +0900, Massimiliano Mirra wrote:
[#42674] REXML in C — "Radu M. Obad磚 <whizkid@...>
Hi,
[#42700] in-place editing — Ian Macdonald <ian@...>
I'm trying to figure out why the following code chunk fails to edit my
Hi,
[#42713] Japanese Ruby books — Jack Herrington <jack_d_herrington@...>
I've bought all of the English language Ruby books in print at the moment.
[#42760] releasing system? — Evan Martin <martine@...>
I think I'm ready for an initial release of Ruby/Evas.
[#42771] Why is I/O slow? — Clifford Heath <cjh_nospam@...>
Ok, folk, time to try again. It's nothing to do with SHA-1.
Yohanes Santoso wrote:
Yukihiro Matsumoto wrote:
> With respect, this doesn't sound like a smart idea. The glibc folk have
On Thursday 20 June 2002 10:10 pm, Mike Campbell wrote:
On Fri, 21 Jun 2002 12:16:24 +0900, Albert Wagner wrote:
On Fri 21 Jun 2002 at 12:31:30 +0900, Austin Ziegler wrote:
On Fri, 21 Jun 2002 14:49:01 +0900, Ian Macdonald wrote:
On Fri, Jun 21, 2002 at 10:15:22PM +0900, Austin Ziegler wrote:
On Sat, Jun 22, 2002 at 02:33:16AM +0900, Massimiliano Mirra muttered...
On Thursday 20 June 2002 10:31 pm, Austin Ziegler wrote:
Ian Macdonald wrote:
> Ian Macdonald wrote:
james@rubyxml.com schrieb:
Hi,
On Fri 21 Jun 2002 at 17:13:40 +0900, Yukihiro Matsumoto wrote:
[#42772] can super call a method multiple classes higher in the hierarchy? — Ian Macdonald <ian@...>
Hi,
[#42812] Re: Are Unix tools just slow? — "David Douthitt" <DDouthitt@...>
RE: sudo find / > /dev/null takes 61 seconds...
[#42816] ANNOUNCE: FXRuby-1.0.11 Now Available — "Lyle Johnson" <jlj@...>
I am pleased to announce the latest release of FXRuby, the Ruby language
[#42822] about Ruby/Tk documents — Maggie Xiao <mxiao@...>
Hi,
[#42842] THIS IS REAL — "DR. KAYODE" <dr_kayode@...>
FROM THE DESK OF: KAYODE A.ADEFUWORA
[#42877] OT: Linux zealotry etc. — "Hal E. Fulton" <hal9000@...>
Guys, this is the nearest thing I've seen
[#42884] parser for LISP — mxiao <mxiao@...>
I am new to ruby, and now I will write a parser for LISP-like language in
[#42893] Mixin using append_features and class<<self do not work together — Philipp Meier <meier@...>
Hello to all,
[#42904] a Perl script's interaction with Ruby's system call — Bil Kleb <W.L.Kleb@...>
I'm trying to invoke a perl script (epstopdf) with Ruby's system command
[#42912] Looking for the Ruby way for the following — Bil Kleb <W.L.Kleb@...>
Currently I am using the following rather ugly bit of Ruby code
[#42928] GOOD DEAL — "DR. ISA BELLO" <dr_isa@...>
FROM:DR ISA BELLO
Dossy wrote:
On 2002.06.23, yet another bill smith <bigbill.smith@verizon.net> wrote:
[#42932] What do you think of this idiom? — "Hal E. Fulton" <hal9000@...>
I was writing a little script which prompted
[#42933] Vim syntax file maintenance — Doug Kearns <djkea2@...>
Hello all,
[#42944] RE: detecting a socket dropping in multi-threaded app — "Firestone, Mark - Technical Support" <mark.firestone@...>
How about this? My @who data structure is shared with a mutex between the
[#42963] Vim syntax file - new location — Doug Kearns <djkea2@...>
Hello all,
[#42968] rapt update failure — Urban Hafner <ruby-lists@...>
Hello,
[#42982] No exceptions from String#to_i — "Hal E. Fulton" <hal9000@...>
I've been bitten by this before... maybe
>>>>> "H" == Hal E Fulton <hal9000@hypermetrics.com> writes:
>>>>> "N" == Nikodemus Siivola <tsiivola@cc.hut.fi> writes:
Hi,
On Tue, Jun 25, 2002 at 12:27:03AM +0900, Yukihiro Matsumoto wrote:
[#43032] rm -rf — Bil Kleb <W.L.Kleb@...>
How do I do the equivalent of a Unix `rm -rf directory` command?
[#43047] Andy Roonie meets Perl vs. Ruby... (I couldn't resist) — Sean Chittenden <sean@...>
> > If you're not _really_ object oriented programming, perl's OO
[#43054] RDE0.9.6.0 released — sakazuki <QZS01353@...>
Hi.
[#43070] []<< — Tom Sawyer <transami@...>
here's something i thought was interesting:
[#43074] Andy Roonie is perhaps excessively optimistic — Benjamin Peterson <bjsp123@...>
[#43085] Ruby books -- Which one for a true beginner? — Michael Vondung <mvondung@...>
It's been about ten years since I spent any time programming, and even
[#43099] Gvim interface to the ruby debugger? — "Gray, Jeff" <jeff.gray@...>
I've been contemplating hacking together some sort of Gvim-based interface
> I've been contemplating hacking together some sort of Gvim-based interface
[#43122] Re: help (ruby-talk ML) — Benjamin Peterson <bjsp123@...>
Benjamin Peterson <bjsp123@yahoo.com> writes:
Yes, I would gladly volunteer considerable effort to this end. I have
[#43147] Ruby on Mac OS X — Tobias Reif <tobiasreif@...>
Hi,
Tobias Reif <tobiasreif@pinkjuice.com> writes:
A friend of mine has started building his own blogging software, called
On 6/28/02 12:41 AM, "Tobias Reif" <tobiasreif@pinkjuice.com> wrote:
[#43156] Negation of regular expression — Yasuo Saito <y_saito@...10.freecom.ne.jp>
Hi.
[#43174] eruby SAFE question — Dylan Northrup <docx@...>
I'm trying to implement a replacement for the standard apache file listings
Dave Thomas wrote:
Tobias Reif <tobiasreif@pinkjuice.com> writes:
>
Tobias Reif wrote
On Mon, 1 Jul 2002, Juergen Katins wrote:
> From: David Alan Black [mailto:dblack@candle.superlink.net]
Hi --
Hi all,
[#43188] xmlrpc problems — jonas.b@... (Jonas Bengtsson)
Hi!
On Sat, Jun 29, 2002 at 08:47:16AM +0900, Jonas Bengtsson wrote:
Hello Michael,
[#43205] protocol.rb error — Tobias Reif <tobiasreif@...>
Hi,
On Saturday 29 June 2002 09:17 am, Tobias Reif wrote:
[#43216] select loop question — Joseph McDonald <joe@...>
[#43242] method objects? — Tyler Spivey <tspivey8@...>
is it possible to write a function liike:
Ruby 1.7.2 dieing of segfault (was Re: Ruby 1.6.7 dieing of segfault)
On 2002.06.02, Dossy <dossy@panoptic.com> wrote:
> I'm building 1.7.2 (as checked out of CVS just now) and II'll
> see if this fixes the problem. If not, I'll try to debug harder.
$ ruby-1.7.2 -v
ruby 1.7.2 (2002-05-30) [i686-linux]
Well, I built 1.7.2 (and freshly installed ruby/dbi, dbd_oracle 0.0.15
and rexml 2.2.2). I still get the error, but at least now I get more
useful debugging info in gdb:
Program received signal SIGSEGV, Segmentation fault.
0x400dac1b in free () from /lib/libc.so.6
(gdb) bt
#0 0x400dac1b in free () from /lib/libc.so.6
#1 0x400daaa3 in free () from /lib/libc.so.6
#2 0x0806a9a5 in obj_free (obj=1076321712) at gc.c:1069
#3 0x0806a628 in gc_sweep () at gc.c:894
#4 0x0806ab9c in rb_gc () at gc.c:1199
#5 0x08069b3f in rb_newobj () at gc.c:320
#6 0x08051ba7 in new_blktag () at eval.c:575
#7 0x08055470 in rb_eval (self=1075998352, n=0x4019cfb8) at eval.c:2455
#8 0x08054afa in rb_eval (self=1075998352, n=0x4019d224) at eval.c:2200
#9 0x0805ae45 in rb_call0 (klass=1075883624, recv=1075998352, id=6913,
argc=0, argv=0xbffedc58, body=0x4019d224, nosuper=0) at eval.c:4659
#10 0x0805b268 in rb_call (klass=1075883624, recv=1075998352, mid=6913,
argc=2, argv=0xbffedc50, scope=0) at eval.c:4755
#11 0x080562ef in rb_eval (self=1076000392, n=0x40198a44) at eval.c:2721
#12 0x080590a8 in rb_yield_0 (val=1075998352, self=1076000392, klass=0,
pcall=0) at eval.c:3820
#13 0x080592e4 in rb_yield (val=1075998352) at eval.c:3889
#14 0x080b5b24 in rb_ary_each (ary=1076000292) at array.c:754
#15 0x0805a556 in call_cfunc (func=0x80b5b04 <rb_ary_each>, recv=1076000292,
len=0, argc=0, argv=0x0) at eval.c:4396
#16 0x0805aa51 in rb_call0 (klass=1075522140, recv=1076000292, id=3697,
argc=0, argv=0x0, body=0x401b2638, nosuper=1) at eval.c:4530
#17 0x0805b268 in rb_call (klass=1075522140, recv=1076000292, mid=3697,
argc=0, argv=0x0, scope=0) at eval.c:4755
#18 0x080562ef in rb_eval (self=1076000392, n=0x4021afe8) at eval.c:2721
#19 0x0805f7b8 in block_pass (self=1076000392, node=0x4021affc) at eval.c:6720
#20 0x08055410 in rb_eval (self=1076000392, n=0x4021b04c) at eval.c:2447
#21 0x0805ae45 in rb_call0 (klass=1075923404, recv=1076000392, id=3697,
argc=0, argv=0x0, body=0x4021b04c, nosuper=0) at eval.c:4659
#22 0x0805b268 in rb_call (klass=1075923404, recv=1076000392, mid=3697,
argc=0, argv=0x0, scope=1) at eval.c:4755
#23 0x0805652c in rb_eval (self=1076000392, n=0x40198a1c) at eval.c:2734
#24 0x08055580 in rb_eval (self=1076000392, n=0x401985e4) at eval.c:2461
#25 0x0805ae45 in rb_call0 (klass=1075883624, recv=1076000392, id=11729,
argc=0, argv=0xbffefcd8, body=0x401985e4, nosuper=0) at eval.c:4659
#26 0x0805b268 in rb_call (klass=1075883624, recv=1076000392, mid=11729,
argc=2, argv=0xbffefcd0, scope=1) at eval.c:4755
#27 0x0805652c in rb_eval (self=1076000392, n=0x4019cd9c) at eval.c:2734
#28 0x08054afa in rb_eval (self=1076000392, n=0x4019cc5c) at eval.c:2200
#29 0x08054afa in rb_eval (self=1076000392, n=0x4019d224) at eval.c:2200
#30 0x0805ae45 in rb_call0 (klass=1075883624, recv=1076000392, id=6913,
argc=0, argv=0xbfff0d18, body=0x4019d224, nosuper=0) at eval.c:4659
#31 0x0805b268 in rb_call (klass=1075883624, recv=1076000392, mid=6913,
argc=2, argv=0xbfff0d10, scope=0) at eval.c:4755
#32 0x080562ef in rb_eval (self=1076001592, n=0x40198a44) at eval.c:2721
#33 0x080590a8 in rb_yield_0 (val=1076000392, self=1076001592, klass=0,
pcall=0) at eval.c:3820
#34 0x080592e4 in rb_yield (val=1076000392) at eval.c:3889
#35 0x080b5b24 in rb_ary_each (ary=1076001532) at array.c:754
#36 0x0805a556 in call_cfunc (func=0x80b5b04 <rb_ary_each>, recv=1076001532,
len=0, argc=0, argv=0x0) at eval.c:4396
#37 0x0805aa51 in rb_call0 (klass=1075522140, recv=1076001532, id=3697,
argc=0, argv=0x0, body=0x401b2638, nosuper=1) at eval.c:4530
#38 0x0805b268 in rb_call (klass=1075522140, recv=1076001532, mid=3697,
argc=0, argv=0x0, scope=0) at eval.c:4755
#39 0x080562ef in rb_eval (self=1076001592, n=0x4021afe8) at eval.c:2721
#40 0x0805f7b8 in block_pass (self=1076001592, node=0x4021affc) at eval.c:6720
#41 0x08055410 in rb_eval (self=1076001592, n=0x4021b04c) at eval.c:2447
#42 0x0805ae45 in rb_call0 (klass=1075923404, recv=1076001592, id=3697,
argc=0, argv=0x0, body=0x4021b04c, nosuper=0) at eval.c:4659
#43 0x0805b268 in rb_call (klass=1075923404, recv=1076001592, mid=3697,
argc=0, argv=0x0, scope=1) at eval.c:4755
#44 0x0805652c in rb_eval (self=1076001592, n=0x40198a1c) at eval.c:2734
#45 0x08055580 in rb_eval (self=1076001592, n=0x401985e4) at eval.c:2461
#46 0x0805ae45 in rb_call0 (klass=1075883624, recv=1076001592, id=11729,
argc=0, argv=0xbfff2d98, body=0x401985e4, nosuper=0) at eval.c:4659
#47 0x0805b268 in rb_call (klass=1075883624, recv=1076001592, mid=11729,
argc=2, argv=0xbfff2d90, scope=1) at eval.c:4755
#48 0x0805652c in rb_eval (self=1076001592, n=0x4019cd9c) at eval.c:2734
#49 0x08054afa in rb_eval (self=1076001592, n=0x4019cc5c) at eval.c:2200
#50 0x08054afa in rb_eval (self=1076001592, n=0x4019d224) at eval.c:2200
#51 0x0805ae45 in rb_call0 (klass=1075883624, recv=1076001592, id=6913,
argc=0, argv=0xbfff3dd8, body=0x4019d224, nosuper=0) at eval.c:4659
#52 0x0805b268 in rb_call (klass=1075883624, recv=1076001592, mid=6913,
argc=2, argv=0xbfff3dd0, scope=1) at eval.c:4755
#53 0x0805652c in rb_eval (self=1076001592, n=0x40217460) at eval.c:2734
#54 0x08054afa in rb_eval (self=1076001592, n=0x4021744c) at eval.c:2200
#55 0x0805ae45 in rb_call0 (klass=1075923364, recv=1076001592, id=3065,
argc=0, argv=0x0, body=0x4021744c, nosuper=0) at eval.c:4659
#56 0x0805b268 in rb_call (klass=1075923364, recv=1076001592, mid=3065,
argc=0, argv=0x0, scope=0) at eval.c:4755
#57 0x080562ef in rb_eval (self=1075988412, n=0x4021186c) at eval.c:2721
#58 0x0805614f in rb_eval (self=1075988412, n=0x402117f4) at eval.c:2718
#59 0x0805ae45 in rb_call0 (klass=1075951104, recv=1075988412, id=324, argc=0,
argv=0xbfff54a4, body=0x402117f4, nosuper=0) at eval.c:4659
#60 0x0805b268 in rb_call (klass=1075951104, recv=1075988412, mid=324, argc=1,
argv=0xbfff54a0, scope=1) at eval.c:4755
#61 0x0805b499 in rb_funcall (recv=1075988412, mid=324, n=1) at eval.c:4829
#62 0x080bcb59 in cmp_equal (x=1075988412, y=1076001592) at compar.c:23
#63 0x0805a568 in call_cfunc (func=0x80bcb40 <cmp_equal>, recv=1075988412,
len=1, argc=1, argv=0xbfff56e0) at eval.c:4399
#64 0x0805aa51 in rb_call0 (klass=1075950984, recv=1075988412, id=325, argc=1,
argv=0xbfff56e0, body=0x401b8880, nosuper=1) at eval.c:4530
#65 0x0805b268 in rb_call (klass=1075950984, recv=1075988412, mid=325, argc=1,
argv=0xbfff56e0, scope=1) at eval.c:4755
#66 0x0805b499 in rb_funcall (recv=1075988412, mid=325, n=1) at eval.c:4829
#67 0x0807c44f in rb_equal (obj1=1075988412, obj2=1076001592) at object.c:45
#68 0x080b72cf in rb_ary_includes (ary=1076005652, item=1076001592)
at array.c:1570
#69 0x0805a568 in call_cfunc (func=0x80b72a4 <rb_ary_includes>,
recv=1076005652, len=1, argc=1, argv=0xbfff5950) at eval.c:4399
#70 0x0805aa51 in rb_call0 (klass=1075522140, recv=1076005652, id=3319,
argc=1, argv=0xbfff5950, body=0x401b2188, nosuper=1) at eval.c:4530
#71 0x0805b268 in rb_call (klass=1075522140, recv=1076005652, mid=3319,
argc=1, argv=0xbfff5950, scope=0) at eval.c:4755
#72 0x080562ef in rb_eval (self=1076005872, n=0x4021b2a4) at eval.c:2721
#73 0x08054db7 in rb_eval (self=1076005872, n=0x4021b27c) at eval.c:2288
#74 0x08054afa in rb_eval (self=1076005872, n=0x4021b1f0) at eval.c:2200
#75 0x0805ae45 in rb_call0 (klass=1075923404, recv=1076005872, id=4489,
argc=0, argv=0xbfff6984, body=0x4021b1f0, nosuper=0) at eval.c:4659
#76 0x0805b268 in rb_call (klass=1075923404, recv=1076005872, mid=4489,
argc=1, argv=0xbfff6980, scope=0) at eval.c:4755
#77 0x080562ef in rb_eval (self=1076001592, n=0x40219814) at eval.c:2721
#78 0x08054afa in rb_eval (self=1076001592, n=0x40219738) at eval.c:2200
#79 0x0805ae45 in rb_call0 (klass=1075926404, recv=1076001592, id=11308,
argc=0, argv=0xbfff74e4, body=0x40219738, nosuper=0) at eval.c:4659
#80 0x0805b268 in rb_call (klass=1075926404, recv=1076001592, mid=11308,
argc=1, argv=0xbfff74e0, scope=0) at eval.c:4755
#81 0x080562ef in rb_eval (self=1076005872, n=0x4021b1f0) at eval.c:2721
#82 0x0805ae45 in rb_call0 (klass=1075923404, recv=1076005872, id=4489,
argc=0, argv=0xbfff7b74, body=0x4021b1f0, nosuper=0) at eval.c:4659
#83 0x0805b268 in rb_call (klass=1075923404, recv=1076005872, mid=4489,
argc=1, argv=0xbfff7b70, scope=0) at eval.c:4755
#84 0x080562ef in rb_eval (self=1076001592, n=0x40219814) at eval.c:2721
#85 0x08054afa in rb_eval (self=1076001592, n=0x40219738) at eval.c:2200
#86 0x0805ae45 in rb_call0 (klass=1075926404, recv=1076001592, id=11308,
argc=0, argv=0xbfff86d4, body=0x40219738, nosuper=0) at eval.c:4659
#87 0x0805b268 in rb_call (klass=1075926404, recv=1076001592, mid=11308,
argc=1, argv=0xbfff86d0, scope=0) at eval.c:4755
#88 0x080562ef in rb_eval (self=1075976752, n=0x4021b90c) at eval.c:2721
#89 0x08054afa in rb_eval (self=1075976752, n=0x4021b880) at eval.c:2200
#90 0x08055a52 in rb_eval (self=1075976752, n=0x4021b6dc) at eval.c:2562
#91 0x08054afa in rb_eval (self=1075976752, n=0x4021b68c) at eval.c:2200
#92 0x0805ae45 in rb_call0 (klass=1075923404, recv=1075976752, id=6017,
argc=0, argv=0xbfff9bd4, body=0x4021b68c, nosuper=0) at eval.c:4659
#93 0x0805b268 in rb_call (klass=1075923404, recv=1075976752, mid=6017,
argc=1, argv=0xbfff9bd0, scope=0) at eval.c:4755
#94 0x080562ef in rb_eval (self=1076596912, n=0x401e94c0) at eval.c:2721
#95 0x08054afa in rb_eval (self=1076596912, n=0x401e9bf0) at eval.c:2200
#96 0x0805ae45 in rb_call0 (klass=1076366512, recv=1076596912, id=14369,
argc=0, argv=0xbfffa744, body=0x401e9bf0, nosuper=0) at eval.c:4659
#97 0x0805b268 in rb_call (klass=1076366512, recv=1076596912, mid=14369,
argc=1, argv=0xbfffa740, scope=0) at eval.c:4755
#98 0x080562ef in rb_eval (self=1076596912, n=0x401e459c) at eval.c:2721
#99 0x08056e94 in rb_eval (self=1076596912, n=0x401e4588) at eval.c:2881
#100 0x08054afa in rb_eval (self=1076596912, n=0x401e4498) at eval.c:2200
#101 0x0805ae45 in rb_call0 (klass=1076366512, recv=1076596912, id=14617,
argc=0, argv=0xbfffb9bc, body=0x401e4498, nosuper=0) at eval.c:4659
#102 0x0805b268 in rb_call (klass=1076366512, recv=1076596912, mid=14617,
argc=1, argv=0xbfffb9b8, scope=1) at eval.c:4755
#103 0x0805b3d9 in rb_f_send (argc=1, argv=0xbfffb9b4, recv=1076596912)
at eval.c:4785
#104 0x0805a548 in call_cfunc (func=0x805b314 <rb_f_send>, recv=1076596912,
len=-1, argc=2, argv=0xbfffb9b4) at eval.c:4393
#105 0x0805aa51 in rb_call0 (klass=1075551380, recv=1076596912, id=3897,
argc=2, argv=0xbfffb9b4, body=0x401b7e94, nosuper=1) at eval.c:4530
#106 0x0805b268 in rb_call (klass=1075551380, recv=1076596912, mid=3897,
argc=2, argv=0xbfffb9b4, scope=0) at eval.c:4755
#107 0x080562ef in rb_eval (self=1075853724, n=0x401ee204) at eval.c:2721
#108 0x08056eda in rb_eval (self=1075853724, n=0x401eddb8) at eval.c:2887
#109 0x08054afa in rb_eval (self=1075853724, n=0x401ee9e8) at eval.c:2200
#110 0x0805ae45 in rb_call0 (klass=1075853624, recv=1075853724, id=9657,
argc=0, argv=0xbfffc9f8, body=0x401ee9e8, nosuper=0) at eval.c:4659
#111 0x0805b268 in rb_call (klass=1075853624, recv=1075853724, mid=9657,
argc=1, argv=0xbfffc9f4, scope=0) at eval.c:4755
#112 0x080562ef in rb_eval (self=1075546820, n=0x401a9ccc) at eval.c:2721
#113 0x08056f37 in rb_eval (self=1075546820, n=0x401a9cb8) at eval.c:2897
#114 0x08054afa in rb_eval (self=1075546820, n=0x401aa03c) at eval.c:2200
#115 0x08055a52 in rb_eval (self=1075546820, n=0x401a96b4) at eval.c:2562
#116 0x08055c9d in rb_eval (self=1075546820, n=0x401a9678) at eval.c:2602
#117 0x080590a8 in rb_yield_0 (val=6, self=1075546820, klass=0, pcall=2)
at eval.c:3820
#118 0x0806347f in rb_thread_yield (arg=1076007372, th=0x81dc010)
at eval.c:8682
#119 0x080631b2 in rb_thread_start_0 (fn=0x80633d8 <rb_thread_yield>,
arg=0x402291cc, th_arg=0x81dc010) at eval.c:8601
#120 0x0806356e in rb_thread_start (klass=1075529300, args=1076007372)
at eval.c:8721
#121 0x0805a534 in call_cfunc (func=0x8063530 <rb_thread_start>,
recv=1075529300, len=-2, argc=0, argv=0x0) at eval.c:4390
#122 0x0805aa51 in rb_call0 (klass=1075529280, recv=1075529300, id=5825,
argc=0, argv=0x0, body=0x401b45c8, nosuper=1) at eval.c:4530
#123 0x0805b268 in rb_call (klass=1075529280, recv=1075529300, mid=5825,
argc=0, argv=0x0, scope=0) at eval.c:4755
#124 0x080562ef in rb_eval (self=1075546820, n=0x401aa168) at eval.c:2721
#125 0x08055580 in rb_eval (self=1075546820, n=0x401aa1cc) at eval.c:2461
#126 0x080551c4 in rb_eval (self=1075546820, n=0x401aa834) at eval.c:2390
#127 0x080525a8 in eval_node (self=1075546820, node=0x401aa834) at eval.c:1103
#128 0x08052982 in ruby_run () at eval.c:1236
#129 0x08051192 in main (argc=2, argv=0xbffff744, envp=0xbffff750) at main.c:50
(gdb) bt 10 full
#0 0x400dac1b in free () from /lib/libc.so.6
No symbol table info available.
#1 0x400daaa3 in free () from /lib/libc.so.6
No symbol table info available.
#2 0x0806a9a5 in obj_free (obj=1076321712) at gc.c:1069
obj = 1076321712
#3 0x0806a628 in gc_sweep () at gc.c:894
n = 16538
p = (RVALUE *) 0x40275db0
pend = (RVALUE *) 0x402ba348
final_list = (RVALUE *) 0x0
freed = 1862
i = 136513304
used = 3
#4 0x0806ab9c in rb_gc () at gc.c:1199
list = (struct gc_list *) 0x0
frame = (struct FRAME *) 0x0
save_regs_gc_mark = {{__jmpbuf = {0, 1075434380, 0, -1073819464,
-1073819664, 134654716}, __mask_was_saved = 0, __saved_mask = {__val = {
1075358380, 1, 3221147872, 338, 0, 1075883144, 3221150628, 0,
135392409, 521, 0, 0, 1075358380, 3221147832, 134591080, 1075542440,
1075358380, 338, 1, 3221147872, 1075540360, 1, 1, 0, 1, 1, 3221147848,
134904078, 1075432460, 3221147864, 134952249, 338}}}}
stack_end = (VALUE *) 0xbffed0b8
#5 0x08069b3f in rb_newobj () at gc.c:320
obj = 0
#6 0x08051ba7 in new_blktag () at eval.c:575
blktag = (struct BLOCKTAG *) 0x8230718
#7 0x08055470 in rb_eval (self=1075998352, n=0x4019cfb8) at eval.c:2455
_block = {var = 0x4019d184, body = 0x4019d044, self = 1075998352,
frame = {self = 1075998352, argc = 2, argv = 0xbffeda9c, last_func = 6913,
last_class = 1075883624, cbase = 1075883144, prev = 0xbffee224, tmp = 0x0,
file = 0x811ec99 "/usr/lib/ruby/site_ruby/1.7/rexml/element.rb",
line = 526, iter = 0, flags = 0}, scope = 0x4018b574, tag = 0x4018b114,
klass = 1075551520, iter = 0, vmode = 0, flags = 1, dyna_vars = 0x0,
orig_thread = 1, wrapper = 0, prev = 0x0}
_tag = {buf = {{__jmpbuf = {0, -1073816620, -1073818984, -1073818200,
-1073819424, 134567219}, __mask_was_saved = 0, __saved_mask = {
__val = {0, 0, 4, 3221148440, 134813952, 1, 0, 3221148440, 1, 0,
135459832, 3221148456, 134826810, 0, 136291568, 3221148488,
134830298, 1075365480, 1075359980, 3221148504, 134907898, 137387773,
135425504, 1, 3221148812, 1075365480, 0, 102, 8, 11345, 1075863684,
3221148552}}}}, frame = 0xbffedba4, iter = 0xbffedad8,
tag = 4294967295, retval = 4, scope = 0x40189634, dst = 0, prev = 0xbffedaec}
n = (NODE *) 0x8230718
node = (NODE *) 0x4019d008
state = 0
result = 4
#8 0x08054afa in rb_eval (self=1075998352, n=0x4019d224) at eval.c:2200
n = (NODE *) 0x8230718
node = (NODE *) 0x4019cfa4
state = 2
result = 4
#9 0x0805ae45 in rb_call0 (klass=1075883624, recv=1075998352, id=6913,
argc=0, argv=0xbffedc58, body=0x4019d224, nosuper=0) at eval.c:4659
_tag = {buf = {{__jmpbuf = {0, 0, 0, -1073816616, -1073816960,
134589548}, __mask_was_saved = 0, __saved_mask = {__val = {0,
3221153376, 123, 135391601, 0, 3221150384, 1075358380, 1075542440,
0, 0, 2833, 0, 1075952644, 3221154804, 0, 3221151688, 95, 0, 0,
3221151704, 3221150632, 134591080, 1075542420, 1075542440, 2833, 0,
0, 1075926204, 1, 3221150752, 336, 0}}}}, frame = 0xbffedba4,
iter = 0xbffedad8, tag = 4294967295, retval = 4, scope = 0x40189634,
dst = 0, prev = 0xbffee168}
_old = (struct RVarmap *) 0x40189828
_vmode = 0
_old = (struct SCOPE *) 0x4018a0fc
_scope = (struct SCOPE *) 0x8230718
state = 0
local_vars = (VALUE *) 0xbffeda94
saved_cref = (NODE *) 0x4020ac88
_frame = {self = 1075998352, argc = 2, argv = 0xbffeda9c,
last_func = 6913, last_class = 1075883624, cbase = 1075883144,
prev = 0xbffee224, tmp = 0x0,
file = 0x811ec99 "/usr/lib/ruby/site_ruby/1.7/rexml/element.rb", line = 680,
iter = 0, flags = 0}
_iter = {iter = 0, prev = 0xbffee160}
nosuper = 1075434380
b2 = (NODE *) 0x4019cb80
result = 4
itr = 0
tick = 714664
Just to dig a little:
(gdb) p *(RVALUE *)1076321712
$8 = {as = {free = {flags = 9, next = 0x401b2a5c}, basic = {flags = 9,
klass = 1075522140}, object = {basic = {flags = 9, klass = 1075522140},
iv_tbl = 0x1}, klass = {basic = {flags = 9, klass = 1075522140},
iv_tbl = 0x1, m_tbl = 0x1, super = 136513296}, flonum = {basic = {
flags = 9, klass = 1075522140}, value = 2.121995791459338e-314},
string = {basic = {flags = 9, klass = 1075522140}, len = 1,
ptr = 0x1 <Address 0x1 out of bounds>, aux = {capa = 136513296,
shared = 136513296}}, array = {basic = {flags = 9,
klass = 1075522140}, len = 1, aux = {capa = 1, shared = 1},
ptr = 0x8230710}, regexp = {basic = {flags = 9, klass = 1075522140},
ptr = 0x1, len = 1, str = 0x8230710 "\004"}, hash = {basic = {flags = 9,
klass = 1075522140}, tbl = 0x1, iter_lev = 1, ifnone = 136513296},
data = {basic = {flags = 9, klass = 1075522140}, dmark = 0x1, dfree = 0x1,
data = 0x8230710}, rstruct = {basic = {flags = 9, klass = 1075522140},
len = 1, ptr = 0x1}, bignum = {basic = {flags = 9, klass = 1075522140},
sign = 1 '\001', len = 1, digits = 0x8230710}, file = {basic = {
flags = 9, klass = 1075522140}, fptr = 0x1}, node = {flags = 9,
nd_file = 0x401b2a5c "\003", u1 = {node = 0x1, id = 1, value = 1,
cfunc = 0x1, tbl = 0x1}, u2 = {node = 0x1, id = 1, argc = 1,
value = 1}, u3 = {node = 0x8230710, id = 136513296, state = 136513296,
entry = 0x8230710, cnt = 136513296, value = 136513296}}, match = {
basic = {flags = 9, klass = 1075522140}, str = 1, regs = 0x1}, varmap = {
super = {flags = 9, klass = 1075522140}, id = 1, val = 1,
next = 0x8230710}, scope = {super = {flags = 9, klass = 1075522140},
local_tbl = 0x1, local_vars = 0x1, flags = 136513296}}}
[T_MASK == 0x3f]
(gdb) p (*(RVALUE *)1076321712)->as.basic.flags & 0x3f
$11 = 9
[0x09 == T_ARRAY]
gc.c:
987 case T_ARRAY:
988 if (RANY(obj)->as.array.ptr && !FL_TEST(obj, ELTS_SHARED)) {
989 RUBY_CRITICAL(free(RANY(obj)->as.array.ptr));
990 }
991 break;
(gdb) p (*(RVALUE *)1076321712)->as.array.ptr
$12 = (VALUE *) 0x8230710
(gdb) p *(*(RVALUE *)1076321712)->as.array.ptr
$13 = 4
However, look at this in gc.c:
1067 case T_STRUCT:
1068 if (RANY(obj)->as.rstruct.ptr) {
1069 RUBY_CRITICAL(free(RANY(obj)->as.rstruct.ptr));
1070 }
1071 break;
This doesn't make sense. Why would the switch statement match
T_ARRAY and T_STRUCT (especially when T_STRUCT == 0x0c)?
Perhaps I'm looking too late and memory is already wrong?
I'll try to set up some breakpoints and catch the problem before
it manifests, but I don't know how successful I'll be. Any
hints at debugging Ruby will be much appreciated. :-)
-- Dossy
--
Dossy Shiobara mail: dossy@panoptic.com
Panoptic Computer Network web: http://www.panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)