Open World Soccer Forum Index Open World Soccer
Community Forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SVN r67 malloc() memory corruption

 
Post new topic   Reply to topic    Open World Soccer Forum Index -> Programming
View previous topic :: View next topic  
Author Message
freegamer



Joined: 14 Mar 2008
Posts: 21

PostPosted: Tue Dec 09, 2008 11:29 am    Post subject: SVN r67 malloc() memory corruption Reply with quote

Code:
[charles@localhost ows-fedora]$ ./ows
Full screen mode off
Window size: 1024 x 768
type: 3 mode: 3
*** glibc detected *** ./ows: malloc(): memory corruption (fast): 0x0902a3d0 ***
======= Backtrace: =========
/lib/libc.so.6[0xae4874]
/lib/libc.so.6[0xae78d6]
/lib/libc.so.6(__libc_malloc+0x95)[0xae8ce5]
/usr/lib/libstdc++.so.6(_Znwj+0x27)[0x707e167]
./ows[0x805bbce]
./ows[0x8056bfd]
./ows[0x8056dcd]
./ows[0x8056f1b]
./ows[0x804f1e7]
/lib/libc.so.6(__libc_start_main+0xe6)[0xa8d5d6]
./ows(_ZNSt8ios_base4InitD1Ev+0x31)[0x804dc51]
======= Memory map: ========
00110000-00111000 r-xp 00110000 00:00 0          [vdso]
00111000-00143000 r-xp 00000000 08:02 85935      /usr/lib/libboost_program_options.so.1.34.1
00143000-00144000 rw-p 00032000 08:02 85935      /usr/lib/libboost_program_options.so.1.34.1
00144000-00157000 r-xp 00000000 08:02 8847874    /usr/lib/libftgl.so.0.0.0
00157000-00158000 rw-p 00013000 08:02 8847874    /usr/lib/libftgl.so.0.0.0
00158000-0015a000 rwxp 00000000 00:0e 556        /dev/zero
00204000-0028f000 r-xp 00000000 08:02 8847820    /usr/lib/libfreetype.so.6.3.16
0028f000-00293000 rw-p 0008a000 08:02 8847820    /usr/lib/libfreetype.so.6.3.16
00295000-002bc000 r-xp 00000000 08:02 94592      /usr/lib/libpng12.so.0.33.0
002bc000-002bd000 rw-p 00026000 08:02 94592      /usr/lib/libpng12.so.0.33.0
00301000-0030a000 r-xp 00000000 08:02 96089      /usr/lib/libXcursor.so.1.0.2
0030a000-0030b000 rw-p 00008000 08:02 96089      /usr/lib/libXcursor.so.1.0.2
00318000-0031e000 r-xp 00000000 08:02 96087      /usr/lib/libXrandr.so.2.1.0
0031e000-0031f000 rw-p 00005000 08:02 96087      /usr/lib/libXrandr.so.2.1.0
00321000-00325000 r-xp 00000000 08:02 96088      /usr/lib/libXfixes.so.3.1.0
00325000-00326000 rw-p 00003000 08:02 96088      /usr/lib/libXfixes.so.3.1.0
00328000-00329000 r-xp 00000000 08:02 116041     /usr/lib/nvidia/tls/libnvidia-tls.so.173.14.15
00329000-0032a000 rw-p 00000000 08:02 116041     /usr/lib/nvidia/tls/libnvidia-tls.so.173.14.15
00333000-00340000 r-xp 00000000 08:02 52579      /lib/libgcc_s-4.3.0-20080428.so.1
00340000-00341000 rw-p 0000c000 08:02 52579      /lib/libgcc_s-4.3.0-20080428.so.1
00341000-0043e000 r-xp 00000000 08:02 95463      /usr/lib/libX11.so.6.2.0
0043e000-00442000 rw-p 000fc000 08:02 95463      /usr/lib/libX11.so.6.2.0
00662000-006dc000 r-xp 00000000 08:02 93948      /usr/lib/libGLU.so.1.3.070100
006dc000-006de000 rw-p 00079000 08:02 93948      /usr/lib/libGLU.so.1.3.070100
00739000-00744000 r-xp 00000000 08:02 93033      /usr/lib/libSDL_image-1.2.so.0.1.5
00744000-00745000 rw-p 0000b000 08:02 93033      /usr/lib/libSDL_image-1.2.so.0.1.5
00745000-00755000 rw-p 00745000 00:00 0
009c9000-009ca000 r-xp 00000000 08:02 95262      /usr/lib/libxcb-xlib.so.0.0.0
009ca000-009cb000 rw-p 00000000 08:02 95262      /usr/lib/libxcb-xlib.so.0.0.0
00a57000-00a73000 r-xp 00000000 08:02 52565      /lib/ld-2.8.so
00a73000-00a74000 r--p 0001c000 08:02 52565      /lib/ld-2.8.so
00a74000-00a75000 rw-p 0001d000 08:02 52565      /lib/ld-2.8.so
00a77000-00bda000 r-xp 00000000 08:02 52566      /lib/libc-2.8.so
00bda000-00bdc000 r--p 00163000 08:02 52566      /lib/libc-2.8.so
00bdc000-00bdd000 rw-p 00165000 08:02 52566      /lib/libc-2.8.so
00bdd000-00be0000 rw-p 00bdd000 00:00 0
00be2000-00c09000 r-xp 00000000 08:02 52578      /lib/libm-2.8.so
00c09000-00c0a000 r--p 00026000 08:02 52578      /lib/libm-2.8.so
00c0a000-00c0b000 rw-p 00027000 08:02 52578      /lib/libm-2.8.so
00c0d000-00c10000 r-xp 00000000 08:02 52569      /lib/libdl-2.8.so
00c10000-00c11000 r--p 00002000 08:02 52569      /lib/libdl-2.8.so
00c11000-00c12000 rw-p 00003000 08:02 52569      /lib/libdl-2.8.so
00c14000-00c29000 r-xp 00000000 08:02 52567      /lib/libpthread-2.8.so
00c29000-00c2a000 r--p 00014000 08:02 52567      /lib/libpthread-2.8.so
00c2a000-00c2b000 rw-p 00015000 08:02 52567      /lib/libpthread-2.8.so
00c2b000-00c2d000 rw-p 00c2b000 00:00 0
00c4d000-00c60000 r-xp 00000000 08:02 52577      /lib/libz.so.1.2.3
00c60000-00c61000 rw-p 00012000 08:02 52577      /lib/libz.so.1.2.3
00c63000-00c6b000 r-xp 00000000 08:02 52568      /lib/librt-2.8.so
00c6b000-00c6c000 r--p 00007000 08:02 52568      /lib/librt-2.8.so
00c6c000-00c6d000 rw-p 00008000 08:02 52568      /lib/librt-2.8.so
00d57000-00d5c000 r-xp 00000000 08:02 8847709    /usr/lib/libXdmcp.so.6.0.0
00d5c000-00d5d000 rw-p 00004000 08:02 8847709    /usr/lib/libXdmcp.so.6.0.0
00d5f000-00d7a000 r-xp 00000000 08:02 95218      /usr/lib/libxcb.so.1.0.0
00d7a000-00d7b000 rw-p 0001b000 08:02 95218      /usr/lib/libxcb.so.1.0.0
00d7d000-00d7f000 r-xp 00000000 08:02 8847704    /usr/lib/libXau.so.6.0.0
00d7f000-00d80000 rw-p 00001000 08:02 8847704    /usr/lib/libXau.so.6.0.0
00d82000-00d91000 r-xp 00000000 08:02 96084      /usr/lib/libXext.so.6.4.0
00d91000-00d92000 rw-p 0000e000 08:02 96084      /usr/lib/libXext.so.6.4.0
00df5000-00dfd000 r-xp 00000000 08:02 95755      /usr/lib/libXrender.so.1.3.0
00dfd000-00dfe000 rw-p 00007000 08:02 95755      /usr/lib/libXrender.so.1.3.0
00dfe000-00dff000 ---p 00dfe000 00:00 0
00dff000-017ff000 rwxp 00dff000 00:00 0
02cba000-02d4e000 r-xp 00000000 08:02 116138     /usr/lib/nvidia/libGL.so.173.14.15
02d4e000-02d69000 rwxp 00094000 08:02 116138     /usr/lib/nvidia/libGL.so.173.14.15
02d69000-02d6a000 rwxp 02d69000 00:00 0
02e4e000-03af3000 r-xp 00000000 08:02 115432     /usr/lib/nvidia/libGLcore.so.173.14.15
03af3000-03c80000 rwxp 00ca5000 08:02 115432     /usr/lib/nvidia/libGLcore.so.173.14.15
03c80000-03c85000 rwxp 03c80000 00:00 0
06729000-0674b000 r-xp 00000000 08:02 87295      /usr/lib/libjpeg.so.62.0.0
0674b000-0674c000 rw-p 00021000 08:02 87295      /usr/lib/libjpeg.so.62.0.0
06a3b000-06a63000 r-xp 00000000 08:02 93017      /usr/lib/libaudiofile.so.0.0.2
06a63000-06a66000 rw-p 00028000 08:02 93017      /usr/lib/libaudiofile.so.0.0.2
06b03000-06b0c000 r-xp 00000000 08:02 92963      /usr/lib/libesd.so.0.2.38
06b0c000-06b0d000 rw-p 00009000 08:02 92963      /usr/lib/libesd.so.0.2.38
06c65000-06cbc000 r-xp 00000000 08:02 8847871    /usr/lib/libtiff.so.3.8.2
06cbc000-06cbe000 rw-p 00057000 08:02 8847871    /usr/lib/libtiff.so.3.8.2
06fc3000-070aa000 r-xp 00000000 08:02 97480      /usr/lib/libstdc++.so.6.0.10
070aa000-070ae000 r--p 000e6000 08:02 97480      /usr/lib/libstdc++.so.6.0.10
070ae000-070b0000 rw-p 000ea000 08:02 97480      /usr/lib/libstdc++.so.6.0.10
070b0000-070b5000 rw-p 070b0000 00:00 0
072c9000-073a6000 r-xp 00000000 08:02 50227      /lib/libasound.so.2.0.0
073a6000-073ab000 rw-p 000dc000 08:02 50227      /lib/libasound.so.2.0.0
0743d000-074af000 r-xp 00000000 08:02 88038      /usr/lib/libSDL-1.2.so.0.11.2
074af000-074b1000 rw-p 00072000 08:02 88038      /usr/lib/libSDL-1.2.so.0.11.2
074b1000-074e0000 rw-p 074b1000 00:00 0
08048000-08078000 r-xp 00000000 08:02 9830932    /home/charles/Games/svn/ows-fedora/ows
08078000-08079000 rw-p 0002f000 08:02 9830932    /home/charles/Games/svn/ows-fedora/ows
08079000-08089000 rw-p 08079000 00:00 0
08e8d000-090ae000 rw-p 08e8d000 00:00 0          [heap]
b67b5000-b6bb6000 rw-p b67b5000 00:00 0
b6f00000-b6f21000 rw-p b6f00000 00:00 0
b6f21000-b7000000 ---p b6f21000 00:00 0
b70b8000-b72b8000 rw-s 35372000 00:0e 3399       /dev/nvidia0
b72b8000-b73b8000 rw-s 35261000 00:0e 3399       /dev/nvidia0
b73b8000-b74b9000 rw-s 3606e000 00:0e 3399       /dev/nvidia0
b74b9000-b751d000 rw-p 00000000 00:0e 556        /dev/zero
b751e000-b7a64000 rw-s b0000000 00:0e 3399       /dev/nvidia0
b7a64000-b7a86000 rw-s 00000000 00:08 65536      /SYSV00000000 (deleted)
b7a86000-b7a87000 r--p 00b73000 08:02 93939      /usr/lib/locale/locale-archive
b7a87000-b7c87000 r--p 00000000 08:02 93939      /usr/lib/locale/locale-archive
b7c87000-b7e6b000 rw-p b7c87000 00:00 0
b7ea6000-b7ed8000 r--p 00000000 08:02 7274978    /home/charles/Games/svn/ows-fedora/fonts/DejaVuSansMono-Oblique.ttf
b7ed8000-b7edf000 r--s 00000000 08:02 115053     /usr/lib/gconv/gconv-modules.cache
b7edf000-b7ee0000 rw-s 00000000 00:08 2392090    /SYSV00000000 (deleted)
b7ee0000-b7ee1000 rw-s 00000000 00:08 2359321    /SYSV00000000 (deleted)
b7ee1000-b7f21000 rw-s b7aca000 00:0e 3399       /dev/nvidia0
b7f21000-b7f8c000 rw-p b7f21000 00:00 0
b7fa2000-b7fa6000 rw-s 3525d000 00:0e 3399       /dev/nvidia0
b7fa6000-b7fa7000 rw-s b7b0b000 00:0e 3399       /dev/nvidia0
b7fa7000-b7fa8000 rw-s 3525c000 00:0e 3399       /dev/nvidia0
b7fa8000-b7fa9000 rw-s 3525b000 00:0e 3399       /dev/nvidia0
b7fa9000-b7faa000 rw-s d1001000 00:0e 3399       /dev/nvidia0
b7faa000-b7fab000 rw-s d1c02000 00:0e 3399       /dev/nvidia0
b7fab000-b7fac000 rw-p b7fab000 00:00 0
bfe89000-bfea9000 rwxp bffde000 00:00 0          [stack]
bfea9000-bfeab000 rw-p bfffe000 00:00 0
Aborted

