Previous in Forum: Is...Is Microsoft Actually Good Now?   Next in Forum: Dark Matter and Ejected Planets
Close
Close
Close
17 comments
Guru
Popular Science - Cosmology - New Member Technical Fields - Technical Writing - New Member Engineering Fields - Energy Engineering - New Member Engineering Fields - Electrical Engineering - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Electromechanical Engineering - Old Member, New Association

Join Date: Apr 2008
Location: Lexington, KY
Posts: 1639
Good Answers: 73

Vocabulary Pop Quiz - Memory Leak

10/26/2016 2:10 PM

Some of you will know this, but I had to stop the person who first used this with me because I was afraid he was talking about my forgetfulness......then I found out what he was talking about.

The technical term "Memory Leak" - What is it?

Fortunately, or unfortunately, I don't have a picture of it.

If I put it anywhere other than General, it will be too much of a clue.

The best answer might also two other ordinary words that really explains what causes it. Best guess wins an atta-boy or atta-girl.

__________________
A great troubleshooting tip...."When you eliminate the impossible, whatever remains, however improbable, must be the truth." Sir Arthur Conan Doyle
Register to Reply
Pathfinder Tags: Memory Leak Pop Quiz
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Comments rated to be Good Answers:

These comments received enough positive ratings to make them "good answers".

Comments rated to be "almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, rate them!
2
Guru
Canada - Member - If there is a way to screw someting up, there is someone to do so! Safety - Hazmat - New Member

Join Date: Mar 2007
Location: Iqaluit, NU. Canada
Posts: 1854
Good Answers: 140
#1

Re: Vocabulary Pop Quiz - Memory Leak

10/26/2016 2:22 PM

It is when items stored in a block of memory assigned to one process get dropped into another block that is actually reserved for another process.

Eventually, the blocks start to merge and corrupt each other.

__________________
Joe Contractor to Electrical Inspector, "What do you mean you are going to make me follow the code?".
Register to Reply Good Answer (Score 2)
Guru
Popular Science - Cosmology - New Member Technical Fields - Technical Writing - New Member Engineering Fields - Energy Engineering - New Member Engineering Fields - Electrical Engineering - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Electromechanical Engineering - Old Member, New Association

Join Date: Apr 2008
Location: Lexington, KY
Posts: 1639
Good Answers: 73
#2
In reply to #1

Re: Vocabulary Pop Quiz - Memory Leak

10/26/2016 2:48 PM

Close enough!

In two words, bad programming!

That was just too easy!

__________________
A great troubleshooting tip...."When you eliminate the impossible, whatever remains, however improbable, must be the truth." Sir Arthur Conan Doyle
Register to Reply
Guru

Join Date: Oct 2014
Location: Hemet, Land of milk and honey.
Posts: 2365
Good Answers: 36
#10
In reply to #2

Re: Vocabulary Pop Quiz - Memory Leak

10/26/2016 11:15 PM

You forgot to give him a, " atta boy " .

Register to Reply
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33321
Good Answers: 1810
#3

Re: Vocabulary Pop Quiz - Memory Leak

10/26/2016 3:03 PM

"In object-oriented programming, a memory leak may happen when an object is stored in memory but cannot be accessed by the running code. ... Because they can exhaust available system memory as an application runs, memory leaks are often the cause of or a contributing factor to software aging."

https://en.wikipedia.org/wiki/Memory_leak

https://blogs.msdn.microsoft.com/davidklinems/2005/11/16/three-common-causes-of-memory-leaks-in-managed-applications/

__________________
All living things seek to control their own destiny....this is the purpose of life
Register to Reply Score 1 for Good Answer
Guru
Engineering Fields - Electrical Engineering - New Member Fans of Old Computers - Commodore 64 - New Member Popular Science - Evolution - New Member United States - Member - New Member

Join Date: Oct 2013
Location: Illinois, 7 county region (The 'blue dot' that drags the rest of the 'red state' around during presidential elections.)
Posts: 3688
Good Answers: 89
#15
In reply to #3

Re: Vocabulary Pop Quiz - Memory Leak

11/02/2016 3:58 PM

You got it, but a more general definition is:

Failing to unallocate (free) memory when the memory is no longer required.

