{"action":"created","issue":{"url":"https://api.github.com/repos/google/pprof/issues/432","repository_url":"https://api.github.com/repos/google/pprof","labels_url":"https://api.github.com/repos/google/pprof/issues/432/labels{/name}","comments_url":"https://api.github.com/repos/google/pprof/issues/432/comments","events_url":"https://api.github.com/repos/google/pprof/issues/432/events","html_url":"https://github.com/google/pprof/issues/432","id":374694056,"node_id":"MDU6SXNzdWUzNzQ2OTQwNTY=","number":432,"title":"pprof: problem fetching source profiles: inconsistent samples type count: 2 != 4","user":{"login":"jmarantz","id":1942589,"node_id":"MDQ6VXNlcjE5NDI1ODk=","avatar_url":"https://avatars3.githubusercontent.com/u/1942589?v=4","gravatar_id":"","url":"https://api.github.com/users/jmarantz","html_url":"https://github.com/jmarantz","followers_url":"https://api.github.com/users/jmarantz/followers","following_url":"https://api.github.com/users/jmarantz/following{/other_user}","gists_url":"https://api.github.com/users/jmarantz/gists{/gist_id}","starred_url":"https://api.github.com/users/jmarantz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmarantz/subscriptions","organizations_url":"https://api.github.com/users/jmarantz/orgs","repos_url":"https://api.github.com/users/jmarantz/repos","events_url":"https://api.github.com/users/jmarantz/events{/privacy}","received_events_url":"https://api.github.com/users/jmarantz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-27T22:09:51Z","updated_at":"2018-10-28T17:37:08Z","closed_at":null,"author_association":"NONE","body":"Please answer these questions before submitting your issue. Thanks!\r\n\r\n### What version of pprof are you using?\r\n\r\n```\r\npprof\r\nBuilt on Oct 25 2018 01:08:44 (1540454924)\r\nBuilt by cloud-dev-shared-releaser@oqfl3-v6.prod.google.com:/google/src/files/218645428/depot/branches/pprof_release_branch/218638946.1/OVERLAY_READONLY/google3\r\nBuilt as //perftools/profiles:pprof\r\nBuilt from changelist 218645428 with baseline 218645428 with version map map 0 { // } in a mint client based on //depot/branches/pprof_release_branch/218638946.1/google3\r\nBuild label: pprof_20181025_00_RC00\r\nBuild tool: Blaze, release blaze-2018.10.17-3 (mainline @217419960)\r\nBuild target blaze-out/k8-opt/bin/perftools/profiles/pprof\r\nBuilt with --verifiable=true\r\nBuild FDO type: plain\r\nBuild LTO type: none\r\nNo MPM version info\r\n```\r\n\r\nIf you are using pprof via `go tool pprof`, what's your `go env` output?\r\nIf you run pprof from GitHub, what's the Git revision?\r\n\r\n--> Neither: it might have been pre-installed on my version of rodete.\r\n\r\n### What operating system and processor architecture are you using?\r\n4.17.0-3rodete2-amd64 #1 SMP Debian 4.17.17-1rodete2 (2018-08-28) x86_64 GNU/Linux\r\nIntel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz\r\n\r\n### What did you do?\r\nI was getting data that didn't look right from a C++ program, so I tried to change the sampling frequency by setting `HEAP_PROFILE_TIME_INTERVAL=10` when running my program. I also tried an interval of `2`. Now when I run:\r\n```\r\npprof -http=localhost:9999 $envoy \"$out_prefix\"*\r\n```\r\n\r\nIf possible, provide a recipe for reproducing the error.\r\n\r\n--> this is possible but it involves building https://github.com/envoyproxy/envoy which has a complex build process.\r\n\r\nAttaching a profile you are trying to analyze is good.\r\n --> working on it\r\n\r\n### What did you expect to see?\r\nchrome window showing memory profile. I do get this when I don't specify the time interval. However then I get data that I don't believe. Specifically I think I'm only seeing a small number of the allocations I expect.\r\n\r\n### What did you see instead?\r\n```\r\npprof: problem fetching source profiles: inconsistent samples type count: 2 != 4\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/google/pprof/issues/comments/433725382","html_url":"https://github.com/google/pprof/issues/432#issuecomment-433725382","issue_url":"https://api.github.com/repos/google/pprof/issues/432","id":433725382,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzcyNTM4Mg==","user":{"login":"aalexand","id":1519040,"node_id":"MDQ6VXNlcjE1MTkwNDA=","avatar_url":"https://avatars1.githubusercontent.com/u/1519040?v=4","gravatar_id":"","url":"https://api.github.com/users/aalexand","html_url":"https://github.com/aalexand","followers_url":"https://api.github.com/users/aalexand/followers","following_url":"https://api.github.com/users/aalexand/following{/other_user}","gists_url":"https://api.github.com/users/aalexand/gists{/gist_id}","starred_url":"https://api.github.com/users/aalexand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aalexand/subscriptions","organizations_url":"https://api.github.com/users/aalexand/orgs","repos_url":"https://api.github.com/users/aalexand/repos","events_url":"https://api.github.com/users/aalexand/events{/privacy}","received_events_url":"https://api.github.com/users/aalexand/received_events","type":"User","site_admin":false},"created_at":"2018-10-28T17:37:08Z","updated_at":"2018-10-28T17:37:08Z","author_association":"COLLABORATOR","body":"Yes I think the theory was wrong. Looks like pprof from this repo does think that the first profile has 2 metrics only:\r\n\r\n```\r\n$ pprof -tags -sample_index 5 envoy.hprof.0001.heap \r\npprof: sample_index 5 is outside the range [0..1]\r\n\r\n$ pprof -tags -sample_index 5 envoy.hprof.0002.heap \r\npprof: sample_index 5 is outside the range [0..3]\r\n\r\n$ pprof -tags -sample_index 5 envoy.hprof.0003.heap \r\npprof: sample_index 5 is outside the range [0..3]\r\n\r\n$ pprof -tags -sample_index 5 envoy.hprof.0004.heap \r\npprof: sample_index 5 is outside the range [0..3]\r\n```\r\n\r\nAs a workaround, try removing the 0001 file, it has smaller size and just a single sample (you can view the file using a text editor, it's plain text format if you are curious).\r\n\r\nI'll take a look at why pprof thinks the first profile has only 2 metrics."}}
{"actor":{"display_login":"aalexand"}}