GNU bug report logs - #54194
Memory Leak on Fedora Machine

Previous Next

Package: grep;

Reported by: Mahyar Mirrashed <mirrashm <at> myumanitoba.ca>

Date: Mon, 28 Feb 2022 08:16:07 UTC

Severity: normal

Tags: moreinfo

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mahyar Mirrashed <mirrashm <at> myumanitoba.ca>
To: bug-grep <at> gnu.org
Subject: Memory Leak on Fedora Machine
Date: Sun, 27 Feb 2022 23:34:07 -0600
[Message part 1 (text/plain, inline)]
Hi there,

I was implementing a simplistic shell script parser for fun in C. When
profiling with valgrind with --trace-children=yes, I accidentally profiled
`grep` and noticed that there was over 110KB of memory leakage.

I am running grep v3.6 which is the most recent according to `dnf` on
Fedora Linux 35 (KDE Plasma) x86_64 with kernel 5.16.9-200

Thinking that it was because of whatever came with Fedora, I tried
compiling from source but the same memory leakage persisted.

The line that I was profiling was
cat /proc/self/status | grep nonvol > nonvoluntaryswitches.txt

Regards,
Mahyar
[Message part 2 (text/html, inline)]

This bug report was last modified 3 years and 170 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.