(To the OP):

The reason it's called a 'memory leak' is that when the function is called again, it allocates a new block of memory, but fails to unallocate it when it's done, so now there are TWO chunks of 'abandoned' allocated memory. As the process repeats, it creates an effect as if the memory were 'leaking out of a hole in the computer case.'

__________________
( The opinions espressed in this post may not reflect the true opinions of the poster, and may not reflect commonly accepted versions of reality. ) (If you are wondering: yes, I DO hope to live to be as old as my jokes.)
Register to Reply
Guru
Hobbies - Fishing - Old Salt Hobbies - CNC - New Member United States - US - Statue of Liberty - New Member

Join Date: Mar 2007
Location: Rosedale, Maryland USA
Posts: 5197
Good Answers: 266
#4

Re: Vocabulary Pop Quiz - Memory Leak

10/26/2016 3:52 PM

It's when you forget where you put stuff.

__________________
Life is not a journey to the grave with the intention of arriving in a pretty, pristine body but rather to come sliding in sideways, all used up and exclaiming, "Wow, what a ride!"
Register to Reply
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15515
Good Answers: 959
#5

Re: Vocabulary Pop Quiz - Memory Leak

10/26/2016 4:39 PM

I thought a memory leak happened when you return to the watering hole at your alma mater and relieved yourself. There you find the same old jokes on the wall. Ah memories, I wonder whatever happened to Anita?

__________________
"Don't disturb my circles." translation of Archimedes last words
Register to Reply
Guru
Hobbies - DIY Welding - Wannabeabettawelda

Join Date: May 2007
Location: Annapolis, Maryland
Posts: 7873
Good Answers: 453
#8
In reply to #5

Re: Vocabulary Pop Quiz - Memory Leak

10/26/2016 8:23 PM

And I was having trouble remembering if I had to get up in the middle of the night or not last night . . . .

Register to Reply Off Topic (Score 5)
Guru

Join Date: Jul 2005
Location: Stoke-on-Trent, UK
Posts: 4461
Good Answers: 135
#11
In reply to #8

Re: Vocabulary Pop Quiz - Memory Leak

10/27/2016 5:48 AM

Wish I had that problem! I had to get up 3 times. But I'd had a few beers

__________________
Give masochists a fair crack of the whip
Register to Reply Off Topic (Score 5)
Guru

Join Date: Apr 2015
Location: NYC until mid 2015, currently NC
Posts: 756
Good Answers: 8
#9
In reply to #5

Re: Vocabulary Pop Quiz - Memory Leak

10/26/2016 9:49 PM

"I wonder whatever happened to Anita?"

She's probably a grandmother of three, with wrinkles and grey hair in a bun.

__________________
Good judgment comes from experience, and a lotta that comes from bad judgment.
Register to Reply
Guru
New Zealand - Member - Kiwi Popular Science - Weaponology - New Member Engineering Fields - Power Engineering - New Member Engineering Fields - Electrical Engineering - New Member

Join Date: Sep 2006
Location: Auckland, New Zealand
Posts: 8778
Good Answers: 376
#6

Re: Vocabulary Pop Quiz - Memory Leak

10/26/2016 5:04 PM

Some modern computer memory systems use liquid cooling, so depending on who you talk to a memory leak could be a leak in the coolant system.

__________________
jack of all trades
Register to Reply
Guru

Join Date: Apr 2010
Location: About 4000 miles from the center of the earth (+/-100 mi)
Posts: 9753
Good Answers: 1120
#7

Re: Vocabulary Pop Quiz - Memory Leak

10/26/2016 5:16 PM

Computer programs must allocate memory space to store data. When the program is finished with that data, that space needs to be freed up so that other data can be stored. (The computer has only so much memory to work with.)

When there is a program error where some of the allocated space is not freed up, what happens is that as more and more space is allocated than is freed up, the computer runs out of memory space to allocate. This error is referred to as a "Memory Leak".

Register to Reply Score 1 for Good Answer
Guru

Join Date: Oct 2009
Posts: 1460
Good Answers: 30
#12
In reply to #7

Re: Vocabulary Pop Quiz - Memory Leak

10/27/2016 6:28 AM

