Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Defects related to signal usage in Ruby 1.9 implementation

Reply
Thread Tools

Defects related to signal usage in Ruby 1.9 implementation

 
 
Chirag Mistry
Guest
Posts: n/a
 
      11-29-2007
Hi

We have study the code of yarv (Ruby 1.9 implementation) and as per our
understanding there are few defects related to signal usage in Ruby 1.9
implementation. It would be better if all those defects are fixed.

1. In file trunk/signal.c, at line number 788:
SIGVTALRM seems a reserved signal in the ruby interpreter as per
implementation of trap function of Signal module. But, we did not find
any reference related with usage of this signal. In earlier versions of
ruby, SIGVTALRM was used to implement cooperative multitasking (user
space multithreading) and this signal was reserved for proper
functioning of Thread module. So in Ruby 1.9, SIGVTALRM is not used any
more. Empty signal handler is installed for SIGVTALRM in
Init_native_thread() function.

2. In file trunk/eval.c, at line number 144:
In ruby_finalize_1 function, signal handler SIG_DFL is installed for
SIGINT signal. It gets called automatically when ruby interpreter is
unloaded (normally or abnormally).
It may create problem when ruby interpreter is embedded in a process for
a limited period of time. Because ruby_finalize_1 sets signal handler
for SIGINT to SIG_DFL without checking previously installed signal
handler.
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Queries regarding signal usage in Ruby 1.9 implementation Chirag Mistry Ruby 0 12-04-2007 01:49 PM
Kill Bill Vol 1, audio defects? Joe McGuckin DVD Video 12 06-15-2004 08:59 PM
Participate in short survey on Ruby defects! Robert Feldt Ruby 0 05-16-2004 10:17 PM
Re: Infinifilm dual format practice is lame, and causes defects New Line is STUPID for doing it that way. Pug Fugley DVD Video 1 08-08-2003 01:17 AM
Re: How common are small surface defects on blank DVD-R media? Will Dumes DVD Video 1 07-27-2003 07:07 PM



Advertisments