Make Ruby segfault in two lines

I heard that it is popular, so I tried it with Ruby

require 'fiddle'

One liner

ruby -r fiddle -e 'Fiddle::Pointer[0].ptr'

I don't really understand why this is a segfault ...

Recommended Posts

Make Ruby segfault in two lines
Let Java segfault in 6 lines
Make bubble sort and selection sort in Ruby
Class in Ruby
Heavy in Ruby! ??
Make Blackjack in Java
About eval in Ruby
Output triangle in Ruby
Variable type in ruby
Fast popcount in Ruby
I made an interpreter (compiler?) With about 80 lines in Ruby.
ABC177 --solving E in Ruby
Implemented XPath 1.0 parser in Ruby
Read design patterns in Ruby
Refactoring: Make Blackjack in Java
Update Ruby in Unicorn environment
Integer unified into Integer in Ruby 2.4
[Ruby] Exception handling in functions
Use ruby variables in javascript.
About regular expressions in Ruby
Birthday attack calculation in Ruby
Judgment of fractions in Ruby
Find Roman numerals in Ruby
Try using gRPC in Ruby
Make html available in Vapor
[Ruby] Find numbers in arrays
NCk mod p in Ruby
Chinese Remainder Theorem in Ruby
I tried to make Numeron which is not good in Ruby