curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Fewer mallocs is better, episode #47

From: Timothe Litt <litt_at_acm.org>
Date: Thu, 3 Feb 2022 21:10:12 -0500


On 03-Feb-22 21:02, Henrik Holst via curl-library wrote:
> problems is that ltrace produces zero output, if I compile curl with
> --no-pie then ltrace produces some output but not a single strlen for
> some reason so I gave up on that and found uftrace instead which works
> but only shows which functions that are called and not the arguments.
>
> /HH
>
Best bet is to compile with static libraries, preferably with -O0 -g,
and use gdb.

The string functions may be inlined; gdb will do better than ltrace. 
And gdb lets you print any helpful variable in scope...

Timothe Litt
ACM Distinguished Engineer
--------------------------
This communication may not represent the ACM or my employer's views,
if any, on the matters discussed.





-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2022-02-04