Berger, Daniel
2005-Aug-11 15:56 UTC
[Win32utils-devel] win32-process + ruby-breakpoint = strangebehavior
> -----Original Message----- > From: win32utils-devel-bounces@rubyforge.org > [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of > Bill Atkins > Sent: Thursday, August 11, 2005 8:39 AM > To: win32utils-devel@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
Park Heesob
2005-Aug-11 21:00 UTC
[Win32utils-devel] win32-process + ruby-breakpoint =strangebehavior
Hi,>> -----Original Message----- >> From: win32utils-devel-bounces@rubyforge.org >> [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of >> Bill Atkins >> Sent: Thursday, August 11, 2005 8:39 AM >> To: win32utils-devel@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?
Daniel Berger
2005-Aug-13 18:52 UTC
[Win32utils-devel] win32-process + ruby-breakpoint =strangebehavior
On 8/11/05, Park Heesob <phasis@nownuri.net> wrote:> 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?Interesting. Are you working on some sort of Ruby interface for gmail? Or just on gmail-lite itself? Dan
Park Heesob
2005-Aug-13 20:34 UTC
[Win32utils-devel] win32-process + ruby-breakpoint=strangebehavior
Hi,> On 8/11/05, Park Heesob <phasis@nownuri.net> wrote: > >> 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? > > Interesting. Are you working on some sort of Ruby interface for > gmail? Or just on gmail-lite itself? > > Dan >I think the libgmailer is a libary module, but gmail-lite is an application. I''m working on libgmailer library module not gmail-lite. I found this module is equivalent to Perl''s Mail::Webmail::Gmail module. Regards, Park Heesob
Shashank Date
2005-Aug-13 21:12 UTC
[Win32utils-devel] win32-process + ruby-breakpoint=strangebehavior
Hi Park, Park Heesob wrote:>I think the libgmailer is a libary module, but gmail-lite is an application. >I''m working on libgmailer library module not gmail-lite. > >I found this module is equivalent to Perl''s Mail::Webmail::Gmail module. > >I find this foray of yours very interesting and am wondering what it would take to create the gmail-lite app. My interest stems from the fact that it is written for PDA and mobile devices, which also my current focus. Please keep me (us) informed. I would like to work on the gmail-lite in Ruby. Can I get a snapshot preview of the library somewhere? Thanks, -- Shashank