--- pmcstat_log.c.orig 2012-04-27 15:50:05.000000000 +0400 +++ pmcstat_log.c 2012-04-27 15:50:56.000000000 +0400 @@ -565,6 +565,8 @@ image->pi_symcount += newsyms; assert(newsyms <= nfuncsyms); + if(image->pi_symcount == 0) + return; /* * Return space to the system if there were duplicates.