Closed mrb closed 12 years ago
Does it crash every time or only occasionally? What's content of config/initializers/heap_dump.rb?
@Vasfed It crashes every time. I first caused a segfault while attaching with gdb, and then tried it in Ruby to see if there was any difference.
config/initializers/heap_dump.rb
is just an empty class that calls HeapDump.dump
I can provide you with the full output for the crash in either context (gdb or within Rails) if you want, let me know.
Found some 1.9.3-specific segfault, but unsure if it's the cause of subj, please test against current head (if using bundler - gem 'heap_dump', git:'git://github.com/Vasfed/heap_dump.git'
, if not using - suggest doing so, http://gembundler.com/rails23.html)
@Vasfed You got it! Thanks a ton. Closing issue.
Released v0.0.27 with this fix
@Vasfed :+1: Awesome. I can't tell you how helpful this is going to be for me.
@mrb You're welcome. I haven't used it for rails yet, but had for cramp-based - had 2 actions in actual production app, one that runs dump, other - just counts instances of the app's namespace objects (some version of it may be coming in heapdump).
Feel free to share your ideas about making heapdump more handy
@Vasfed Awesome, will do. We'll likely add a protected/authenticated conditional route in our app that let's us run a heap dump when we need it.
Very excited about this project! I know you don't fully support 1.9.3 yet, but maybe this is a relatively minor fix?