[ruby-core:66764] Re: [ruby-changes:36667] normal:r48748 (trunk): struct: avoid all O(n) behavior on access

From: Eric Wong <normalperson@...>
Date: 2014-12-10 10:27:19 UTC
List: ruby-core #66764
Tanaka Akira <akr@fsij.org> wrote:
> 2014-12-10 0:44 GMT+09:00 normal <ko1@atdot.net>:
> > normal  2014-12-10 00:43:49 +0900 (Wed, 10 Dec 2014)
> >
> >   New Revision: 48748
> >
> >   http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48748
> >
> >   Log:
> >     struct: avoid all O(n) behavior on access
> 
> "make dist" causes SEGV after this commit on Debian GNU/Linux 7.7 (wheezy) i386.
> 
> http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20141209T155000Z.fail.html.gz

<snip>
> ./tool/transcode-tblgen.rb:4: [BUG] Segmentation fault at 0x6e690000
> ruby 2.2.0dev (2014-12-10 trunk 48750) [i686-linux]

Thank you.  I was able to reproduce various segfaults before I did
"make install".  However, after I ran "make install" to run a newer Ruby,
I could no longer reproduce the problem.  I haven't figured out why...
the original problem had inconsistent backtraces each time I reproduced
it, suggesting missing GC marking.

(Warning: very sleep-deprived at the moment)

Sorry, I am not yet familiar with transcode-tblgen and make-snapshot and
won't have much time the next week or so for Ruby.  Feel free to revert
r48754 and r48748 if they continue to cause problems and others cannot
solve it.  I will have more time to revisit in one week or so.

In This Thread