Issue 132893
Summary I compiled it with the fmemory profile option and ran it once to generate the memprof.refraw file. However, the llvm prefdata merge triggered an assertion
Labels new issue
Assignees
Reporter fanju110
       COPTIMIZE     = -O3  -g   -flto -ffast-math -march=raptorlake  -mllvm -vectorize-loops=false -mllvm -vectorize-slp=false   -mllvm -enable-loop-distribute  -funroll-loops -fno-pie -fno-pic  -fmemory-profile=""

   EXTRA_LIBS = -lrt -lpthread -L/home/fyk/jemalloc-dev/lib -L/home/fyk/llvm/llvm19_x86 -L/usr/lib/llvm-14/lib -ldl -ljemalloc 
   EXTRA_LDFLAGS =  -fuse-ld=lld -Wl,--build-id -mllvm=-vectorize-loops=false,--build-id,-mllvm=-vectorize-slp=false

Above are my compilation options

However, I triggered an assertion while processing the profile file

llvm-profdata merge -output=default.memprofdata x86_generate/* --profiled-binary perlbench_s_base.20250321-memory-generate 


llvm-profdata: /home/fyk/llvm-project/llvm/lib/ProfileData/MemProfReader.cpp:408: llvm::Error llvm::memprof::RawMemProfReader::initialize(std::unique_ptr<llvm::MemoryBuffer>): Assertion `Phdr.p_vaddr == (Phdr.p_vaddr & ~(0x1000 - 1U)) && "Expect p_vaddr to always be page aligned"' failed.
llvm-profdata: /home/fyk/llvm-project/llvm/lib/ProfileData/MemProfReader.cpp:408: llvm::Error llvm::memprof::RawMemProfReader::initialize(std::unique_ptr<llvm::MemoryBuffer>): Assertion `Phdr.p_vaddr == (Phdr.p_vaddr & ~(0x1000 - 1U)) && "Expect p_vaddr to always be page aligned"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
llvm-profdata: /home/fyk/llvm-project/llvm/lib/ProfileData/MemProfReader.cpp:408: llvm::Error llvm::memprof::RawMemProfReader::initialize(std::unique_ptr<llvm::MemoryBuffer>): Assertion `Phdr.p_vaddr == (Phdr.p_vaddr & ~(0x1000 - 1U)) && "Expect p_vaddr to always be page aligned"' failed.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to