Home » Community » Coffee corner » crush of the program
Re: crush of the program [message #8746 is a reply to message #8274] |
Wed, 28 March 2007 21:58 |
exolon
Messages: 62 Registered: July 2006 Location: 53'21N 6'18W
|
Member |
|
|
BTW, a quick note which may be of help to those debugging these kind of problems - on linux, you can use a program called valgrind which will give a report like this:
==18964== Conditional jump or move depends on uninitialised value(s)
==18964== at 0x80947F0: (within /home/oisin/upp/out/GCC32.Gui.Shared/AnimatedHello)
==18964== by 0x8094DEB: (within /home/oisin/upp/out/GCC32.Gui.Shared/AnimatedHello)
==18964== by 0x809C7AC: (within /home/oisin/upp/out/GCC32.Gui.Shared/AnimatedHello)
==18964== by 0x809CCF8: (within /home/oisin/upp/out/GCC32.Gui.Shared/AnimatedHello)
==18964== by 0x809A004: (within /home/oisin/upp/out/GCC32.Gui.Shared/AnimatedHello)
==18964== by 0x809A592: (within /home/oisin/upp/out/GCC32.Gui.Shared/AnimatedHello)
==18964== by 0x8098C19: (within /home/oisin/upp/out/GCC32.Gui.Shared/AnimatedHello)
==18964== by 0x804CD68: (within /home/oisin/upp/out/GCC32.Gui.Shared/AnimatedHello)
==18964== by 0x804CDB6: (within /home/oisin/upp/out/GCC32.Gui.Shared/AnimatedHello)
==18964== by 0x4294EA1: __libc_start_main (in /lib/tls/i686/cmov/libc-2.3.6.so)
(many times, then, after a long while... for me, about 3 minutes (!) program appears, I let it run for a moment and quit)
==18964==
==18964== ERROR SUMMARY: 100 errors from 19 contexts (suppressed: 39 from 1)
==18964== malloc/free: in use at exit: 2,144,858 bytes in 30,435 blocks.
==18964== malloc/free: 492,498 allocs, 462,063 frees, 51,400,138 bytes allocated.
==18964== For counts of detected errors, rerun with: -v
==18964== searching for pointers to 30,435 not-freed blocks.
==18964== checked 2,146,892 bytes.
==18964==
==18964== LEAK SUMMARY:
==18964== definitely lost: 697 bytes in 42 blocks.
==18964== possibly lost: 543,752 bytes in 90 blocks.
==18964== still reachable: 1,600,409 bytes in 30,303 blocks.
==18964== suppressed: 0 bytes in 0 blocks.
==18964== Use --leak-check=full to see details of leaked memory.
It takes a huge amount of time though - for me running on a not too fast Celeron 2ghz or so in Ubuntu linux, loading AnimatedHello normally in Shared libs mode took about 10 seconds...
Apparently gcc has a memory debugging library called mudflap, but it seems to generate a lot of spurious errors in C++.
|
|
|
|
|
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 08:25:39 CEST 2024
Total time taken to generate the page: 0.02847 seconds
|