Project

General

Profile

Actions

Bug #21502

closed

Segfault with 3.2.8 with frida gem

Added by MatzFan (Brian Cohen) about 9 hours ago. Updated about 4 hours ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:122659]

Description

I've just seen a segfault executing the following code in irb with the frida gem:

$ rbenv versions
* 3.2.8 (set by /home/me/.rbenv/version)
$ gem install frida
Fetching frida-0.1.1.gem
Building native extensions. This could take a while...
frida has been successfully compiled and installed, frida-core is no longer required and can be safely removed.
Successfully installed frida-0.1.1
1 gem installed
$ irb
irb(main):001:0> require 'frida'
=> true
irb(main):002:0> mgr = Frida::DeviceManager.new
=> #<CFrida::DeviceManager:0x00007fd91dbf49a8>
irb(main):003:0> devices = mgr.enumerate_devices
=> 
[#<Device: id="local", name="Local System", type="local">,
...                                                       
irb(main):004:0> device = devices.last
=> #<Device: id="emulator-5554", name="Android Emulator 5554", type="usb">
irb(main):005:0> device.is_lost
=> false
irb(main):006:0> device.enumerate_applications
(irb):6: [BUG] Segmentation fault at 0x0000000000020000
... see attached backtrace

Happy to provide more information about my system setup if required.


Files

segfault_3.2.8 (46.7 KB) segfault_3.2.8 MatzFan (Brian Cohen), 07/06/2025 12:44 PM

Updated by MatzFan (Brian Cohen) about 9 hours ago

Last good release running this code was 3.2.4. Segfault observed in 3.2.5 onwards - see my comment on the gem maintainer's page: https://github.com/hakivvi/frida-ruby/issues/2#issuecomment-3041319068

Updated by jeremyevans0 (Jeremy Evans) about 4 hours ago

  • Status changed from Open to Closed

Reading https://github.com/hakivvi/frida-ruby/issues/2#issuecomment-3042173245, it looks like it was a bug in the gem that got fixed.

Updated by MatzFan (Brian Cohen) about 4 hours ago

You just beat me to it - thanks Jeremy.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0