Bug 207006 - jasper: Memory Leak
jasper: Memory Leak
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: jasper (Show other bugs)
5
All Linux
medium Severity high
: ---
: ---
Assigned To: Rex Dieter
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-09-18 14:50 EDT by Derek Atkins
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-09-18 16:20:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Patch to fix memory leak (1.09 KB, patch)
2006-09-18 14:50 EDT, Derek Atkins
no flags Details | Diff

  None (edit)
Description Derek Atkins 2006-09-18 14:50:20 EDT
Description of problem:

there's a significant memory leak in the jasper library.

Version-Release number of selected component (if applicable):

jasper-1.701.0-12.fc5

How reproducible:

100%

Steps to Reproduce:
1. Run an application that uses the jasper library
2. See the size of the application continue to increase over time
3. Check google and see that the mem-leak patches haven't been applied.
  
Actual results:

My application (gyachi in this case) keeps increasing in size when I
send/receive webcam streams.  If it's just sitting there doing nothing then it
doesn't do anything.

Expected results:

Application memory use should stabilize, not constantantly increase.

Additional info:

See the attached patch for the correction.
Comment 1 Derek Atkins 2006-09-18 14:50:20 EDT
Created attachment 136569 [details]
Patch to fix memory leak
Comment 2 Rex Dieter 2006-09-18 15:04:48 EDT
This bit of the patch doesn't seem related to a memory leak:
-	tmpnam(obj->pathname);
+	mkstemp(obj->pathname);
(though it's probably better security-wise)

This looks more relevant:
...
+	jas_matrix_destroy(src_mgr->data);

> 3. Check google and see that the mem-leak patches haven't been applied.

Please, specific references (I can't find anything immediately searching on
"jasper memory leak" or "jasper mem-leak patches"
Comment 3 Derek Atkins 2006-09-18 15:08:07 EDT
Two references to the memory leak:

http://ayttm.sourceforge.net/files.shtml   (where I got the patch)
http://gyachi.sourceforge.net/download.shtml  (page down to JasPer)

Unfortunately the SRPM link on the second page doesn't work anymore so I
couldn't pull that patch.
Comment 4 Rex Dieter 2006-09-18 16:16:05 EDT
Reported upstream:
http://tech.groups.yahoo.com/group/jasper-discussion/message/1466
Comment 5 Rex Dieter 2006-09-18 16:20:36 EDT
%changelog
* Mon Sep 18 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.701.0-14
- memory leak (#207006)

build only for devel/fc6 branch, for now.  Pending peer/upstream review of
patch, patched builds will be issued for all other branches.

Note You need to log in before you can comment on or make changes to this bug.