Bug #4315

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

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

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

Description

=begin
test.rb


spawn '"a"|'*100_000_000


ruby ./test.rb
=end

History

#1 Updated by Nobuyoshi Nakada about 4 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 (proc_exec_v, rb_proc_exec_n, rb_proc_exec) (proc_spawn_n, proc_spawn): get rid of too huge alloca(). , =end

Also available in: Atom PDF