Closed
Bug 266986
Opened 20 years ago
Closed 13 years ago
system font code leaks pango font objects
Categories
(Core Graveyard :: GFX: Gtk, defect, P2)
Core Graveyard
GFX: Gtk
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.8alpha5
People
(Reporter: andrew.tong, Assigned: dbaron)
Details
(Keywords: memory-leak)
Attachments
(1 file)
|
749 bytes,
patch
|
bryner
:
review+
bryner
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040809 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) I found memory leak in xft in mozilla1.4 on sparc. I use libumem.so and mdb on solaris to detect memory leak. You can visit this page for more detail for libumem.so: http://www.unixville.com/?q=node/view/85 236400 bytes for 2955 allocations with data size 80: libumem.so.1`umem_cache_alloc+0x13c libumem.so.1`umem_alloc+0x60 libumem.so.1`malloc+0x28 libglib-2.0.so.0.400.1`g_malloc+0x18 libglib-2.0.so.0.400.1`g_strdup+0x1c libpangox-1.0.so.0.400.1`pango_x_insert_font+0x74 libpangox-1.0.so.0.400.1`pango_x_font_map_for_display+0x154 libgfx_gtk.so`void xlfd_from_pango_font_description+0x88 libgfx_gtk.so`unsigned nsSystemFontsGTK::GetSystemFontInfoconst+0xb8 libgfx_gtk.so`nsSystemFontsGTK::nsSystemFontsGTK #Nvariant 1+0x16c libgfx_gtk.so`unsigned nsDeviceContextGTK::GetSystemFontconst+0x44 libgklayout.so`void SetFont+0x278 libgklayout.so`const nsStyleStruct*nsRuleNode::ComputeFontData+0x460 libgklayout.so`const nsStyleStruct*nsRuleNode::WalkRuleTree+0x2f4 libgklayout.so`const nsStyleStruct*nsRuleNode::GetFontData+0x70 brian.lu@sun.com 10/29/04 09:35 GMT Reproducible: Always Steps to Reproduce: 1. $ LD_PRELAD=libumem.so $ export LD_PRELOAD $ UMEM_DEBUG=default $ export UMEM_DEBUG $ mdb ./mozilla-bin >::run visit web page: http://s1lab71.japan/memleak/memoryleak.html close mozilla >::umausers Then you can see some memory leak informations.
| Reporter | ||
Updated•20 years ago
|
Severity: normal → major
OS: Linux → Solaris
Summary: memory leak → memory leak
[Environment] SunOS cycling 5.10 s10_67 sun4u sparc SUNW,Sun-Blade-100 Cinnabar build 20 [Steps to reproduce] 1.start mozilla at client 2.go through Menu->Edit->Preference->Mail and Newsgroups->Return Receipts 3.check "Never send a return receipt" but not save 4.check "Allow return reciepts for some messages" [Expected Result] three dropdown lists for different cases can be selected [Actually Result] three dropdown lists are all grayed and disabled nancy.hu@sun.com 10/20/04 07:58 GMT
sorry, I post the message in a wrong window, Please ignore the above messages
| Assignee | ||
Comment 3•20 years ago
|
||
I'd guess that we're supposed to do |g_object_unref(fontmap)|, but I haven't checked.
| Assignee | ||
Comment 4•20 years ago
|
||
But according to the source code we're not.
| Assignee | ||
Comment 5•20 years ago
|
||
not yet tested. Isn't it wonderful that I have to read the source code for pango to see which functions ref and which don't?
| Assignee | ||
Comment 6•20 years ago
|
||
Taking, although it's worth noting that the actual leak reported may not be fixed since it's stored by pango in a global variable, and we may not call whatever causes what's in that global variable to be freed.
Assignee: blizzard → dbaron
Severity: major → normal
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: mlk
OS: Solaris → All
Priority: -- → P2
Hardware: PC → All
Summary: memory leak → system font code leaks pango font objects
Whiteboard: [patch]
Target Milestone: --- → mozilla1.8alpha5
| Assignee | ||
Updated•20 years ago
|
Attachment #164423 -
Flags: superreview?(bryner)
Attachment #164423 -
Flags: review?(blizzard)
Updated•20 years ago
|
Attachment #164423 -
Flags: superreview?(bryner) → superreview+
| Reporter | ||
Comment 7•20 years ago
|
||
The memory leak exists after patching mozilla with patch above(id=164423).
| Assignee | ||
Updated•20 years ago
|
Attachment #164423 -
Flags: review?(blizzard) → review?(bryner)
Updated•20 years ago
|
Attachment #164423 -
Flags: review?(bryner) → review+
| Assignee | ||
Updated•20 years ago
|
Attachment #164423 -
Attachment description: patch → patch (checked in to trunk, 2004-12-17 12:36 -0800)
| Assignee | ||
Updated•20 years ago
|
Whiteboard: [patch]
Comment 8•17 years ago
|
||
gfx/src/gtk/ has been removed on trunk. Does this bug still occur in a recent trunk build? http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/
Updated•16 years ago
|
Product: Core → Core Graveyard
Comment 9•13 years ago
|
||
Since a patch was checked in and we have no reason to believe there is still a leak, marking fixed. Please file a new bug if you can still see a leak with a current build.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•