[Ruby] Segfo Ruby in 2 lines

less than 1 minute read

I heard that it’s popular, so I tried it with Ruby

require'fiddle'
Fiddle::Pointer[0].ptr

One liner

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

I don’t really understand why this is a segfo…