This is mostly based on victor's
earlier bug report, which wasn't very precise, but with additional information provided on IRC.
To reproduce, edit $UserData_Root/glestuser.ini and set PlayerName to
victorJ_Br. When done, start a fresh rebuild of the latest svn revision, which, to date, is r3502. Go to the 'options' menu and try to change your player name to
GGGGG. While trying to do so, MG will crash. This is on Ubuntu 12.04, x86_64.
The following output is produced:
megaglest v3.6.1-dev
Compiled using: GNUC: 40603 [64bit] on: Jul 26 2012 01:22:35
SVN: [Rev: 3502M] - using STREFLOP [SSE] - [no-denormals]
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 4836] Error detected: signal 11:
*** glibc detected *** mk/linux/megaglest: malloc(): memory corruption: 0x00000000032596f0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7e626)[0x7fadf878a626]
/lib/x86_64-linux-gnu/libc.so.6(+0x8078b)[0x7fadf878c78b]
/lib/x86_64-linux-gnu/libc.so.6(__libc_malloc+0x75)[0x7fadf878ea45]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_Znwm+0x1d)[0x7fadf908eded]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZNSs4_Rep9_S_createEmmRKSaIcE+0x59)[0x7fadf9077a89]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZNSs12_S_constructIPKcEEPcT_S3_RKSaIcESt20forward_iterator_tag+0x35)[0x7fadf9079495]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZNSsC2EPKcRKSaIcE+0x43)[0x7fadf90795e3]
mk/linux/megaglest(_ZN5Glest4Game16ExceptionHandler8logErrorEPKcb+0x3f)[0x69c4ef]
mk/linux/megaglest(_ZN5Glest4Game16ExceptionHandler18handleRuntimeErrorEPKcb+0x5a)[0x6a0f6a]
mk/linux/megaglest[0x68b887]
/lib/x86_64-linux-gnu/libc.so.6(+0x364c0)[0x7fadf87424c0]
/lib/x86_64-linux-gnu/libc.so.6(+0x1410d9)[0x7fadf884d0d9]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZNSs9_M_mutateEmmm+0x12a)[0x7fadf9077d4a]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZNSs14_M_replace_auxEmmmc+0x4a)[0x7fadf907808a]
mk/linux/megaglest(_ZN5Glest4Game16MenuStateOptions8keyPressE17SDL_KeyboardEvent+0x1a4)[0x6d4f94]
mk/linux/megaglest(_ZN5Glest4Game8MainMenu8keyPressE17SDL_KeyboardEvent+0x2c)[0x73928c]
mk/linux/megaglest(_ZN5Glest4Game7Program8keyPressE17SDL_KeyboardEvent+0x2c)[0x6aaebc]
mk/linux/megaglest(_ZN5Glest4Game10MainWindow13eventKeyPressE17SDL_KeyboardEvent+0x71)[0x671df1]
mk/linux/megaglest(_ZN6Shared8Platform6Window11handleEventEv+0x10ad)[0xa1529d]
mk/linux/megaglest(_ZN5Glest4Game9glestMainEiPPc+0xab5c)[0x6986ac]
mk/linux/megaglest(_ZN5Glest4Game16glestMainWrapperEiPPc+0x96)[0x69c136]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7fadf872d76d]
mk/linux/megaglest[0x4f2e19]
======= Memory map: ========
00400000-00c65000 r-xp 00000000 fc:02 12189707 /home/tomreyn/SCM/megaglest-trunk/mk/linux/megaglest
00e64000-00e67000 r--p 00864000 fc:02 12189707 /home/tomreyn/SCM/megaglest-trunk/mk/linux/megaglest
00e67000-00e6a000 rw-p 00867000 fc:02 12189707 /home/tomreyn/SCM/megaglest-trunk/mk/linux/megaglest
00e6a000-00e93000 rw-p 00000000 00:00 0
01b5c000-04286000 rw-p 00000000 00:00 0 [heap]
7fadc0000000-7fadc0056000 rw-p 00000000 00:00 0
7fadc0056000-7fadc4000000 ---p 00000000 00:00 0
7fadc8000000-7fadc8033000 rw-p 00000000 00:00 0
7fadc8033000-7fadcc000000 ---p 00000000 00:00 0
7fadcc000000-7fadcc021000 rw-p 00000000 00:00 0
7fadcc021000-7fadd0000000 ---p 00000000 00:00 0
7fadd0000000-7fadd0021000 rw-p 00000000 00:00 0
7fadd0021000-7fadd4000000 ---p 00000000 00:00 0
7fadd6efd000-7fadd6efe000 ---p 00000000 00:00 0
7fadd6efe000-7fadd76fe000 rw-p 00000000 00:00 0
7fadd76fe000-7fadd77fe000 rw-s 149395000 00:05 1389 /dev/dri/card0
7fadd77fe000-7fadd77ff000 ---p 00000000 00:00 0
7fadd77ff000-7fadd7fff000 rw-p 00000000 00:00 0
7fadd7fff000-7faddc000000 rw-s 00000000 00:1b 122050175 /run/shm/pulse-shm-2681164912
7faddc000000-7faddc021000 rw-p 00000000 00:00 0
7faddc021000-7fade0000000 ---p 00000000 00:00 0
7fade0000000-7fade0021000 rw-p 00000000 00:00 0
7fade0021000-7fade4000000 ---p 00000000 00:00 0
7fade4000000-7fade4021000 rw-p 00000000 00:00 0
7fade4021000-7fade8000000 ---p 00000000 00:00 0
7fade80ec000-7fade80fc000 rw-s 13cc05000 00:05 1389 /dev/dri/card0
7fade80fc000-7fade810c000 rw-s 149385000 00:05 1389 /dev/dri/card0
7fade810c000-7fade820c000 rw-s 149277000 00:05 1389 /dev/dri/card0
7fade820c000-7fade821c000 rw-s 149267000 00:05 1389 /dev/dri/card0
7fade821c000-7fade822c000 rw-s 149257000 00:05 1389 /dev/dri/card0
7fade822c000-7fade822d000 rw-s 149256000 00:05 1389 /dev/dri/card0
7fade822d000-7fade822e000 rw-s 149255000 00:05 1389 /dev/dri/card0
7fade822e000-7fade822f000 rw-s 149254000 00:05 1389 /dev/dri/card0
7fade822f000-7fade8230000 rw-s 149253000 00:05 1389 /dev/dri/card0
7fade8230000-7fade8234000 rw-s 14924f000 00:05 1389 /dev/dri/card0
7fade8234000-7fade823c000 rw-s 149247000 00:05 1389 /dev/dri/card0
7fade823c000-7fade8242000 rw-s 149241000 00:05 1389 /dev/dri/card0
7fade8242000-7fade824a000 rw-s 149239000 00:05 1389 /dev/dri/card0
7fade824a000-7fade824c000 rw-s 149237000 00:05 1389 /dev/dri/card0
7fade824c000-7fade824e000 rw-s 149235000 00:05 1389 /dev/dri/card0
7fade824e000-7fade824f000 rw-s 149234000 00:05 1389 /dev/dri/card0
7fade824f000-7fade8251000 rw-s 149232000 00:05 1389 /dev/dri/card0
7fade8251000-7fade825a000 rw-s 149229000 00:05 1389 /dev/dri/card0
7fade825a000-7fade8264000 rw-s 14921f000 00:05 1389 /dev/dri/card0
7fade8264000-7fade826b000 rw-s 149218000 00:05 1389 /dev/dri/card0
7fade826b000-7fade8275000 rw-s 14920e000 00:05 1389 /dev/dri/card0
7fade8275000-7fade8278000 rw-s 14920b000 00:05 1389 /dev/dri/card0
7fade8278000-7fade827e000 rw-s 149205000 00:05 1389 /dev/dri/card0
7fade827e000-7fade8282000 rw-s 149201000 00:05 1389 /dev/dri/card0
7fade8282000-7fade8288000 rw-s 1491fb000 00:05 1389 /dev/dri/card0
7fade8288000-7fade828b000 rw-s 1491f8000 00:05 1389 /dev/dri/card0
7fade828b000-7fade8290000 rw-s 1491f3000 00:05 1389 /dev/dri/card0
7fade8290000-7fade8293000 rw-s 1491f0000 00:05 1389 /dev/dri/card0
7fade8293000-7fade8298000 rw-s 1491eb000 00:05 1389 /dev/dri/card0
7fade8298000-7fade82af000 rw-s 1491d4000 00:05 1389 /dev/dri/card0
7fade82af000-7fade82bc000 rw-s 1491c7000 00:05 1389 /dev/dri/card0
7fade82bc000-7fade82c5000 rw-s 1491be000 00:05 1389 /dev/dri/card0
7fade82c5000-7fade82d2000 rw-s 1491b1000 00:05 1389 /dev/dri/card0
7fade82d2000-7fade82dc000 rw-s 1491a3000 00:05 1389 /dev/dri/card0
7fade82dc000-7fade82dd000 ---p 00000000 00:00 0
7fade82dd000-7fade8add000 rw-p 00000000 00:00 0
7fade8add000-7fade8ade000 ---p 00000000 00:00 0
7fade8ade000-7fade92de000 rw-p 00000000 00:00 0
7fade92de000-7fade92df000 ---p 00000000 00:00 0
7fade92df000-7fade9adf000 rw-p 00000000 00:00 0
7fade9ae0000-7fade9ae1000 rw-s 146654000 00:05 1389 /dev/dri/card0
7fade9ae1000-7fade9ae2000 rw-s 1491b0000 00:05 1389 /dev/dri/card0
7fade9ae2000-7fade9ae3000 rw-s 14644e000 00:05 1389 /dev/dri/card0
7fade9ae3000-7fade9ae4000 rw-s 14644d000 00:05 1389 /dev/dri/card0
7fade9ae4000-7fade9ae5000 rw-s 14644c000 00:05 1389 /dev/dri/card0
7fade9ae5000-7fade9ae6000 rw-s 14644b000 00:05 1389 /dev/dri/card0
7fade9ae6000-7fade9ae7000 rw-s 14644a000 00:05 1389 /dev/dri/card0
7fade9ae7000-7fade9ae8000 rw-s 146449000 00:05 1389 /dev/dri/card0
7fade9ae8000-7fade9ae9000 rw-s 146448000 00:05 1389 /dev/dri/card0
7fade9ae9000-7fade9aea000 rw-s 146447000 00:05 1389 /dev/dri/card0
7fade9aea000-7fade9aec000 rw-p 00000000 00:00 0
7fade9aec000-7fade9ba5000 r--p 00000000 fc:02 14161136 /home/tomreyn/SCM/megaglest-trunk/data/glest_game/data/core/fonts/LinBiolinum_RB.ttf
7fade9ba5000-7fade9c5e000 r--p 00000000 fc:02 14161136 /home/tomreyn/SCM/megaglest-trunk/data/glest_game/data/core/fonts/LinBiolinum_RB.ttf
7fade9c5e000-7fade9d17000 r--p 00000000 fc:02 14161136 /home/tomreyn/SCM/megaglest-trunk/data/glest_game/data/core/fonts/LinBiolinum_RB.ttf
7fade9d17000-7fade9dd0000 r--p 00000000 fc:02 14161136 /home/tomreyn/SCM/megaglest-trunk/data/glest_game/data/core/fonts/LinBiolinum_RB.ttf
7fade9dd0000-7fade9e89000 r--p 00000000 fc:02 14161136 /home/tomreyn/SCM/megaglest-trunk/data/glest_game/data/core/fonts/LinBiolinum_RB.ttf
7fade9e89000-7fade9f42000 r--p 00000000 fc:02 14161136 /home/tomreyn/SCM/megaglest-trunk/data/glest_game/data/core/fonts/LinBiolinum_RB.ttf
7fade9f42000-7fade9f43000 ---p 00000000 00:00 0
7fade9f43000-7fadea743000 rw-p 00000000 00:00 0
7fadea743000-7fadea774000 r-xp 00000000 fc:01 395579 /usr/lib/x86_64-linux-gnu/libtxc_dxtn_s2tc.so.0.0.0
7fadea774000-7fadea973000 ---p 00031000 fc:01 395579 /usr/lib/x86_64-linux-gnu/libtxc_dxtn_s2tc.so.0.0.0
7fadea973000-7fadea974000 r--p 00030000 fc:01 395579 /usr/lib/x86_64-linux-gnu/libtxc_dxtn_s2tc.so.0.0.0
7fadea974000-7fadea975000 rw-p 00031000 fc:01 395579 /usr/lib/x86_64-linux-gnu/libtxc_dxtn_s2tc.so.0.0.0
7fadea975000-7fadea976000 ---p 00000000 00:00 0
7fadea976000-7fadeb176000 rw-p 00000000 00:00 0
7fadeb176000-7fadeb177000 rw-s 1491af000 00:05 1389 /dev/dri/card0
7fadeb177000-7fadeb178000 rw-s 1491ae000 00:05 1389 /dev/dri/card0
7fadeb178000-7fadeb179000 rw-s 1491ad000 00:05 1389 /dev/dri/card0
7fadeb179000-7fadeb17f000 rw-s 14919d000 00:05 1389 /dev/dri/card0
7fadeb17f000-7fadeb183000 rw-s 149199000 00:05 1389 /dev/dri/card0
7fadeb183000-7fadeb189000 rw-s 149193000 00:05 1389 /dev/dri/card0
7fadeb189000-7fadeb18a000 rw-s 149192000 00:05 1389 /dev/dri/card0
7fadeb18a000-7fadeb18b000 rw-s 149191000 00:05 1389 /dev/dri/card0
7fadeb18b000-7fadeb18c000 rw-s 149190000 00:05 1389 /dev/dri/card0
7fadeb18c000-7fadeb18d000 rw-s 14918f000 00:05 1389 /dev/dri/card0
7fadeb18d000-7fadeb18f000 rw-s 14918d000 00:05 1389 /dev/dri/card0
7fadeb18f000-7fadeb191000 rw-s 14918b000 00:05 1389 /dev/dri/card0
7fadeb191000-7fadeb192000 rw-s 14918a000 00:05 1389 /dev/dri/card0
7fadeb192000-7fadeb194000 rw-s 149188000 00:05 1389 /dev/dri/card0
7fadeb194000-7fadeb195000 rw-s 149187000 00:05 1389 /dev/dri/card0
7fadeb195000-7fadeb196000 rw-s 149186000 00:05 1389 /dev/dri/card0
7fadeb196000-7fadeb197000 rw-s 149185000 00:05 1389 /dev/dri/card0
7fadeb197000-7fadeb198000 rw-s 149184000 00:05 1389 /dev/dri/card0
7fadeb198000-7fadeb199000 rw-s 149183000 00:05 1389 /dev/dri/card0
7fadeb199000-7fadeb19a000 rw-s 149182000 00:05 1389 /dev/dri/card0
7fadeb19a000-7fadeb19b000 rw-s 149181000 00:05 1389 /dev/dri/card0
7fadeb19b000-7fadeb19c000 rw-s 149180000 00:05 1389 /dev/dri/card0
7fadeb19c000-7fadeb19e000 rw-s 14917e000 00:05 1389 /dev/dri/card0
7fadeb19e000-7fadeb1a0000 rw-s 14917c000 00:05 1389 /dev/dri/card0
7fadeb1a0000-7fadeb1a1000 rw-s 14917b000 00:05 1389 /dev/dri/card0
7fadeb1a1000-7fadeb1a3000 rw-s 149179000 00:05 1389 /dev/dri/card0
7fadeb1a3000-7fadeb1a5000 rw-s 149177000 00:05 1389 /dev/dri/card0
7fadeb1a5000-7fadeb1a7000 rw-s 149175000 00:05 1389 /dev/dri/card0
7fadeb1a7000-7fadeb1a9000 rw-s 149173000 00:05 1389 /dev/dri/card0
7fadeb1a9000-7fadeb1ab000 rw-s 149171000 00:05 1389 /dev/dri/card0
7fadeb1ab000-7fadeb1ac000 rw-s 149170000 00:05 1389 /dev/dri/card0
7fadeb1ac000-7fadeb1ad000 rw-s 14916f000 00:05 1389 /dev/dri/card0
7fadeb1ad000-7fadeb1ae000 rw-s 14916e000 00:05 1389 /dev/dri/card0
7fadeb1ae000-7fadeb1bb000 rw-s 14915c000 00:05 1389 /dev/dri/card0
7fadeb1bb000-7fadeb1bc000 rw-s 146cfb000 00:05 1389 /dev/dri/card0
7fadeb1bc000-7fadeb33d000 rw-p 00000000 00:00 0
7fadeb33d000-7fadeb344000 r-xp 00000000 fc:01 414532 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.0
7fadeb344000-7fadeb543000 ---p 00007000 fc:01 414532 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.0
7fadeb543000-7fadeb544000 r--p 00006000 fc:01 414532 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.0
7fadeb544000-7fadeb545000 rw-p 00007000 fc:01 414532 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.0
7fadeb545000-7fadec820000 r-xp 00000000 fc:01 424066 /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
7fadec820000-7fadeca20000 ---p 012db000 fc:01 424066 /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
7fadeca20000-7fadecb99000 r--p 012db000 fc:01 424066 /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
7fadecb99000-7fadeccad000 rw-p 01454000 fc:01 424066 /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
7fadeccad000-7fadeccc1000 rw-p 00000000 00:00 0
7fadeccc1000-7fadece9c000 r-xp 00000000 fc:01 407245 /usr/lib/x86_64-linux-gnu/dri/libgallium.so
7fadece9c000-7faded09c000 ---p 001db000 fc:01 407245 /usr/lib/x86_64-linux-gnu/dri/libgallium.so
7faded09c000-7faded0ab000 r--p 001db000 fc:01 407245 /usr/lib/x86_64-linux-gnu/dri/libgallium.so
7faded0ab000-7faded0ad000 rw-p 001ea000 fc:01 407245 /usr/lib/x86_64-linux-gnu/dri/libgallium.so
It also says that the core was dumped at this time. If needed, I'm happy to provide a gdb backtrace on the dump.