_________________
Free Gamer - open source games blog
FreeGameDev community
Back to top
View user's profile Send private message
Massimo32
Site Admin


Joined: 11 Nov 2007
Posts: 177
Location: Bolzano, Italy

PostPosted: Tue Dec 09, 2008 8:43 pm    Post subject: Re: SVN r67 malloc() memory corruption Reply with quote

You should be able to solve with a
Code:

$ make clean

I'm using Scons during the development, which is much smarter and can automatically manage dependencies. Then I often forget to update the Makefile Embarassed
Back to top
View user's profile Send private message
freegamer



Joined: 14 Mar 2008
Posts: 21

PostPosted: Thu Dec 11, 2008 3:11 pm    Post subject: Reply with quote

Why not just remove the Makefiles?
_________________
Free Gamer - open source games blog
FreeGameDev community
Back to top
View user's profile Send private message
Massimo32
Site Admin


Joined: 11 Nov 2007
Posts: 177
Location: Bolzano, Italy

PostPosted: Fri Dec 12, 2008 9:37 pm    Post subject: Reply with quote

freegamer wrote:
Why not just remove the Makefiles?

I'm quite new to Scons and I'm keeping the Makefile as a spare tyre Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Open World Soccer Forum Index -> Programming All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Get Open World Soccer at SourceForge.net. Fast, secure and Free Open Source software downloads