Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

NeverSayDie will let you rescue from SEGV's and is evil

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 ext
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .autotest
Octocat-spinner-32 .gitignore
Octocat-spinner-32 CHANGELOG.ja.rdoc
Octocat-spinner-32 CHANGELOG.rdoc
Octocat-spinner-32 Manifest.txt
Octocat-spinner-32 README.ja.rdoc
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
README.rdoc

NeverSayDie

DESCRIPTION:

NEVER SAY DIE lets you rescue from segmentation faults. Got a SEGV, don't worry about it anymore! Just rescue an exception and get on with life. Who cares about getting a SEGV anyway? It's just memory. I mean, when I was in school, I didn't need 100% to pass the class. Why should your memory need to be 100% correct to get the job done? A little memory corruption here and there doesn't hurt anyone.

So go for it! Kick back, grab a beer, require the NEVER SAY DIE gem and let your problems go away sometimes!

FEATURES/PROBLEMS:

  • Oh so many problems…

  • Portability…

  • Not solving the root cause..

  • It might not work.

  • Massive security hole

  • Just to name a few

SYNOPSIS:

I will let the (passing) test speak for itself:

assert_raises NeverSayDie do
  NeverSayDie.segv
end

Here is the source of the segv method:

static VALUE segv(VALUE self)
{
  int *ptr = NULL;
  *ptr = 1;

  return self;
}

REQUIREMENTS:

  • libsigsegv

INSTALL:

First, install libsigsegv. If you're on OS X, do this:

$ sudo port install libsigsegv

I'm not sure about other platforms. Then install the gem:

$ sudo gem install neversaydie

LICENSE:

(The MIT License)

Copyright © 2009 Aaron Patterson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Something went wrong with that request. Please try again.