[Win32utils-devel] win32-process + ruby-breakpoint = strangebehavior

Berger, Daniel Daniel.Berger at qwest.com
Thu Aug 11 16:02:11 EDT 2005


> -----Original Message-----
> From: win32utils-devel-bounces at rubyforge.org 
> [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of 
> Bill Atkins
> Sent: Thursday, August 11, 2005 8:39 AM
> To: win32utils-devel at rubyforge.org
> Subject: [Win32utils-devel] win32-process + ruby-breakpoint = 
> strangebehavior
> 
> 
> I'm getting really strange behavior with win32/process.  
> Here's the code:
> 
> -----
>   require 'win32/process'
>   require_gem 'ruby-breakpoint'
> 
>   x = Process.create :app_name => "ruby bin/run_device.rb 
> devices/terminal_server.rb"
> 
>   puts "done"
>   puts "done"
> 
>   Process.kill 9, x
> 
>   puts "done"
> ------
> 
> Running this code gives me a segfault
> 
> ----
>   C:\development\simulation>ruby ptest.rb
>   done
>   done
>   ptest.rb:9: [BUG] Segmentation fault
>   ruby 1.8.2 (2004-12-25) [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.
> 
>   C:\development\simulation>
> -----
> 
> But if I remove one of the "puts "done"" lines, it works 
> correctly. It seems that if I have two puts's in a row 
> anywhere, I get a segfault when I kill the process.  This 
> only occurs if ruby-breakpoint is loaded.
> 
> This is fairly bizarre.  It's not a severe issue, because I 
> can get by without ruby-breakpoint, but does this happen to 
> anyone else?

I could certainly use a second pair of eyes to look over win32-process
to see what might be causing this.  Heesob?

Regards,

Dan



More information about the win32utils-devel mailing list