[Libreoffice-bugs] [Bug 111561] New: IOHIDDeviceClass::setElementDictIntValue() leaks memory
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Aug 9 15:33:06 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=111561
Bug ID: 111561
Summary: IOHIDDeviceClass::setElementDictIntValue() leaks
memory
Product: LibreOffice
Version: 6.0.0.0.alpha0+ Master
Hardware: x86-64 (AMD64)
OS: Mac OS X (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: framework
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: iplaw67 at tuta.io
Description:
When invoked
IOHIDDeviceClass::setElementDictIntValue()
leaks memory quite substantially, as does :
IOHIDDeviceClass::createElement()
and these are invoked multiple times.
Steps to Reproduce:
1. Start XCode, then Instruments.app
2. Choose Memory Leak profile tool
3. Select LibreOffice.app in instdir as target process
4. Click on the record button, LODev is started by the profiling tool
5. Wait for the StartCenter to load - note the occurrences of memory leaks as
they occur.
6. Open a new Writer document.
7. When the document has loaded, click on the dropdown font list. Scroll up and
down the list with the Up/Down cursor arrows
8. Stop recording.
9. Analyse the profile trace.
Actual Results:
It leaks memory
Expected Results:
It shouldn't leak memory
Reproducible: Always
User Profile Reset: No
Additional Info:
The responsible code seems to be here :
+0x09 pushq %rax
+0x0a movq %rdx, %r14
+0x0d movq %rsi, %r15
+0x10 movl %ecx, -28(%rbp)
+0x13 movq 37794(%rip), %rax
+0x1a movq (%rax), %rdi
+0x1d leaq -28(%rbp), %rdx
+0x21 movl $9, %esi
+0x26 callq "DYLD-STUB$$CFNumberCreate"
+0x2b movq %rax, %rbx
+0x2e testq %rbx, %rbx
+0x31 je
"IOHIDDeviceClass::setElementDictIntValue(__CFDictionary*, __CFString const*,
unsigned int)+0x49"
+0x33 movq %r15, %rdi
+0x36 movq %r14, %rsi
+0x39 movq %rbx, %rdx
+0x3c callq "DYLD-STUB$$CFDictionarySetValue"
+0x41 movq %rbx, %rdi
+0x44 callq "DYLD-STUB$$CFRelease"
+0x49 addq $8, %rsp
+0x4d popq %rbx
+0x4e popq %r14
+0x50 popq %r15
+0x52 popq %rbp
+0x53 retq
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:54.0)
Gecko/20100101 Firefox/54.0
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170809/45993957/attachment.html>
More information about the Libreoffice-bugs
mailing list