PennMUSH Community

Ticket #7372 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

More memory leaks

Reported by: raevnos Assigned to: devteam
Priority: minor Milestone:
Keywords: Cc:
Visibility: Public

Description

OS X comes with a bunch of memory allocation debugging tools. Attached is the output for a leak detector run after startup of a small database.

There appears to be several small leaks in the flags code, triggered whenever a flag or power is added. There's also something in the chunk code.

(There's a more general purpose GUI tool that I can't get to work. You're supposed to be able to link an executable with a mallocdebug library. launch it and then attach the tool. It's not working for me for some reason. The command-line tools work fine, but they don't have as many options.)

Attachments

leaks.txt (38.1 kB) - added by raevnos on 06/13/07 20:25:33.
leaks output

Change History

06/13/07 20:25:33 changed by raevnos

  • attachment leaks.txt added.

leaks output

06/14/07 13:42:28 changed by raevnos

I've fixed all the ones I could find with the leaks program, except for 2 in the huffman compression code. And I haven't figured out what triggers the process_expression() leak mentioned in another ticket.

Examples of what I found:

One I introduced in the last pl in regexp_match_case_r(). Every time a #lambda is used. When flags are loaded from a database file. When objects, rooms and exits are created. In SSL initialization.

(At least most of these are small.)

memcheck reporting is much smarter now, too.

06/17/07 14:07:10 changed by raevnos

  • status changed from new to closed.
  • resolution set to fixed.