Project

General

Profile

Actions

Bug #8456

closed

Sugfault in Ruby Head

Added by sam.saffron (Sam Saffron) almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby-head
Backport:
[ruby-core:55182]

Description

Was just going to try out the allocation tracing snazzy feature and got this:

https://gist.github.com/SamSaffron/5659655

To repro:

  1. Grab Discourse from https://github.com/discourse/discourse
  2. gem install bundler
  3. bundle
Actions #1

Updated by ko1 (Koichi Sasada) almost 11 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r40974.
Sam, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • ext/objspace/object_tracing.c: fix a bug reported at
    "[ruby-core:55182] [ruby-trunk - Bug #8456][Open] Sugfault in Ruby Head"
    Care about the case TracePoint#path #=> `nil'.
  • ext/objspace/object_tracing.c: add two new methods:
  • ObjectSpace.allocation_class_path(o)
  • ObjectSpace.allocation_method_id(o)
    They are not useful for Object.new because they are always
    "Class" and :new.
    To trace more useful information, we need to maintain call-tree
    using call/return hooks, which is implemented by
    ll-prof http://sunagae.net/wiki/doku.php?id=software:llprof
  • test/objspace/test_objspace.rb: add a test.

Updated by ko1 (Koichi Sasada) almost 11 years ago

Thank you for trying.
If you have feedback about this feature, please let us know.

Actions

Also available in: Atom PDF

Like0
Like0Like0