local_vars 
Author Message
 local_vars

 This is with rdtool

pigeon% ruby rdtoolconf.rb
creating Makefile
pigeon% make all
racc  rd/rdblockparser.ry
racc  rd/rdinlineparser.ry
ruby -I. rd2 -r rd/rd2html-lib.rb README.rd > README.html
rd/rdblockparser.ry:358: [BUG] rb_gc_mark(): unknown data type 0x11(0x8151680) non object
ruby 1.6.8 (2002-10-18) [i686-linux]
make: *** [README.html] Error 134
pigeon%

pigeon% diff -u eval.c~ eval.c
--- eval.c~     2002-10-22 11:14:30.000000000 +0200

                            NODE *body = (NODE *)ruby_scope->scope_node;
                            if (body && body->nd_tbl != ruby_scope->local_tbl) {
                                if (body->nd_tbl) free(body->nd_tbl);
-                               ruby_scope->local_vars[-1] =
-                                   (VALUE)(body->nd_tbl = ruby_scope->local_tbl);
+                               ruby_scope->local_vars[-1] = (VALUE)body;
+                               body->nd_tbl = ruby_scope->local_tbl;
                            }
                        }
                        ruby_eval_tree = 0;
pigeon%

pigeon% make clean
rm -f rd/rdblockparser.tab.rb rd/rdinlineparser.tab.rb rd/rdblockparser.output rd/rdinlineparser.output README.html
rm -f ./Makefile
pigeon%
pigeon% ruby rdtoolconf.rb
creating Makefile
pigeon% make all
racc  rd/rdblockparser.ry
racc  rd/rdinlineparser.ry
ruby -I. rd2 -r rd/rd2html-lib.rb README.rd > README.html
pigeon%

 This is the same problem than [ruby-talk:53167]

  Dave Thomas can verify the patch ?

Guy Decoux



Sat, 09 Apr 2005 17:33:33 GMT  
 local_vars
Hi,

In message "[1.6.8] local_vars"

| This is with rdtool

Thank you!  This is probably a source of recent 1.6.8 core dumps.

                                                        matz.



Sun, 10 Apr 2005 16:18:07 GMT  
 
 [ 2 post ] 

 Relevant Pages 
 

 
Powered by phpBB® Forum Software