Name: memleax Version: 1.1.1 Release: 9 Summary: Memory lead detection tool License: GPLv2 URL: https://github.com/WuBingzheng/memleax Source0: https://github.com/WuBingzheng/memleax/archive/v%{version}.tar.gz#/memleax-%{version}.tar.gz Patch0: 0001-add-loongarch64-support.patch Patch1: 0002-add-riscv64-support.patch Patch2: 0003-add-sw_64-support-not-upstream-modified.patch BuildRequires: make libunwind-devel elfutils-devel gcc %description memleax debugs memory leak of a running process by attaching it. It hooks the target process's invocation of memory allocation and free, and reports the memory blocks which live long enough as memory leak, in real time. The default expire threshold is 10 seconds, however you should always set it by `-e` option according to your scenarios. It is very *convenient* to use, and suitable for production environment. There is no need to recompile the program or restart the target process. You run `memleax` to monitor the target process, wait for the real-time memory leak report, and then kill it (e.g. by Ctrl-C) to stop monitoring. memleax follows new threads, but not forked processes. If you want to debug multiple processes, just run multiple memleax. %prep %setup -q %autosetup -n %{name}-%{version} -p1 %build ./configure make %install make install DESTDIR="%{buildroot}" %pre %preun %post %postun %check %files %license LICENSE %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %changelog * Mon Feb 17 2025 maqi - 1.1.1-9 - add support sw_64 * Tue May 14 2024 wangshuo - 1.1.1-8 - Resolve compilation errors for loongarch64 * Fri Jun 30 2023 zhangxiang - 1.1.1-7 - add riscv64 support * Wed Dec 14 2022 doupengda - 1.1.1-6 - add loongarch64 support * Wed Aug 04 2021 chenyanpanHW - 1.1.1-5 - DESC: delete BuildRequires gdb * Mon Jun 28 2021 wulei - 1.1.1-4 - fix missing gcc * Mon Oct 19 2020 Qingqing Li - fix source0 error * Tue Oct 13 2020 Qingqing Li - update source0 * Sun Mar 29 2020 Wei Xiong - Package init