Opened 4 years ago

Closed 2 years ago

#17925 closed task (wontfix)

Investigate memory consumption of hardened Tor Browser builds

Reported by: gk Owned by: tbb-team
Priority: Medium Milestone:
Component: Applications/Tor Browser Version:
Severity: Normal Keywords: tbb-hardened
Cc: qbi Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


ASan needs a lot of memory. But apart from that it seems even closing tabs or browser windows does not reduce the memory footprint of hardened builds. Rather, the memory consumption is growing and growing. We should try to determine if that is an ASan "feature" or whether we have real memory leaks that need to get fixed.

Child Tickets

Change History (3)

comment:1 Changed 4 years ago by qbi

Cc: qbi added

comment:2 Changed 4 years ago by yawning

Part of it is most definitely a feature.

Memory that's freed is not immediately released back to the system, but instead is put into a quarantine list to allow catching use-after-free errors. As far as I can tell, the default quarantine size with our current hardened build is 256 MiB.

Updating to a newer GCC will set this to -1 per the documentation, which I assume will lead to even more hilarity. The quarantine size is runtime tunable, though the option name has changed between what we are currently building with, and what the documentation describes.

comment:3 Changed 2 years ago by gk

Resolution: wontfix
Status: newclosed

Nothing to fix here anymore.

Note: See TracTickets for help on using tickets.