ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:66648] [ruby-trunk - Bug #10563] [Open] system() call hangs if command is too long
       [not found] <redmine.issue-10563.20141202203640@ruby-lang.org>
@ 2014-12-02 20:36 ` lars.benner
  2014-12-02 20:46 ` [ruby-core:66649] [ruby-trunk - Bug #10563] " lars.benner
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: lars.benner @ 2014-12-02 20:36 UTC (permalink / raw
  To: ruby-core

Issue #10563 has been reported by Lars Benner.

----------------------------------------
Bug #10563: system() call hangs if command is too long
https://bugs.ruby-lang.org/issues/10563

* Author: Lars Benner
* Status: Open
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: platform/mingw
* Target version: current: 2.2.0
* ruby -v: ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
In some situations another process, which was started using Kernel::system(), hangs right from the beginning, i.e. the process was started but nothing is actually executed.

On my system this happened, when the single command string passed to system call exceeded 1022 characters.

A very interesting fact is, that this only happens, if the command at the beginning is given with '/' in the path. After I replaced the '/' with '\', everything is working fine.

Please find attached two scripts for reproducing this issue. Just call 'ruby caller.rb' and observe that everything hangs after the command line got to long. After changing the Ruby interpreter in the file. everything works as expected. 






---Files--------------------------------
callee.rb (283 Bytes)
caller.rb (797 Bytes)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:66649] [ruby-trunk - Bug #10563] system() call hangs if command is too long
       [not found] <redmine.issue-10563.20141202203640@ruby-lang.org>
  2014-12-02 20:36 ` [ruby-core:66648] [ruby-trunk - Bug #10563] [Open] system() call hangs if command is too long lars.benner
@ 2014-12-02 20:46 ` lars.benner
  2014-12-03  1:56 ` [ruby-core:66650] [ruby-trunk - Bug #10563] [Assigned] " usa
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: lars.benner @ 2014-12-02 20:46 UTC (permalink / raw
  To: ruby-core

Issue #10563 has been updated by Lars Benner.


Actually I found this problem, while using rake and I raised another bug for rake first. Perhaps it contains some useful information.

https://github.com/ruby/rake/issues/5

----------------------------------------
Bug #10563: system() call hangs if command is too long
https://bugs.ruby-lang.org/issues/10563#change-50259

* Author: Lars Benner
* Status: Open
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: platform/mingw
* Target version: current: 2.2.0
* ruby -v: ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
In some situations another process, which was started using Kernel::system(), hangs right from the beginning, i.e. the process was started but nothing is actually executed.

On my system this happened, when the single command string passed to system call exceeded 1022 characters.

A very interesting fact is, that this only happens, if the command at the beginning is given with '/' in the path. After I replaced the '/' with '\', everything is working fine.

Please find attached two scripts for reproducing this issue. Just call 'ruby caller.rb' and observe that everything hangs after the command line got to long. After changing the Ruby interpreter in the file. everything works as expected. 






---Files--------------------------------
caller.rb (797 Bytes)
callee.rb (283 Bytes)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:66650] [ruby-trunk - Bug #10563] [Assigned] system() call hangs if command is too long
       [not found] <redmine.issue-10563.20141202203640@ruby-lang.org>
  2014-12-02 20:36 ` [ruby-core:66648] [ruby-trunk - Bug #10563] [Open] system() call hangs if command is too long lars.benner
  2014-12-02 20:46 ` [ruby-core:66649] [ruby-trunk - Bug #10563] " lars.benner
@ 2014-12-03  1:56 ` usa
  2014-12-03  2:18 ` [ruby-core:66652] [ruby-trunk - Bug #10563] " usa
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: usa @ 2014-12-03  1:56 UTC (permalink / raw
  To: ruby-core

Issue #10563 has been updated by Usaku NAKAMURA.

Category changed from platform/mingw to platform/windows
Status changed from Open to Assigned
Assignee changed from Nobuyoshi Nakada to cruby-windows

Thank you for reporting!
We'll fix it.

memo: This is a bug of w32_spawn().

----------------------------------------
Bug #10563: system() call hangs if command is too long
https://bugs.ruby-lang.org/issues/10563#change-50260

* Author: Lars Benner
* Status: Assigned
* Priority: Normal
* Assignee: cruby-windows
* Category: platform/windows
* Target version: current: 2.2.0
* ruby -v: ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
In some situations another process, which was started using Kernel::system(), hangs right from the beginning, i.e. the process was started but nothing is actually executed.

On my system this happened, when the single command string passed to system call exceeded 1022 characters.

A very interesting fact is, that this only happens, if the command at the beginning is given with '/' in the path. After I replaced the '/' with '\', everything is working fine.

Please find attached two scripts for reproducing this issue. Just call 'ruby caller.rb' and observe that everything hangs after the command line got to long. After changing the Ruby interpreter in the file. everything works as expected. 






---Files--------------------------------
caller.rb (797 Bytes)
callee.rb (283 Bytes)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:66652] [ruby-trunk - Bug #10563] system() call hangs if command is too long
       [not found] <redmine.issue-10563.20141202203640@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2014-12-03  1:56 ` [ruby-core:66650] [ruby-trunk - Bug #10563] [Assigned] " usa
@ 2014-12-03  2:18 ` usa
  2014-12-03  2:29 ` [ruby-core:66653] [ruby-trunk - Bug #10563] [Closed] " usa
  2015-03-17 17:43 ` [ruby-core:68548] [Ruby trunk - Bug #10563] " nagachika00
  5 siblings, 0 replies; 6+ messages in thread
From: usa @ 2014-12-03  2:18 UTC (permalink / raw
  To: ruby-core

Issue #10563 has been updated by Usaku NAKAMURA.

Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN to 2.0.0: DONTNEED, 2.1: REQUIRED

----------------------------------------
Bug #10563: system() call hangs if command is too long
https://bugs.ruby-lang.org/issues/10563#change-50262

* Author: Lars Benner
* Status: Assigned
* Priority: Normal
* Assignee: cruby-windows
* Category: platform/windows
* Target version: current: 2.2.0
* ruby -v: ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]
* Backport: 2.0.0: DONTNEED, 2.1: REQUIRED
----------------------------------------
In some situations another process, which was started using Kernel::system(), hangs right from the beginning, i.e. the process was started but nothing is actually executed.

On my system this happened, when the single command string passed to system call exceeded 1022 characters.

A very interesting fact is, that this only happens, if the command at the beginning is given with '/' in the path. After I replaced the '/' with '\', everything is working fine.

Please find attached two scripts for reproducing this issue. Just call 'ruby caller.rb' and observe that everything hangs after the command line got to long. After changing the Ruby interpreter in the file. everything works as expected. 






---Files--------------------------------
caller.rb (797 Bytes)
callee.rb (283 Bytes)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:66653] [ruby-trunk - Bug #10563] [Closed] system() call hangs if command is too long
       [not found] <redmine.issue-10563.20141202203640@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2014-12-03  2:18 ` [ruby-core:66652] [ruby-trunk - Bug #10563] " usa
@ 2014-12-03  2:29 ` usa
  2015-03-17 17:43 ` [ruby-core:68548] [Ruby trunk - Bug #10563] " nagachika00
  5 siblings, 0 replies; 6+ messages in thread
From: usa @ 2014-12-03  2:29 UTC (permalink / raw
  To: ruby-core

Issue #10563 has been updated by Usaku NAKAMURA.

Status changed from Assigned to Closed

fixed at r48690.

----------------------------------------
Bug #10563: system() call hangs if command is too long
https://bugs.ruby-lang.org/issues/10563#change-50263

* Author: Lars Benner
* Status: Closed
* Priority: Normal
* Assignee: cruby-windows
* Category: platform/windows
* Target version: current: 2.2.0
* ruby -v: ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]
* Backport: 2.0.0: DONTNEED, 2.1: REQUIRED
----------------------------------------
In some situations another process, which was started using Kernel::system(), hangs right from the beginning, i.e. the process was started but nothing is actually executed.

On my system this happened, when the single command string passed to system call exceeded 1022 characters.

A very interesting fact is, that this only happens, if the command at the beginning is given with '/' in the path. After I replaced the '/' with '\', everything is working fine.

Please find attached two scripts for reproducing this issue. Just call 'ruby caller.rb' and observe that everything hangs after the command line got to long. After changing the Ruby interpreter in the file. everything works as expected. 






---Files--------------------------------
caller.rb (797 Bytes)
callee.rb (283 Bytes)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:68548] [Ruby trunk - Bug #10563] system() call hangs if command is too long
       [not found] <redmine.issue-10563.20141202203640@ruby-lang.org>
                   ` (4 preceding siblings ...)
  2014-12-03  2:29 ` [ruby-core:66653] [ruby-trunk - Bug #10563] [Closed] " usa
@ 2015-03-17 17:43 ` nagachika00
  5 siblings, 0 replies; 6+ messages in thread
From: nagachika00 @ 2015-03-17 17:43 UTC (permalink / raw
  To: ruby-core

Issue #10563 has been updated by Tomoyuki Chikanaga.

Backport changed from 2.0.0: DONTNEED, 2.1: REQUIRED to 2.0.0: DONTNEED, 2.1: DONE

Backported into `ruby_2_1` branch at r49997.

----------------------------------------
Bug #10563: system() call hangs if command is too long
https://bugs.ruby-lang.org/issues/10563#change-51870

* Author: Lars Benner
* Status: Closed
* Priority: Normal
* Assignee: cruby-windows
* ruby -v: ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]
* Backport: 2.0.0: DONTNEED, 2.1: DONE
----------------------------------------
In some situations another process, which was started using Kernel::system(), hangs right from the beginning, i.e. the process was started but nothing is actually executed.

On my system this happened, when the single command string passed to system call exceeded 1022 characters.

A very interesting fact is, that this only happens, if the command at the beginning is given with '/' in the path. After I replaced the '/' with '\', everything is working fine.

Please find attached two scripts for reproducing this issue. Just call 'ruby caller.rb' and observe that everything hangs after the command line got to long. After changing the Ruby interpreter in the file. everything works as expected. 






---Files--------------------------------
caller.rb (797 Bytes)
callee.rb (283 Bytes)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-03-17 17:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-10563.20141202203640@ruby-lang.org>
2014-12-02 20:36 ` [ruby-core:66648] [ruby-trunk - Bug #10563] [Open] system() call hangs if command is too long lars.benner
2014-12-02 20:46 ` [ruby-core:66649] [ruby-trunk - Bug #10563] " lars.benner
2014-12-03  1:56 ` [ruby-core:66650] [ruby-trunk - Bug #10563] [Assigned] " usa
2014-12-03  2:18 ` [ruby-core:66652] [ruby-trunk - Bug #10563] " usa
2014-12-03  2:29 ` [ruby-core:66653] [ruby-trunk - Bug #10563] [Closed] " usa
2015-03-17 17:43 ` [ruby-core:68548] [Ruby trunk - Bug #10563] " nagachika00

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).