LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-18-2008, 08:15 AM   #1
TwinReverb
Member
 
Registered: Sep 2008
Location: Misawa AB, Japan
Distribution: Slackware
Posts: 191
Blog Entries: 2

Rep: Reputation: 40
Slackware 12.1 and XFCE 4.4.2 Two Memory Leaks Patched


All,

Thanks to rworkman thrice` and FreeNode ##slackware in general.

Here is a memory leak bug from Slackware 12.1. It was accidentally incorrectly patched in xfce.SlackBuild and also failed to patch another memory leak found after it was rolled into a package. Basically, xfdesktop has two memory leaks in 4.4.2 that were reported to XFCE's bug tracking and patched in Debian (thanks Debian team!). The one leak not accounted for was the one in xfdesktop's menu-spec.

I rolled a new xfce.SlackBuild with help from rworkman and built it. It works fine and so far xfdesktop is not hogging triple-digit MB of virtual RAM in top any more, so it appears to have worked very well (since xfdesktop was only up for a week last time, and as of now it's been up almost 24 hours). Changes: added patch file and patch logic for the other memory leak, and fixed the patch command (-p0 not -p1) for the first memory leak.

So here are the files:

http://www.puresimplicity.net/~twinr...fce.SlackBuild

http://www.puresimplicity.net/~twinr...nuspec.diff.gz

Thanks!

Very respectfully,

Robert Delahunt (aka TwinReverb)

(will get submitted to a.o.l.s)
 
Old 09-18-2008, 08:39 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Thanks for sharing!
Although I did not notice memory leak for my part, I use xfce everyday
(but I have to say I have not used big x apps since I upgraded to Slackware 12.1 and I power off my computer every night)

[edit]
Slight error in slackbuild script:

./xfce.SlackBuild: line 143: syntax error near unexpected token `)'
./xfce.SlackBuild: line 143: ` ) || exit 1'

In fact it is a "fi" on line 97 that should be put on next line

Last edited by keefaz; 09-18-2008 at 08:52 AM.
 
Old 09-18-2008, 09:49 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I think that leak has been there for a while, I noticed while using Zenwalk quite some time ago. Or are there multiple leaks. Or has someone taken a shotgun to the rodent and now you can never stop the leaking ?
 
Old 09-18-2008, 10:04 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
The issue has already been addressed in Slackware-current - see today's ChangeLog entry of Thu Sep 18 01:54:28 CDT 2008

Eric
 
Old 09-18-2008, 10:48 AM   #5
TwinReverb
Member
 
Registered: Sep 2008
Location: Misawa AB, Japan
Distribution: Slackware
Posts: 191

Original Poster
Blog Entries: 2

Rep: Reputation: 40
Cool

Quote:
Originally Posted by Alien Bob View Post
The issue has already been addressed in Slackware-current - see today's ChangeLog entry of Thu Sep 18 01:54:28 CDT 2008

Eric
Quote:
Originally Posted by Slackware-Current Change Log
xap/xfce-4.4.2-i486-5.tgz: Fixed a misapplied memory leak patch -- thanks to Carlos Corbacho for pointing out that the xfdesktop4 version number was incorrect. Switched to an improved patch for the issue supplied by Robert Delahunt.
Yeah, I'm Robert Delahunt

Tell Patrick I appreciate him mentioning me (although it wasn't necessary). All I really did was gripe about memory usage in IRC, and someone pointed out the patches, and then I did a tiny amount of research and a tiny amount of work (with rworkman and thrice` helping) to get it working. So basically all I did was gripe until a solution presented itself

Also, I thank the #xfce guys for putting up with my gripe and pointing the patches out
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory leaks mailsrinu28 Programming 4 08-07-2007 07:15 PM
how to check for memory leaks Four Programming 4 11-18-2006 11:41 PM
frustrating memory leaks xushi Slackware 18 08-10-2005 06:13 AM
how to detect memory leaks abirami Linux - Networking 2 11-08-2004 05:35 AM
Memory Leaks? stampede96 Linux - Software 3 02-20-2003 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration