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

Park Heesob phasis at nownuri.net
Thu Aug 11 21:06:19 EDT 2005


Hi,


>> -----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]
>>
>
> I could certainly use a second pair of eyes to look over win32-process
> to see what might be causing this.  Heesob?
>
> Regards,
>
> Dan
>

I fixed the bug. it was due to the child_pids array.

Check out the latest CVS version.

Regards,

Park Heesob

PS. I'm working on libgmailer for now . it is almost same as libgmailer for 
PHP
(http://gmail-lite.sourceforge.net/ ).
 It is almost done except for sending message with attachments.
 What do you think about this? It might be useful?








More information about the win32utils-devel mailing list