Redirecting $stdout to an object blows up the stack ---------------------------------------------------
Key: JRUBY-3483 URL: http://jira.codehaus.org/browse/JRUBY-3483 Project: JRuby Issue Type: Bug Affects Versions: JRuby 1.x+ Environment: Mac OS 10.5.6, Intel Core 2 Duo, jruby 1.3.0 (ruby 1.8.6 patchlevel 287) (2009-03-09 rev 6586) [i386-java], java version "1.5.0_16" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284) Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing) Reporter: Chris Shea Assignee: Thomas E Enebo Attachments: extra-outputter.rb See attachment. This file should exit normally with no output. It merely creates a class with a write method (that does nothing), and assigns $stdout to a new instance of that class. Ruby 1.8.6 and 1.9.1 run without output as expected. JRuby errors with: Error: Your application used more stack memory than the safety cap of 1024k. Specify -J-Xss####k to increase it (#### = cap size in KB). Specify -w for full StackOverflowError stack trace -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email