Opened 15 years ago

Last modified 7 years ago

#88 closed defect (Fixed)

please free all memory before shutting down

Reported by: weasel Owned by:
Priority: Low Milestone:
Component: Core Tor/Tor Version:
Severity: Keywords:
Cc: weasel Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

I've been playing with dmalloc, a library that checks for leaks (and other stuff).
It's a lot lighter than for instance valgrind, but unfortunately Tor does not
play very nice with it.

It would be great if you could clean up all the memory you think you are using
before shutdown, so that tools like dmalloc can tell you what you missed.

For instance now dmalloc gives me
1107411810: 73044: total-size count source
1107411810: 73044: 81920 5 buffers.c:37
1107411810: 73044: 65360 1634 routerparse.c:1066
1107411810: 73044: 36864 9 buffers.c:112
1107411810: 73044: 31234 1634 routerparse.c:1068
1107411810: 73044: 17568 122 routerparse.c:804
1107411810: 73044: 6528 24 aes.c:74
1107411810: 73044: 6454 1 dirserv.c:789
1107411810: 73044: 6452 1 torgzip.c:111
1107411810: 73044: 6144 24 container.c:45
1107411810: 73044: 4800 122 routerparse.c:908
1107411810: 73044: 3920 245 crypto.c:177
...

after I shutdown tor. This isn't very useful yet, but it could be :)

[Automatically added by flyspray2trac: Operating System: All]

Child Tickets

Change History (2)

comment:1 Changed 15 years ago by nickm

flyspray2trac: bug closed.
Okay, tor_free_all now releases most (all?) of the memory that Tor is holding before shutdown.

comment:2 Changed 7 years ago by nickm

Component: Tor ClientTor
Note: See TracTickets for help on using tickets.