From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 2A54419C026F for ; Thu, 19 Nov 2015 15:09:51 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 38479B5D8DA for ; Thu, 19 Nov 2015 15:40:35 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 7F4C618CC818 for ; Thu, 19 Nov 2015 15:40:35 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 4956712046A; Thu, 19 Nov 2015 15:40:34 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o2.heroku.sendgrid.net (o2.heroku.sendgrid.net [67.228.50.55]) by neon.ruby-lang.org (Postfix) with ESMTPS id 31960120449 for ; Thu, 19 Nov 2015 15:40:29 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=uXYY9LRy1Y6S2yuTjtD4cqZ5ygQ=; b=zytBWRQgrwkzsWrDyh AqbHVPxSHk2wWFPHmGDO86HD3ZXykCkAuoU25z3YUQDjtguCGWM8pB1zrMSmnXR9 0PsFonajoBRuyhtzsWVrnS9/e8/JDqqwaBGhAo2UjPCK6D+z0wKyvLV8URDYFsc0 YNkk3XNewjABndvEzHBR97y/M= Received: by filter0534p1mdw1.sendgrid.net with SMTP id filter0534p1mdw1.4904.564D6ED84B 2015-11-19 06:40:24.588924138 +0000 UTC Received: from herokuapp.com (ec2-54-158-213-40.compute-1.amazonaws.com [54.158.213.40]) by ismtpd0006p1iad1.sendgrid.net (SG) with ESMTP id 3Fz5CHr1T1qdMboKQDatHA for ; Thu, 19 Nov 2015 06:40:24.799 +0000 (UTC) Date: Thu, 19 Nov 2015 06:40:24 +0000 From: ko1@atdot.net To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 46233 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11593 X-Redmine-Issue-Author: gazay X-Redmine-Issue-Assignee: ko1 X-Redmine-Sender: ko1 X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS5P0UCudUH/W/3Azcd2i5cJfWbIXNwX38IW+K FXmXNgfojBFshgMw3IceBBJoKaENDfihzlaf6GBduqfrZXacpC4LfHrcle9ngFaOmz+CitvNAlhVlm YG8m0AWdpgc6rzmSJ8p5c0JFygLC8Eqrakt6 X-SendGrid-Contentd-ID: {"test_id":"1447915225"} X-ML-Name: ruby-core X-Mail-Count: 71570 Subject: [ruby-core:71570] [Ruby trunk - Bug #11593] Is it possible that ObjectSpace.dump_all catch dead objects? X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #11593 has been updated by Koichi Sasada. It can be a bug of object traversing API. It is not well tested. Do you have any script I can try? @tmm1 do you have any idea? Thanks, Koichi ---------------------------------------- Bug #11593: Is it possible that ObjectSpace.dump_all catch dead objects? https://bugs.ruby-lang.org/issues/11593#change-54951 * Author: Alex Gaziev * Status: Open * Priority: Normal * Assignee: Koichi Sasada * ruby -v: 2.2.3p173 * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- Koichi, can you please help. There are lines in a dump that are not referenced by anyone else. And these are not ROOTs. For example, I'm looking in my dump by address of object and there is no other objects which have references to this object: ``` $ ag 0x7fc4adc55a20 dump.json 1812949:{"address":"0x7fc4adc55a20", "type":"DATA", "class":"0xaf6c70", "struct":"proc", "references":["0x7fc4adc55a48", "0x7fc504140390", "0x7fc4adc55a20", "0x7fc5041404d0"], "memsize":104} ``` How can it be? Is it a dead object who got in a dump or am I missing something? -- https://bugs.ruby-lang.org/