[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] segfault4r-0.0.0

RubyTalk@gmail.com

4/22/2007 7:28:00 PM

Segfault4r is a module that does nothing but cause a segfault. It can
be gem installed, but it was only tested on 64 bit suse. I created
this to start getting back in to c, and learn some of ruby's c api. I
am told there could be uses for it.


Example:

require "rubygems"
require "segfault"

Segfault.now
puts "Forgive me matz."



Project pages:
http://rubyforge.org/projects/s...
http://raa.ruby-lang.org/project/s...

Read it:
http://rubyforge.org/docman/view.php/3491/925/...


Let know if there are any comments or questions.

Stephen Becker IV
sbeckeriv #gmail#com

3 Answers

Joel VanderWerf

4/22/2007 7:49:00 PM

0

RubyTalk@gmail.com wrote:
> Segfault4r is a module that does nothing but cause a segfault. It can
> be gem installed, but it was only tested on 64 bit suse. I created
> this to start getting back in to c, and learn some of ruby's c api. I
> am told there could be uses for it.
>
>
> Example:
>
> require "rubygems"
> require "segfault"
>
> Segfault.now
> puts "Forgive me matz."

Why not just this?

Process.kill("SEGV", Process.pid)

--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

Brian Candler

4/22/2007 7:50:00 PM

0

On Mon, Apr 23, 2007 at 04:27:35AM +0900, RubyTalk@gmail.com wrote:
> Segfault4r is a module that does nothing but cause a segfault.

I guess this must be a very tiny module?

irb(main):001:0> Process.kill 'SEGV', 0
(irb):1: [BUG] Segmentation fault
ruby 1.8.4 (2005-12-24) [i486-linux]

Aborted

Ara.T.Howard

4/23/2007 3:01:00 AM

0