Home » Community » Coffee corner » crush of the program
Re: crush of the program [message #8280 is a reply to message #8276] |
Wed, 28 February 2007 09:25 |
|
mirek
Messages: 13976 Registered: November 2005
|
Ultimate Member |
|
|
mr_ped wrote on Tue, 27 February 2007 17:09 |
- usage of uninitialized/corrupted memory - in debug mode you get all kind of those helpers like 0xCCCCCCCC for allocated memory or 0xFDFDFDFD for deleted one, same allocation addresses, etc... in release you get random garbage and never really knows what to expect. Also allocated memory in debug mode has some guardians space which may catch occasional memory overruns, in release it's much easier to corrupt your memory.
|
BTW, the most troublesome bug is "read past end of buffer". While there is a huge chance that U++ heap allocator catches writes, reads, especially one byte past end, are impossible to catch. Plus, the chance that you read byte in area that causes exception is very very low. Means it crashes once a week or so.
Once I was dealing with mysterious crashes of one of my application for 6 months, before identifying this.
Quote: |
Also if you manage to get stack/memory/code dump of crash, it may be worth to compare it with symbol table to see if it does crash always on the same place, and examine the exact reason of crash.
|
In U++/Win32 you can call "InstallCrashDump" at the start of program. This will create the core dump that can be later analyzed in "Crash" utility (you should be able to compile it from uppsrc). So if you have any difficulity analyzing, you can try this. Crash will need "*.crash" dump file and map file of executable.
Mirek
|
|
|
|
|
crush of the program
By: forlano on Tue, 27 February 2007 21:50
|
|
|
Re: crush of the program
By: mr_ped on Tue, 27 February 2007 23:09
|
|
|
Re: crush of the program
By: exolon on Wed, 28 February 2007 01:48
|
|
|
Re: crush of the program
By: forlano on Wed, 28 February 2007 02:53
|
|
|
Re: crush of the program
By: mirek on Wed, 28 February 2007 09:27
|
|
|
Re: crush of the program
By: forlano on Wed, 28 February 2007 15:55
|
|
|
Re: crush of the program
By: mirek on Wed, 28 February 2007 09:25
|
|
|
Re: crush of the program
By: forlano on Thu, 22 March 2007 14:03
|
|
|
Re: crush of the program
By: mirek on Thu, 22 March 2007 17:22
|
|
|
Re: crush of the program
By: forlano on Mon, 28 May 2007 18:26
|
|
|
Re: crush of the program
By: forlano on Tue, 29 May 2007 23:38
|
|
|
Re: crush of the program
By: mr_ped on Wed, 28 February 2007 11:55
|
|
|
Re: crush of the program
By: mirek on Wed, 28 February 2007 12:06
|
|
|
Re: crush of the program
By: exolon on Wed, 28 March 2007 21:58
|
|
|
Re: crush of the program
By: Novo on Wed, 28 March 2007 22:08
|
|
|
Re: crush of the program
By: zsolt on Wed, 28 March 2007 23:45
|
|
|
Re: crush of the program
By: Novo on Thu, 29 March 2007 16:51
|
|
|
Re: crush of the program
By: mirek on Thu, 29 March 2007 17:49
|
|
|
Re: crush of the program
By: Novo on Thu, 29 March 2007 20:24
|
|
|
Re: crush of the program
By: forlano on Wed, 28 March 2007 23:15
|
|
|
Re: crush of the program
By: exolon on Wed, 28 March 2007 22:20
|
Goto Forum:
Current Time: Thu May 09 20:51:11 CEST 2024
Total time taken to generate the page: 0.02394 seconds
|