Software Tuning, Performance Optimization & Platform Monitoring
Discussion regarding monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform updating.

mlc 3.10 heap corruption

tavianator
Beginner
763 Views

Running mlc 3.10 on Linux aborts due to heap corruption:

$ ./mlc
Intel(R) Memory Latency Checker - v3.10
malloc(): corrupted top size
[1]    132463 IOT instruction (core dumped)  ./mlc

Valgrind complains of an OOB write:

$ valgrind ./mlc --latency_matrix
==132729== Memcheck, a memory error detector
==132729== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==132729== Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info
==132729== Command: ./mlc --latency_matrix
==132729== 
Intel(R) Memory Latency Checker - v3.10
==132729== Invalid write of size 4
==132729==    at 0x41575C: ??? (in /home/tavianator/code/intel/mlc_v3.10/Linux/mlc)
==132729==    by 0x401EE3: ??? (in /home/tavianator/code/intel/mlc_v3.10/Linux/mlc)
==132729==    by 0x48CB78F: (below main) (libc_start_call_main.h:58)
==132729==  Address 0x4ad32cc is 12 bytes after a block of size 1,152 alloc'd
==132729==    at 0x4841888: malloc (vg_replace_malloc.c:381)
==132729==    by 0x4156E5: ??? (in /home/tavianator/code/intel/mlc_v3.10/Linux/mlc)
==132729==    by 0x401EE3: ??? (in /home/tavianator/code/intel/mlc_v3.10/Linux/mlc)
==132729==    by 0x48CB78F: (below main) (libc_start_call_main.h:58)

 

0 Kudos
0 Replies
Reply