[PATCH] io.c (do_io_advise): raise exception without segfaulting
ruby 2.0.0dev (2012-02-25 trunk 34796) [x86_64-linux]
2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
IO objects (e.g. pipes) may have Qnil for fptr->pathv. Calling
RSTRING_PTR on Qnil is unsafe and causes a segmentation fault.
This issue also affects 1.9.3 and will need to be backported.
- test/ruby/test_io.rb (test_advise_pipe): new test to check io.advise() against anonymous io object don't make crash. made by Eric Wong. [Bug #6081]