Bug #4315

Process.spawn cause Segmentation Fault if take a long string. (windows)

Added by Motohiro KOSAKI about 3 years ago. Updated almost 3 years ago.

[ruby-core:34833]
Status:Closed
Priority:Normal
Assignee:-
Category:core
Target version:1.9.3
ruby -v:ruby 1.9.3dev (2011-01-24 trunk 30640) [i386-mswin32_100] Backport:

Description

=begin
test.rb


spawn '"a"|'*100000000


ruby ./test.rb
=end

History

#1 Updated by Nobuyoshi Nakada about 3 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r30662.
Motohiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • process.c (procexecv, rbprocexecn, rbprocexec) (procspawnn, procspawn): get rid of too huge alloca(). , =end

Also available in: Atom PDF