From: tita g. <tit...@fr...> - 2013-04-03 16:50:15
Attachments:
tuxmathErr.log
|
Dear all, lost of thanks for your amazing work on tuxmath ! I'm running tuxmath on ubuntu12.04, this is the version 1.8.0 of tuxmath. I can reproduce a bug in the asteroid mode : If I hit 6 times the space bar in less than one second : the game stop with a double free or memory corruption error interruption (see the attached log file) This bug didn't exist before (with the previous LTS ubuntu 10.04 and its associated tuxmath). I would be pleased to give you any information you need to fix that bug. My children love your way of doing math :) Lots of thanks. |
From: sasayins <sas...@gm...> - 2013-04-05 09:39:12
|
Thank you! We will look at this bug. We are glad that your kid love the game. =) On Thu, Apr 4, 2013 at 12:51 AM, tita guery <tit...@fr...> wrote: > Dear all, > > lost of thanks for your amazing work on tuxmath ! > > I'm running tuxmath on ubuntu12.04, this is the version 1.8.0 of tuxmath. > > I can reproduce a bug in the asteroid mode : > > If I hit 6 times the space bar in less than one second : the game stop > with a double free or memory corruption error interruption (see the > attached log file) > > This bug didn't exist before (with the previous LTS ubuntu 10.04 and its > associated tuxmath). > > I would be pleased to give you any information you need to fix that bug. > > My children love your way of doing math :) > > Lots of thanks. > > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Tuxmath-devel mailing list > Tux...@li... > https://lists.sourceforge.net/lists/listinfo/tuxmath-devel > > |
From: arshpreet s. <ar...@gm...> - 2013-04-06 18:38:48
|
On Wed, Apr 3, 2013 at 10:21 PM, tita guery <tit...@fr...> wrote: > Dear all, > > lost of thanks for your amazing work on tuxmath ! > > I'm running tuxmath on ubuntu12.04, this is the version 1.8.0 of tuxmath. > > I can reproduce a bug in the asteroid mode : > > If I hit 6 times the space bar in less than one second : the game stop > with a double free or memory corruption error interruption (see the > attached log file) > please try the following command before running tuxmath $export MALLOC_CHECK_=0 hope that helps.but now my question is how we can fit this solution into Tuxmath's source code? |
From: Marc P. <mar...@en...> - 2013-04-08 13:17:36
|
Dear arshpreet, your idea "$export MALLOC_CHECK_=0" does'nt solve the problem : After the "6 fast space bar hits", you can't play anymore to any of the two options in factoroid (nor factors, nor fractions). What has changed is that there is no more crash and other items of "principal menu" are still available. hope you'll find a solution :) Le 06/04/2013 20:38, arshpreet singh a écrit : > > > > On Wed, Apr 3, 2013 at 10:21 PM, tita guery <tit...@fr... > <mailto:tit...@fr...>> wrote: > > Dear all, > > lost of thanks for your amazing work on tuxmath ! > > I'm running tuxmath on ubuntu12.04, this is the version 1.8.0 of > tuxmath. > > I can reproduce a bug in the asteroid mode : > > If I hit 6 times the space bar in less than one second : the game > stop with a double free or memory corruption error interruption > (see the attached log file) > > > please try the following command before running tuxmath > > $export MALLOC_CHECK_=0 > > hope that helps.but now my question is how we can fit this solution > into Tuxmath's source code? -- Marc Parenthoen (MC, Associate Professor) -- Lab-STICC, UMR 6285 - Laboratoire en sciences et techniques de l'information, de la communication et de la connaissance ENIB - Ecole Nationale d'Ingénieurs de Brest UEB - Université Européenne de Bretagne -- adr.: CERV - Centre Européen de Réalité virtuelle, F-29280 Plouzané tél.: 02 98 05 89 54 |
From: Dennis S. <de...@va...> - 2013-04-10 01:02:40
|
I can duplicate the problem $ lsb_release -d Description: Ubuntu 12.04.2 LTS $ uname -a Linux dev 3.2.0-39-generic #62-Ubuntu SMP Thu Feb 28 00:28:53 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux The crash is caused by a call in the factoroids.c file in the FF_exit_free() function. The second statement in that function, "free(asteroid)", is where the crash happens. "$export MALLOC_CHECK_=0" prevents the crash, but then the game is broken in more subtle ways as noted by Marc Parenthoen. *** glibc detected *** /usr/games/tuxmath: double free or corruption (!prev): 0x00000000013c96e0 * ** (gdb) bt #0 0x00007ffff62d4425 in raise () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007ffff62d7b8b in abort () from /lib/x86_64-linux-gnu/libc.so.6 #2 0x00007ffff631239e in ?? () from /lib/x86_64-linux-gnu/libc.so.6 #3 0x00007ffff631cb96 in ?? () from /lib/x86_64-linux-gnu/libc.so.6 #4 0x000000000041151f in FF_exit_free () at factoroids.c:1360 #5 0x00000000004120d5 in FF_over (game_status=5) at factoroids.c:1345 #6 0x0000000000407b28 in run_factoroids (choice=0) at menu.c:545 #7 0x0000000000409cef in handle_activity (act=10, param=0) at menu.c:354 #8 0x00000000004091f1 in run_menu (root=0xbe9080, return_choice=false) at menu.c:1122 #9 0x000000000040a38e in RunMainMenu () at menu.c:1619 #10 0x0000000000406bbc in TitleScreen () at titlescreen.c:286 #11 0x0000000000403c23 in main (argc=<optimized out>, argv=0x7fffffffe7a8) at tuxmath.c:57 |
From: arshpreet s. <ar...@gm...> - 2013-04-14 04:09:17
|
On Wed, Apr 10, 2013 at 6:08 AM, Dennis Sheil <de...@va...> wrote: > I can duplicate the problem > > $ lsb_release -d > Description: Ubuntu 12.04.2 LTS > $ uname -a > Linux dev 3.2.0-39-generic #62-Ubuntu SMP Thu Feb 28 00:28:53 UTC 2013 > x86_64 x86_64 x86_64 GNU/Linux > > The crash is caused by a call in the factoroids.c file in the > FF_exit_free() function. The second statement in that function, > "free(asteroid)", is where the crash happens. > > hello everyone last night i just tried to find out how to solve this bug as this is memory issue in the program so i got valgrind is good option to solve this.now we need executables to run valgrind test.i tried with "valgrind --leak-check=yes ./tuxmath" but could not got anything good.i think it was very bad and wrong try. may be creating executables for individuals like factroids.c or comets.c is good idea? can we run valgrind memory test on individuals? if there is any method to do this i mean converting .o files to executables or anything else please reply. -- Thanks Arshpreet singh http://arshpreetsingh.wordpress.com/ |