Re: [PATCH 09/12] perf tools: Fix map reference counting

2019-04-16 Thread Arnaldo Carvalho de Melo
Em Tue, Apr 16, 2019 at 06:01:24PM +0200, Jiri Olsa escreveu: > By calling maps__insert we assume to get 2 references > on the map, which we relese within maps__remove call. > > However if there's already same map name, we currently > don't bump the reference and can crash, like: > > Program

[PATCH 09/12] perf tools: Fix map reference counting

2019-04-16 Thread Jiri Olsa
By calling maps__insert we assume to get 2 references on the map, which we relese within maps__remove call. However if there's already same map name, we currently don't bump the reference and can crash, like: Program received signal SIGABRT, Aborted. 0x775e60f5 in raise () from