https://bugs.kde.org/show_bug.cgi?id=467087

--- Comment #6 from varun.yet...@cohere-technologies.com ---
Thanks Paul.

There seems to be a lot of such objects with small size.
nm -f sysv -e ../bin/cpcc > sym_info.txt
[yeturva@ran6 source]$ cat sym_info.txt | grep "d  |" | wc -l
2415

For reference, one of them is as follows:
aead_des_ede3_cbc_sha1_tls_implicit_iv|00000000059f2cc0|   d  |           
OBJECT|0000000000000048|     |.data.rel.ro

Are you referring to the above?

Regards,
Varun

From: Paul Floyd <bugzilla_nore...@kde.org>
Date: Saturday, March 11, 2023 at 12:44 PM
To: Varun Reddy Yeturu <varun.yet...@cohere-technologies.com>
Subject: [valgrind] [Bug 467087] Unable to start Valgrind due to error (MMAP)
https://bugs.kde.org/show_bug.cgi?id=467087

--- Comment #5 from Paul Floyd <pjfl...@wanadoo.fr> ---
(In reply to varun.yeturu from comment #4)
> Created attachment 157192 [details]
> attachment-229496-0.html
>
> Sure.
> I compile with ā€œ-debug -O0 -gā€ flags.
>
> [yeturva@ran6 source]$ size ../bin/cpcc
>    text        data        bss         dec        hex    filenameTyp
> 87956828            383888                13069709208     13158049924
> 31047e884          ../bin/cpcc

13 Gbytes of BSS, could be the problem

Can you see where you are creating that? It's probably a file static array.

If you run "nm -f sysv -e" on your executable there will be a column with the
size, and look for something that is Class d and Type OBJECT/

Can you reduce the size of that static object?

--
You are receiving this mail because:
You reported the bug.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to