Hello, kernel test robot noticed "util/dsos.c:184:8: runtime error: null pointer passed as argument 2, which is declared to never be null" on: commit: 7a9418cf7f05a74cbc9d4c750ee1bfddaa11f121 ("perf dsos: Switch hand crafted code to bsearch()") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master [test failed on linus/master a3e18a540541325a8c8848171f71e0d45ad30b2c] [test failed on linux-next/master 6906a84c482f098d31486df8dc98cead21cce2d0] the issue can be reproduced by below commands: $ sudo make WERROR=0 ARCH= DEBUG=1 EXTRA_CFLAGS='-fno-omit-frame-pointer -fsanitize=undefined -fsanitize=address' $ sudo ./perf record -e 'cpu/branch-instructions/' -- sleep 1 util/dsos.c:184:8: runtime error: null pointer passed as argument 2, which is declared to never be null If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-lkp/202406180932.84be448c-oliver.sang@intel.com -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki