From: Nobuyoshi Nakada Date: 2007-07-22T11:00:02+09:00 Subject: Re: Bug? array.push(*array) segfault Hi, At Sun, 22 Jul 2007 09:30:58 +0900, Ron M wrote in [ruby-core:11777]: > Is this a good place to report bugs? Yes. > I'm getting this segfault with ruby 1.8.4 and 1.8.6 with > this one liner: > > % ruby -e 'a = [1,2,3,4,5]; (1..20).each{ a.push(*a)}' > Segmentation fault SEGV without [BUG] message means stack overflow. a.push(*a) doubles a, and repeating it 20 times makes a 1<<20 times. This issue is same as [ruby-talk:255290], and can be avoided by not using alloca() as I mentioned in [ruby-talk:255418]. -- Nobu Nakada