Project

General

Profile

Bug #4315

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

Added by kosaki (Motohiro KOSAKI) over 7 years ago. Updated about 7 years ago.

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

Description

=begin
test.rb


spawn '"a"|'*100_000_000


ruby ./test.rb
=end


Related issues

Related to Backport200 - Backport #7904: test_spawn_too_long_path(TestProcess) fails on PPC64Closed2013-02-22

History

#1 Updated by nobu (Nobuyoshi Nakada) over 7 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

#2 Updated by naruse (Yui NARUSE) over 2 years ago

  • Related to Backport #7904: test_spawn_too_long_path(TestProcess) fails on PPC64 added

Also available in: Atom PDF