Forum: Ruby segfault4r-0.0.0

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Dedb38b3571b323b77bc9b221e940172?d=identicon&s=25 RubyTalk@gmail.com (Guest)
on 2007-04-22 21:28
(Received via mailing list)
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/segfault4r/
http://raa.ruby-lang.org/project/segfault4r/

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


Let know if there are any comments or questions.

Stephen Becker IV
sbeckeriv #gmail#com
47b1910084592eb77a032bc7d8d1a84e?d=identicon&s=25 Joel VanderWerf (Guest)
on 2007-04-22 21:49
(Received via mailing list)
RubyTalk@gmail.com wrote:
>
> Segfault.now
> puts "Forgive me matz."

Why not just this?

Process.kill("SEGV", Process.pid)
753dcb78b3a3651127665da4bed3c782?d=identicon&s=25 Brian Candler (Guest)
on 2007-04-22 21:51
(Received via mailing list)
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
Cb48ca5059faf7409a5ab3745a964696?d=identicon&s=25 unknown (Guest)
on 2007-04-23 05:01
(Received via mailing list)
On Mon, 23 Apr 2007, RubyTalk@gmail.com wrote:

>
> Segfault.now
> puts "Forgive me matz."

awesome.  thanks!

-a
This topic is locked and can not be replied to.