Call cach_init() before get_kcore_dump_loads(), because latter uses cache_search(). Call path is like this : get_kcore_dump_loads() -> process_dump_load() -> vaddr_to_paddr() -> vtop4_x86_64() -> readmem() -> cache_search() Signed-off-by: Pratyush Anand <panand at redhat.com> --- makedumpfile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/makedumpfile.c b/makedumpfile.c index 6942047199de..3b8e9810468d 100644 --- a/makedumpfile.c +++ b/makedumpfile.c @@ -3878,6 +3878,9 @@ initial(void) if (!get_value_for_old_linux()) return FALSE; + if (!is_xen_memory() && !cache_init()) + return FALSE; + if (info->flag_mem_usage && !get_kcore_dump_loads()) return FALSE; @@ -4000,9 +4003,6 @@ out: } } - if (!is_xen_memory() && !cache_init()) - return FALSE; - if (debug_info && !get_machdep_info()) return FALSE; -- 2.9.3