I think that is actually bad garbage collection, rather than a memory leak. I prefer the definition of a memory leak as the storage of data in a block of memory already allocated for some other purpose.

Register to Reply
Guru

Join Date: Apr 2010
Location: About 4000 miles from the center of the earth (+/-100 mi)
Posts: 9753
Good Answers: 1120
#14
In reply to #12

Re: Vocabulary Pop Quiz - Memory Leak

10/27/2016 8:48 AM

In C and C++ it's up to the programmer to allocate and free memory space, and it's what we've called a memory leak when more and more storage is allocated and not freed up.

(I do realize Java takes care of all that, when it gets around to it, and I can program in Java when I absolutely have to, but prefer the control of C or C++. )

A program with a memory leak seems to run fine until the operating system runs out of RAM and starts swapping out disk space at which point performance slows to a crawl.

Just my experience...

https://en.wikipedia.org/wiki/Memory_leak

Register to Reply
Guru
Popular Science - Cosmology - New Member Technical Fields - Technical Writing - New Member Engineering Fields - Energy Engineering - New Member Engineering Fields - Electrical Engineering - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Electromechanical Engineering - Old Member, New Association

Join Date: Apr 2008
Location: Lexington, KY
Posts: 1639
Good Answers: 73
#17
In reply to #14

Re: Vocabulary Pop Quiz - Memory Leak

11/08/2016 12:43 PM

Been there, done that. Have a "dead man relay" set to trip the safety system when that happens. It is nice to be able to stop the machine automatically when it looses its mind.

__________________
A great troubleshooting tip...."When you eliminate the impossible, whatever remains, however improbable, must be the truth." Sir Arthur Conan Doyle
Register to Reply
Guru
Engineering Fields - Electrical Engineering - New Member Fans of Old Computers - Commodore 64 - New Member Popular Science - Evolution - New Member United States - Member - New Member

Join Date: Oct 2013
Location: Illinois, 7 county region (The 'blue dot' that drags the rest of the 'red state' around during presidential elections.)
Posts: 3688
Good Answers: 89
#16
In reply to #12

Re: Vocabulary Pop Quiz - Memory Leak

11/02/2016 4:09 PM

"I prefer the definition of a memory leak as the storage of data in a block of memory already allocated for some other purpose."

I respect that you prefer that definition.

I also respect that some people prefer the singular of potatoes to be potatoe.

However, those two things have something in common: They are both wrong.

What you are describing is not called a "memory leak" it is called "overwriting data," "overloading data" (as in the new data is LOADED into memory OVER the old data), "program corruption" (as a portion of memory that held something important now holds essentially random junk), or a "worm" (when used to overwrite past the end of a buffer and sneak malicious code into a program, this came about early in the internet days, when e-mail systems were still crude and simple. a message with a too-long file would write past the end of the assigned buffer space since the e-mail program at the time did not have strong error checking, and the 'extra data' could end up in 'executable space' and get flagged as a program ready to run.)

__________________
( The opinions espressed in this post may not reflect the true opinions of the poster, and may not reflect commonly accepted versions of reality. ) (If you are wondering: yes, I DO hope to live to be as old as my jokes.)
Register to Reply
Guru
Engineering Fields - Instrumentation Engineering - EE from the the Wilds of Pa.

Join Date: Feb 2006
Location: middle of nowhere, Pennsylvania
Posts: 2603
Good Answers: 63
#13

Re: Vocabulary Pop Quiz - Memory Leak

10/27/2016 8:31 AM

The new "PC" term for dementia.

__________________
Remember when reading my post: (-1)^½ m (2)^½
Register to Reply
Register to Reply 17 comments
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Comments rated to be Good Answers:

These comments received enough positive ratings to make them "good answers".

Comments rated to be "almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, rate them!
Copy to Clipboard

Users who posted comments:

adreasler (2); Brave Sir Robin (1); Casper71 (1); Codemaster (1); jack of all trades (1); North of 60 (1); NotUrOrdinaryJoe (2); ozzb (1); phph001 (1); Phys (1); redfred (1); Rixter (2); SolarEagle (1); tonyhemet (1)

Previous in Forum: Is...Is Microsoft Actually Good Now?   Next in Forum: Dark Matter and Ejected Planets

Advertisement