[#1094] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — Dave Thomas <dave@...>

> * eval.c (rb_mod_autoload, rb_mod_autoload_p): new method;

12 messages 2003/05/29
[#1095] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — nobu.nokada@... 2003/05/29

Hi,

Re: crash involving Qundef

From: nobu.nokada@...
Date: 2003-05-26 10:26:17 UTC
List: ruby-core #1076
Hi,

At Mon, 26 May 2003 15:21:30 +0900,
Yukihiro Matsumoto wrote:
> Qundef is the value for internal use that should not reveal to
> external world, so that your problem should be caused by a bug.  Could
> you show us exactly how I can reproduce the problem with your script?

Just download moulinette.rb and following XML files. 

$ ruby moulinette.rb
/usr/lib/ruby/site_ruby/rexml/doctype.rb:196: warning: regular expression has ']' without escape: /\s*]\s*>/
reading install.xml
reading project_policy.xml
reading reference.xml
reading format.xml
reading internals.xml
reading architecture.xml
writing install.html
moulinette.rb:142: [BUG] Segmentation fault
ruby 1.8.0 (2003-05-25) [i686-linux]

Aborted (core dumped)

But REXML comes to not work by today's change, perhaps
Block/Proc separation.

$ ~/src/ruby/1.8/ruby moulinette.rb
/usr/lib/ruby/site_ruby/rexml/doctype.rb:196: warning: regexp has `]' without escape
reading install.xml


#<NoMethodError: undefined method `start_element' for #<Block:0x402bc164@moulinette.rb:419>>
moulinette.rb:533:in `read_one_page': undefined method `line' for #<GFDocParser:0x402bc894> (NoMethodError)
        from moulinette.rb:562
        from moulinette.rb:562:in `each'
        from moulinette.rb:562

To be brief, ruby_frame->self is Qundef at the NODE_ZSUPER.  I
guess class_eval and something influence the bug, but haven't
succeeded to reduce the code which reproduces it yet.

-- 
Nobu Nakada

In This Thread

Prev Next