Skip to content

Commit

Permalink
symbolz: skip un-symbolizable mappings
Browse files Browse the repository at this point in the history
This fixes google#339 by skipping
attempts to symbolize anything from system mappings like [vdso],
[vsyscall], etc.
  • Loading branch information
toddlipcon committed Mar 21, 2018
1 parent a74ae6f commit 6589a7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/symbolz/symbolz.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ func Symbolize(p *profile.Profile, force bool, sources plugin.MappingSources, sy
// Only check for HasFunctions as symbolz only populates function names.
continue
}
// Skip well-known system mappings
if m.Unsymbolizable() {
continue
}
mappingSources := sources[m.File]
if m.BuildID != "" {
mappingSources = append(mappingSources, sources[m.BuildID]...)
Expand Down

0 comments on commit 6589a7f

Please sign in to comment.