[#9722] Kernel#system broken inside Dir.chdir(&block) if system command doesn't have shell characters — <noreply@...>

Bugs item #7278, was opened at 2006-12-14 13:59

8 messages 2006/12/14

[#9749] System V IPC in standard library? — Steven Jenkins <steven.jenkins@...>

Back in August, I needed a semaphore to serialize access to an external

14 messages 2006/12/19

[#9753] CVS freeze — SASADA Koichi <ko1@...>

Hi,

20 messages 2006/12/20
[#9755] Re: [ruby-dev:30039] CVS freeze — SASADA Koichi <ko1@...> 2006/12/20

Hi,

[#9757] Re: [ruby-dev:30040] Re: CVS freeze — SASADA Koichi <ko1@...> 2006/12/20

Hi,

[ ruby-Bugs-7205 ] ERb throws SystemStackError on Solaris 10

From: <noreply@...>
Date: 2006-12-10 19:36:05 UTC
List: ruby-core #9697
Bugs item #7205, was opened at 2006-12-10 19:35
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=7205&group_id=426

Category: Standard Library
Group: 1.8.4
Status: Open
Resolution: None
Priority: 3
Submitted By: Trevor Wennblom (trevor_wennblom)
Assigned to: Nobody (None)
Summary: ERb throws SystemStackError on Solaris 10

Initial Comment:
Several files are attached to replicate an error that I originally saw using Rails ActiveRecord fixtures and traced to ERb on Solaris.  I can only replicate this on "ruby 1.8.4 (2005-12-24) [sparc-solaris2.10]" so far, x86 machines execute the code fine.  The example program is "a.rb":

##begin
require 'yaml'
require 'erb'

#def erb_render(fixture_content)
#  ERB.new(fixture_content).result    
#end

yaml_string = ""
Dir["./**/*.yml"].select {|f| test(?f,f) }.each do |subfixture_path|
puts subfixture_path
yaml_string << IO.read(subfixture_path)
end

### This throws an error
#yaml = YAML::load(erb_render(yaml_string))

zz = ERB.new(yaml_string)
zz.result  # (erb):5005: stack level too deep (SystemStackError)

##end



The output using the included files is:

  ./protocols.yml
  ./samples.yml
  ./sample_types.yml
  ./sexes.yml
  (erb):5005: stack level too deep (SystemStackError)

If the last item in 'samples.yml' is removed ("samples_4492:") then the error is not thrown.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=7205&group_id=426

In This Thread

Prev Next