Running this program: require ''win32/open3'' i, o, e, pid = Open3.popen3("c:/ruby/bin/ruby.exe -e\"sleep 10\"") i.close Gives this result: C:\_co\source\build\web\temp>ruby t.rb t.rb:5: [BUG] Segmentation fault ruby 1.8.2 (2004-06-29) [i386-mswin32] This application has requested the Runtime to terminate it in an unusual way. Please contact the application''s support team for more information. Closing any of the IO''s seems to have this result. Ideas? -- Nathaniel <:((>< Terralien, Inc.
> Nathaniel Talbott wrote:> Running this program:> require ''win32/open3'' > i, o, e, pid = Open3.popen3("c:/ruby/bin/ruby.exe-e\"sleep 10\"")> i.close> Gives this result:> C:\_co\source\build\web\temp>ruby t.rb > t.rb:5: [BUG] Segmentation fault > ruby 1.8.2 (2004-06-29) [i386-mswin32]> This application has requested the Runtime toterminate it in an unusual way.> Please contact the application''s support team formore information.>Closing any of the IO''s seems to have this result.>Ideas?I cannot duplicate this error with MS V++ 7.0 on Windows XP Pro, SP2. Can you please provide more information, including your platform, SP number and compiler? Thanks. Dan __________________________________ Do you Yahoo!? Yahoo! Sports - Sign up for Fantasy Baseball. http://baseball.fantasysports.yahoo.com/
On Tue, 1 Mar 2005 16:21:16 -0800 (PST), Daniel Berger <djberg96@yahoo.com> wrote:> I cannot duplicate this error with MS V++ 7.0 on > Windows XP Pro, SP2. Can you please provide more > information, including your platform, SP number and > compiler?Sure. My platform is Windows XP Pro, SP2. Ruby is an older version of the One-Click installer (ruby 1.8.2 (2004-06-29) [i386-mswin32]). I''m using the open3.so binary from the 0.0.2 win32-utils installer. It may be that I just need a Ruby upgrade, which is something that I know I need to get around to eventually. Thanks -- Nathaniel <:((><
> -----Original Message----- > From: win32utils-devel-bounces@rubyforge.org > [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of > Nathaniel Talbott > Sent: Wednesday, March 02, 2005 9:59 AM > To: Development and ideas for win32utils projects > Subject: Re: [Win32utils-devel] Re: Open3.popen3 bug > > > On Tue, 1 Mar 2005 16:21:16 -0800 (PST), Daniel Berger > <djberg96@yahoo.com> wrote: > > > I cannot duplicate this error with MS V++ 7.0 on > > Windows XP Pro, SP2. Can you please provide more information, > > including your platform, SP number and compiler? > > Sure. My platform is Windows XP Pro, SP2. Ruby is an older > version of the One-Click installer (ruby 1.8.2 (2004-06-29) > [i386-mswin32]). I''m using the open3.so binary from the 0.0.2 > win32-utils installer. > > It may be that I just need a Ruby upgrade, which is something > that I know I need to get around to eventually.Yes, I definitely recommend upgrading. If nothing else, the Win32OLE library has some crucial bug fixes in the later release that I don''t think are in your version. Please upgrade and let us know if that fixes the problem. Thanks. Dan
Berger, Daniel wrote:> >>-----Original Message----- >>From: win32utils-devel-bounces@rubyforge.org >>[mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of >>Nathaniel Talbott >>Sent: Wednesday, March 02, 2005 9:59 AM >>To: Development and ideas for win32utils projects >>Subject: Re: [Win32utils-devel] Re: Open3.popen3 bug >> >> >>On Tue, 1 Mar 2005 16:21:16 -0800 (PST), Daniel Berger >><djberg96@yahoo.com> wrote: >> >> >>>I cannot duplicate this error with MS V++ 7.0 on >>>Windows XP Pro, SP2. Can you please provide more information, >>>including your platform, SP number and compiler? >> >>Sure. My platform is Windows XP Pro, SP2. Ruby is an older >>version of the One-Click installer (ruby 1.8.2 (2004-06-29) >>[i386-mswin32]). I''m using the open3.so binary from the 0.0.2 >>win32-utils installer. >> >>It may be that I just need a Ruby upgrade, which is something >>that I know I need to get around to eventually. > > > Yes, I definitely recommend upgrading. If nothing else, the Win32OLE > library has some crucial bug fixes in the later release that I don''t > think are in your version. > > Please upgrade and let us know if that fixes the problem. >I get the same problem that Nathaniel Talbott described on my Windows 2000, SP4 box with ruby 1.8.2 (2004-12-25) [i386-mswin32]. I have downloaded and installed latest open3.so file also, and compiled from source using VC6++. My guess is a VC version descrepancy? Zach
On 5/26/05, Zach Dennis <zdennis@mktec.com> wrote:> I get the same problem that Nathaniel Talbott described on my Windows > 2000, SP4 box with ruby 1.8.2 (2004-12-25) [i386-mswin32]. > > I have downloaded and installed latest open3.so file also, and compiled > from source using VC6++. My guess is a VC version descrepancy?Could be, since I ended up recompiling everything (including Ruby) using VC7, which fixed it for me. -- Nathaniel <:((><
Possibly Parallel Threads
- Open3.popen3 oddity
- [ win32utils-Bugs-20455 ] win32-open3: crashes after 170 popen3 operations
- Problem with win32-open3 and net-ping
- [ win32utils-Feature Requests-3502 ] Allow win32-open3 to take a block
- [ win32utils-Patches-4603 ] [open3] set $? and return Process::Status with block call