Project

General

Profile

Bug #4315

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

Added by Motohiro KOSAKI over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
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 PPC64 Closed 02/22/2013

Associated revisions

Revision 30662
Added by Nobuyoshi Nakada over 5 years ago

  • process.c (proc_exec_v, rb_proc_exec_n, rb_proc_exec) (proc_spawn_n, proc_spawn): get rid of too huge alloca(). ,

History

#1 Updated by Nobuyoshi Nakada over 5 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 Yui NARUSE 7 months ago

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

Also available in: Atom PDF