Author Topic: [fixed] r3107: Crash during simple thread destructor  (Read 2042 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
[fixed] r3107: Crash during simple thread destructor
« on: 3 March 2012, 21:55:44 »
I just tried to reproduce this 3.6.0.3 bug on head of trunk (r3107) and I was not able to reproduce it. Happy about this result, I clicked on "Exit" in the main menu, which triggered a different bug:

Code: [Select]
$ ./dev_rungame --starthost
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: option value of option vblank_mode ignored.
megaglest v3.6.1-dev
Compiled using: GNUC: 40601 [64bit] on: Mar  3 2012 22:15:32
SVN: [Rev: 3107M] - using STREFLOP [SSE] - [no-denormals]
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 652] Error detected: signal 11:
Error saved to logfile [/home/tomreyn/.megaglest/error.log]
[2012-03-03 22:44:53] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 416] [In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 652] Error detected: signal 11:
] gameInitialized = 1, program = (nil)
[2012-03-03 22:44:54] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 509] [In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 652] Error detected: signal 11:

Stack Trace:
./megaglest() [0x5ca2f2] address [0x5ca2f2] line: 656
/lib/x86_64-linux-gnu/libc.so.6:() address [0x7fb885e6c420] line: 0
./megaglest:Shared::PlatformCommon::SimpleTaskThread::~SimpleTaskThread() address [0x860c6c] line: 310
./megaglest:Shared::PlatformCommon::SimpleTaskThread::execute() address [0x86281b] line: 403
./megaglest:Shared::Platform::Thread::beginExecution(void*) address [0x89cb6f] line: 81
/usr/lib/libSDL-1.2.so.0:() address [0x7fb888f1b705] line: 0
/usr/lib/libSDL-1.2.so.0:() address [0x7fb888f5f3e9] line: 0
/lib/x86_64-linux-gnu/libpthread.so.0:() address [0x7fb888cf6efc] line: 0
/lib/x86_64-linux-gnu/libc.so.6:clone() address [0x7fb885f1789d] line: 0
]
******************************************************
    #2 An error occurred and MegaGlest will close.
Error msg = [In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 652] Error detected: signal 11:

Stack Trace:
./megaglest() [0x5ca2f2] address [0x5ca2f2] line: 656
/lib/x86_64-linux-gnu/libc.so.6:() address [0x7fb885e6c420] line: 0
./megaglest:Shared::PlatformCommon::SimpleTaskThread::~SimpleTaskThread() address [0x860c6c] line: 310
./megaglest:Shared::PlatformCommon::SimpleTaskThread::execute() address [0x86281b] line: 403
./megaglest:Shared::Platform::Thread::beginExecution(void*) address [0x89cb6f] line: 81
/usr/lib/libSDL-1.2.so.0:() address [0x7fb888f1b705] line: 0
/usr/lib/libSDL-1.2.so.0:() address [0x7fb888f5f3e9] line: 0
/lib/x86_64-linux-gnu/libpthread.so.0:() address [0x7fb888cf6efc] line: 0
/lib/x86_64-linux-gnu/libc.so.6:clone() address [0x7fb885f1789d] line: 0
]

Please report this bug to  http://bugs.megaglest.org
******************************************************
*** glibc detected *** ./megaglest: double free or corruption (fasttop): 0x00007fb86cb76e70 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x78a96)[0x7fb885eaea96]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7fb885eb2d7c]
./megaglest(_ZNSt8_Rb_treeIiSt4pairIKiPN6Shared8Graphics9Texture2DEESt10_Select1stIS6_ESt4lessIiESaIS6_EE8_M_eraseEPSt13_Rb_tree_nodeIS6_E+0x146)[0x5aae26]
./megaglest[0x5c9e23]
./megaglest(_ZN5Glest4Game16ExceptionHandler18handleRuntimeErrorEPKc+0x3a0)[0x5dbbe0]
./megaglest[0x5ca2f2]
/lib/x86_64-linux-gnu/libc.so.6(+0x36420)[0x7fb885e6c420]
./megaglest(_ZN6Shared14PlatformCommon16SimpleTaskThreadD0Ev+0x1c)[0x860c6c]
./megaglest(_ZN6Shared14PlatformCommon16SimpleTaskThread7executeEv+0x34b)[0x86281b]
./megaglest(_ZN6Shared8Platform6Thread14beginExecutionEPv+0xf)[0x89cb6f]
/usr/lib/libSDL-1.2.so.0(+0xf705)[0x7fb888f1b705]
/usr/lib/libSDL-1.2.so.0(+0x533e9)[0x7fb888f5f3e9]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7efc)[0x7fb888cf6efc]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fb885f1789d]
======= Memory map: ========
00400000-009a7000 r-xp 00000000 fd:02 12189707                           /home/tomreyn/SCM/megaglest-trunk/mk/linux/megaglest
00ba7000-00ba8000 r--p 005a7000 fd:02 12189707                           /home/tomreyn/SCM/megaglest-trunk/mk/linux/megaglest
00ba8000-00baa000 rw-p 005a8000 fd:02 12189707                           /home/tomreyn/SCM/megaglest-trunk/mk/linux/megaglest
00baa000-00bbf000 rw-p 00000000 00:00 0
0115f000-02ca7000 rw-p 00000000 00:00 0                                  [heap]
7fb864000000-7fb864440000 rw-p 00000000 00:00 0
7fb864440000-7fb868000000 ---p 00000000 00:00 0
7fb86a5e6000-7fb86a5e7000 ---p 00000000 00:00 0
7fb86a5e7000-7fb86ade7000 rw-p 00000000 00:00 0
7fb86b5e8000-7fb86b5ee000 r-xp 00000000 fd:01 665130                     /lib/x86_64-linux-gnu/libnss_dns-2.13.so
7fb86b5ee000-7fb86b7ed000 ---p 00006000 fd:01 665130                     /lib/x86_64-linux-gnu/libnss_dns-2.13.so
7fb86b7ed000-7fb86b7ee000 r--p 00005000 fd:01 665130                     /lib/x86_64-linux-gnu/libnss_dns-2.13.so
7fb86b7ee000-7fb86b7ef000 rw-p 00006000 fd:01 665130                     /lib/x86_64-linux-gnu/libnss_dns-2.13.so
7fb86b7ef000-7fb86b7ff000 rw-s 13171a000 00:05 6311                      /dev/dri/card0
7fb86b7ff000-7fb86b800000 ---p 00000000 00:00 0
7fb86b800000-7fb86c000000 rw-p 00000000 00:00 0
7fb86c000000-7fb86d34d000 rw-p 00000000 00:00 0
7fb86d34d000-7fb870000000 ---p 00000000 00:00 0
7fb87012c000-7fb87012e000 r-xp 00000000 fd:01 667108                     /lib/libnss_mdns4_minimal.so.2
7fb87012e000-7fb87032d000 ---p 00002000 fd:01 667108                     /lib/libnss_mdns4_minimal.so.2
7fb87032d000-7fb87032e000 r--p 00001000 fd:01 667108                     /lib/libnss_mdns4_minimal.so.2
7fb87032e000-7fb87032f000 rw-p 00002000 fd:01 667108                     /lib/libnss_mdns4_minimal.so.2
7fb87032f000-7fb870330000 ---p 00000000 00:00 0
7fb870330000-7fb870b30000 rw-p 00000000 00:00 0
7fb871b32000-7fb871b33000 ---p 00000000 00:00 0
7fb871b33000-7fb872333000 rw-p 00000000 00:00 0
7fb873335000-7fb873341000 r-xp 00000000 fd:01 665128                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fb873341000-7fb873540000 ---p 0000c000 fd:01 665128                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fb873540000-7fb873541000 r--p 0000b000 fd:01 665128                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fb873541000-7fb873542000 rw-p 0000c000 fd:01 665128                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fb873569000-7fb87356a000 ---p 00000000 00:00 0
7fb87356a000-7fb873d6a000 rw-p 00000000 00:00 0
7fb873d6a000-7fb873d6b000 ---p 00000000 00:00 0
7fb873d6b000-7fb87456b000 rw-p 00000000 00:00 0
7fb87456b000-7fb87456c000 ---p 00000000 00:00 0
7fb87456c000-7fb874d6c000 rw-p 00000000 00:00 0
7fb874d6c000-7fb878d6d000 rw-s 00000000 00:12 333057112                  /run/shm/pulse-shm-711397466
7fb878d6d000-7fb878d6e000 ---p 00000000 00:00 0
7fb878d6e000-7fb87956e000 rw-p 00000000 00:00 0
7fb87956e000-7fb879571000 r-xp 00000000 fd:01 414038                     /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7fb879571000-7fb879770000 ---p 00003000 fd:01 414038                     /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7fb879770000-7fb879771000 r--p 00002000 fd:01 414038                     /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7fb879771000-7fb879772000 rw-p 00003000 fd:01 414038                     /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7fb879b0f000-7fb879b10000 ---p 00000000 00:00 0
7fb879b10000-7fb87a310000 rw-p 00000000 00:00 0
7fb87a310000-7fb87a311000 ---p 00000000 00:00 0
7fb87a311000-7fb87ab11000 rw-p 00000000 00:00 0
7fb87ac25000-7fb87ac35000 rw-s 116d9b000 00:05 6311                      /dev/dri/card0
7fb87ac35000-7fb87ac45000 rw-s 116d8b000 00:05 6311                      /dev/dri/card0
7fb87ac45000-7fb87ac55000 rw-s 116d7b000 00:05 6311                      /dev/dri/card0
7fb87ac55000-7fb87ac65000 rw-s 1168e9000 00:05 6311                      /dev/dri/card0
7fb87ac65000-7fb87ac75000 rw-s 1168d7000 00:05 6311                      /dev/dri/card0
7fb87ac75000-7fb87ac85000 rw-s 1168b5000 00:05 6311                      /dev/dri/card0
7fb87ac85000-7fb87ac95000 rw-s 1168c7000 00:05 6311                      /dev/dri/card0
7fb87ac95000-7fb87ac96000 rw-s 1357f8000 00:05 6311                      /dev/dri/card0
7fb87ac96000-7fb87ac97000 rw-s 1357f7000 00:05 6311                      /dev/dri/card0
7fb87ac97000-7fb87ac98000 rw-s 1357f6000 00:05 6311                      /dev/dri/card0
7fb87ac98000-7fb87ac99000 rw-s 1357f3000 00:05 6311                      /dev/dri/card0
7fb87ac99000-7fb87ac9d000 rw-s 1357ee000 00:05 6311                      /dev/dri/card0
7fb87ac9d000-7fb87aca5000 rw-s 1357e4000 00:05 6311                      /dev/dri/card0
7fb87aca5000-7fb87acab000 rw-s 1357dc000 00:05 6311                      /dev/dri/card0
7fb87aee5000-7fb87aeec000 r-xp 00000000 fd:01 397789                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.0
7fb87aeec000-7fb87b0eb000 ---p 00007000 fd:01 397789                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.0
7fb87b0eb000-7fb87b0ec000 r--p 00006000 fd:01 397789                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.0
7fb87b0ec000-7fb87b0ed000 rw-p 00007000 fd:01 397789                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.0
7fb87b0ed000-7fb87c3c7000 r-xp 00000000 fd:01 399732                     /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
7fb87c3c7000-7fb87c5c7000 ---p 012da000 fd:01 399732                     /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
7fb87c5c7000-7fb87c740000 r--p 012da000 fd:01 399732                     /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
7fb87c740000-7fb87c854000 rw-p 01453000 fd:01 399732                     /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
7fb87c854000-7fb87c868000 rw-p 00000000 00:00 0
7fb87c868000-7fb87ca43000 r-xp 00000000 fd:01 446355                     /usr/lib/x86_64-linux-gnu/dri/libgallium.so
7fb87ca43000-7fb87cc43000 ---p 001db000 fd:01 446355                     /usr/lib/x86_64-linux-gnu/dri/libgallium.so
7fb87cc43000-7fb87cc52000 r--p 001db000 fd:01 446355                     /usr/lib/x86_64-linux-gnu/dri/libgallium.so
7fb87cc52000-7fb87cc54000 rw-p 001ea000 fd:01 446355                     /usr/lib/x86_64-linux-gnu/dri/libgallium.so
7fb87cc54000-7fb87ce1c000 rw-p 00000000 00:00 0
7fb87ce1c000-7fb87cf42000 r-xp 00000000 fd:01 446351                     /usr/lib/x86_64-linux-gnu/dri/libglsl.so
7fb87cf42000-7fb87d141000 ---p 00126000 fd:01 446351                     /usr/lib/x86_64-linux-gnu/dri/libglsl.so
7fb87d141000-7fb87d14a000 r--p 00125000 fd:01 446351                     /usr/lib/x86_64-linux-gnu/dri/libglsl.so
7fb87d14a000-7fb87d14d000 rw-p 0012e000 fd:01 446351                     /usr/lib/x86_64-linux-gnu/dri/libglsl.so
7fb87d14d000-7fb87d14e000 rw-p 00000000 00:00 0
7fb87d14e000-7fb87d395000 r-xp 00000000 fd:01 415058                     /usr/lib/x86_64-linux-gnu/dri/libdricore.so
7fb87d395000-7fb87d594000 ---p 00247000 fd:01 415058                     /usr/lib/x86_64-linux-gnu/dri/libdricore.so
7fb87d594000-7fb87d59e000 r--p 00246000 fd:01 415058                     /usr/lib/x86_64-linux-gnu/dri/libdricore.so
7fb87d59e000-7fb87d5a1000 rw-p 00250000 fd:01 415058                     /usr/lib/x86_64-linux-gnu/dri/libdricore.so
7fb87d5a1000-7fb87d5b7000 rw-p 00000000 00:00 0
7fb87d5b7000-7fb87d736000 r-xp 00000000 fd:01 405726                     /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
7fb87d736000-7fb87d936000 ---p 0017f000 fd:01 405726                     /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
7fb87d936000-7fb87d945000 r--p 0017f000 fd:01 405726                     /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
7fb87d945000-7fb87d947000 rw-p 0018e000 fd:01 405726                     /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
7fb87d947000-7fb87db0f000 rw-p 00000000 00:00 0
7fb87db0f000-7fb87db10000 ---p 00000000 00:00 0
7fb87db10000-7fb87e310000 rw-p 00000000 00:00 0
7fb87e310000-7fb87e311000 ---p 00000000 00:00 0
7fb87e311000-7fb87eb12000 rw-p 00000000 00:00 0
7fb87eb12000-7fb87eb1b000 r-xp 00000000 fd:01 418288                     /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fb87eb1b000-7fb87ed1b000 ---p 00009000 fd:01 418288                     /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fb87ed1b000-7fb87ed1c000 r--p 00009000 fd:01 418288                     /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fb87ed1c000-7fb87ed1d000 rw-p 0000a000 fd:01 418288                     /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fb87ed1d000-7fb87ed26000 r-xp 00000000 fd:01 406182                     /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fb87ed26000-7fb87ef25000 ---p 00009000 fd:01 406182                     /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fb87ef25000-7fb87ef26000 r--p 00008000 fd:01 406182                     /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fb87ef26000-7fb87ef27000 rw-p 00009000 fd:01 406182                     /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fb87ef27000-7fb87ef74000 rw-p 00000000 00:00 0
7fb87ef74000-7fb87ef76000 rw-s 14daec000 00:05 6311                      /dev/dri/card0
7fb87ef76000-7fb87ef78000 rw-s 1357cc000 00:05 6311                      /dev/dri/card0
7fb87ef78000-7fb87ef79000 rw-s 13579e000 00:05 6311                      /dev/dri/card0
7fb87ef79000-7fb87ef7b000 rw-s 1357a3000 00:05 6311                      /dev/dri/card0
7fb87ef7b000-7fb87ef84000 rw-s 1357c3000 00:05 6311                      /dev/dri/card0
7fb87ef84000-7fb87ef8e000 rw-s 1357b9000 00:05 6311                      /dev/dri/card0
7fb87ef8e000-7fb87ef95000 rw-s 1357b0000 00:05 6311                      /dev/dri/card0
7fb87ef95000-7fb87ef9f000 rw-s 1357a5000 00:05 6311                      /dev/dri/card0
7fb87ef9f000-7fb87efa2000 rw-s 1357a0000 00:05 6311                      /dev/dri/card0
7fb87efa2000-7fb87efa8000 rw-s 135798000 00:05 6311                      /dev/dri/card0
7fb87efa8000-7fb87efac000 rw-s 135791000 00:05 6311                      /dev/dri/card0
7fb87efac000-7fb87efb2000 rw-s 13578b000 00:05 6311                      /dev/dri/card0
7fb87efb2000-7fb87efb5000 rw-s 135785000 00:05 6311                      /dev/dri/card0
7fb87efb5000-7fb87efba000 rw-s 135780000 00:05 6311                      /dev/dri/card0
7fb87efba000-7fb87efbd000 rw-s 13577d000 00:05 6311                      /dev/dri/card0
7fb87efbd000-7fb87efc2000 rw-s 135777000 00:05 6311                      /dev/dri/card0
7fb87efc2000-7fb87efd9000 rw-s 135760000 00:05 6311                      /dev/dri/card0
7fb87efd9000-7fb87efe6000 rw-s 135752000 00:05 6311                      /dev/dri/card0
7fb87efe6000-7fb87efef000 rw-s 135749000 00:05 6311                      /dev/dri/card0
7fb87efef000-7fb87effc000 rw-s 135739000 00:05 6311                      /dev/dri/card0
7fb87effc000-7fb87f817000 r--p 00000000 fd:01 394124                     /usr/lib/locale/locale-archive
7fb87f817000-7fb87faca000 r-xp 00000000 fd:01 402271                     /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.8
7fb87faca000-7fb87fcc9000 ---p 002b3000 fd:01 402271                     /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.8
7fb87fcc9000-7fb87fce5000 r--p 002b2000 fd:01 402271                     /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.8
7fb87fce5000-7fb87fce6000 rw-p 002ce000 fd:01 402271                     /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.8
7fb87fce6000-7fb87fd2e000 r-xp 00000000 fd:01 405933                     /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0
7fb87fd2e000-7fb87ff2e000 ---p 00048000 fd:01 405933                     /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0
7fb87ff2e000-7fb87ff2f000 r--p 00048000 fd:01 405933                     /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0
7fb87ff2f000-7fb87ff30000 rw-p 00049000 fd:01 405933                     /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0
7fb87ff30000-7fb87ff47000 r-xp 00000000 fd:01 665123                     /lib/x86_64-linux-gnu/libnsl-2.13.so
7fb87ff47000-7fb880146000 ---p 00017000 fd:01 665123                     /lib/x86_64-linux-gnu/libnsl-2.13.so
7fb880146000-7fb880147000 r--p 00016000 fd:01 665123                     /lib/x86_64-linux-gnu/libnsl-2.13.so
7fb880147000-7fb880148000 rw-p 00017000 fd:01 665123                     /lib/x86_64-linux-gnu/libnsl-2.13.so
7fb880148000-7fb88014a000 rw-p 00000000 00:00 0
7fb88014a000-7fb88014c000 r-xp 00000000 fd:01 655556                     /lib/x86_64-linux-gnu/libkeyutils.so.1.3
7fb88014c000-7fb88034b000 ---p 00002000 fd:01 655556                     /lib/x86_64-linux-gnu/libkeyutils.so.1.3
7fb88034b000-7fb88034c000 r--p 00001000 fd:01 655556                     /lib/x86_64-linux-gnu/libkeyutils.so.1.3
7fb88034c000-7fb88034d000 rw-p 00002000 fd:01 655556                     /lib/x86_64-linux-gnu/libkeyutils.so.1.3
7fb88034d000-7fb880352000 r-xp 00000000 fd:01 397187                     /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7fb880352000-7fb880551000 ---p 00005000 fd:01 397187                     /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7fb880551000-7fb880552000 r--p 00004000 fd:01 397187                     /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7fb880552000-7fb880553000 rw-p 00005000 fd:01 397187                     /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7fb880553000-7fb8805b3000 r-xp 00000000 fd:01 404361                     /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.24
7fb8805b3000-7fb8807b3000 ---p 00060000 fd:01 404361                     /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.24
7fb8807b3000-7fb8807b5000 r--p 00060000 fd:01 404361                     /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.24
Segmentation fault detected, analyzing...

warning: Can't read pathname for load map: I/O error.
[New LWP 11229]
[New LWP 11211]
[New LWP 11202]
[New LWP 11208]
[New LWP 11205]
[New LWP 11210]

[Thread debugging using libthread_db enabled]
64    ../nptl/sysdeps/unix/sysv/linux/raise.c: Datei oder Verzeichnis nicht gefunden.
Core was generated by `./megaglest --starthost'.
Program terminated with signal 6, Aborted.
#0  0x00007fb885e6c3a5 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
    in ../nptl/sysdeps/unix/sysv/linux/raise.c
#0  0x00007fb885e6c3a5 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007fb885e6fb0b in __GI_abort () at abort.c:92
#2  0x00007fb885ea4113 in __libc_message (do_abort=2, fmt=0x7fb885f950d8 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#3  0x00007fb885eaea96 in malloc_printerr (action=3, str=0x7fb885f95210 "double free or corruption (fasttop)", ptr=<optimized out>) at malloc.c:6283
#4  0x00007fb885eb2d7c in __GI___libc_free (mem=<optimized out>) at malloc.c:3738
#5  0x00000000005aae26 in deallocate (__p=0x7fb86cb76e70, this=<optimized out>) at /usr/include/c++/4.6/ext/new_allocator.h:98
#6  _M_put_node (__p=0x7fb86cb76e70, this=<optimized out>) at /usr/include/c++/4.6/bits/stl_tree.h:373
#7  _M_destroy_node (__p=0x7fb86cb76e70, this=<optimized out>) at /usr/include/c++/4.6/bits/stl_tree.h:395
#8  _M_erase (__x=0x7fb86cb76e70, this=0x7fb86cb4a5a8) at /usr/include/c++/4.6/bits/stl_tree.h:1066
#9  _M_erase (__x=0x7fb86cb75dc0, this=0x7fb86cb4a5a8) at /usr/include/c++/4.6/bits/stl_tree.h:1064
#10 _M_erase (__x=0x7fb86cb58a80, this=0x7fb86cb4a5a8) at /usr/include/c++/4.6/bits/stl_tree.h:1064
#11 std::_Rb_tree<int, std::pair<int const, Shared::Graphics::Texture2D*>, std::_Select1st<std::pair<int const, Shared::Graphics::Texture2D*> >, std::less<int>, std::allocator<std::pair<int const, Shared::Graphics::Texture2D*> > >::_M_erase (this=0x7fb86cb4a5a8, __x=0x7fb86cb38c50) at /usr/include/c++/4.6/bits/stl_tree.h:1064
#12 0x00000000005c9e23 in clear (this=0x7fb86cb4a5a8) at /usr/include/c++/4.6/bits/stl_tree.h:799
#13 clear (this=<optimized out>) at /usr/include/c++/4.6/bits/stl_map.h:704
#14 Glest::Game::cleanupProcessObjects () at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:175
#15 0x00000000005dbbe0 in Glest::Game::ExceptionHandler::handleRuntimeError (msg=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:589
#16 0x00000000005ca2f2 in Glest::Game::handleSIGSEGV (sig=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:656
#17 <signal handler called>
#18 0x0000000000860c6c in ~SimpleTaskThread (this=0x7fb86401a670, __in_chrg=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/simple_threads.cpp:310
#19 Shared::PlatformCommon::SimpleTaskThread::~SimpleTaskThread (this=0x7fb86401a670, __in_chrg=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/simple_threads.cpp:311
#20 0x000000000086281b in Shared::PlatformCommon::SimpleTaskThread::execute (this=0x7fb86401a670) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/simple_threads.cpp:401
#21 0x000000000089cb6f in Shared::Platform::Thread::beginExecution (data=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/sdl/thread.cpp:79
#22 0x00007fb888f1b705 in ?? () from /usr/lib/libSDL-1.2.so.0
#23 0x00007fb888f5f3e9 in ?? () from /usr/lib/libSDL-1.2.so.0
#24 0x00007fb888cf6efc in start_thread (arg=0x7fb86ade6700) at pthread_create.c:304
#25 0x00007fb885f1789d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#26 0x0000000000000000 in ?? ()
« Last Edit: 5 March 2012, 23:14:58 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: r3107: Malloc when exiting
« Reply #1 on: 4 March 2012, 07:07:05 »
Try svn again and see if you get this segfault (it should get a better stack trace if repeated)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: r3107: Malloc when exiting
« Reply #2 on: 4 March 2012, 13:09:37 »
Happily. Here we go again:

Terminal output:
Code: [Select]
$ ./dev_rungame --starthost
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: option value of option vblank_mode ignored.
megaglest v3.6.1-dev
Compiled using: GNUC: 40601 [64bit] on: Mar  4 2012 13:58:17
SVN: [Rev: 3109M] - using STREFLOP [SSE] - [no-denormals]
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 652] Error detected: signal 11:
Error saved to logfile [/home/tomreyn/.megaglest/error.log]

gdb backtrace:
Code: [Select]
[LWP spawning redacted out]
warning: Can't read pathname for load map: I/O error.
[Thread debugging using libthread_db enabled]
Core was generated by `./megaglest --starthost'.
Program terminated with signal 11, Segmentation fault.
#0  Glest::Game::Renderer::getCentered3DPos (text=..., font=0x0, pos=..., w=90, h=22, centeredW=true, centeredH=true, this=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:8347
8347    }}//end namespace
#0  Glest::Game::Renderer::getCentered3DPos (text=..., font=0x0, pos=..., w=90, h=22, centeredW=true, centeredH=true, this=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:8347
#1  0x0000000000580963 in Glest::Game::Renderer::renderTextBoundingBox3D (this=0xbace20, text=..., font=0x0, color=..., x=<optimized out>, y=<optimized out>, w=90, h=22, centeredW=true, centeredH=true) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:2468
#2  0x0000000000580eb5 in Glest::Game::Renderer::renderButton (this=0xbace20, button=0x7fd6b0018120, fontColorOverride=<optimized out>, lightedOverride=0x0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:2786
#3  0x00000000005832b9 in renderButton (button=0x7fd6b0018120, this=<optimized out>, fontColorOverride=<optimized out>, lightedOverride=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:2676
#4  Glest::Game::Renderer::renderMessageBox (this=0xbace20, messageBox=0x7fd6b0000be0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:3217
#5  0x00000000005e77d4 in Glest::Game::Program::renderProgramMsgBox (this=0x7fd6b0000b90) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/program.cpp:445
#6  0x000000000068aa7f in Glest::Game::MenuStateCustomGame::render (this=0x2699610) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/menu/menu_state_custom_game.cpp:1874
#7  0x000000000066320f in Glest::Game::MainMenu::render (this=0x7fd6b065edd0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/menu/main_menu.cpp:121
#8  0x00000000005e68fc in Glest::Game::Program::loopWorker (this=0x7fd6b0000b90) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/program.cpp:360
#9  0x00000000005dc61d in Glest::Game::ExceptionHandler::handleRuntimeError (msg=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:527
#10 0x00000000005ca802 in Glest::Game::handleSIGSEGV (sig=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:656
#11 <signal handler called>
#12 0x0000000000861ed1 in Shared::PlatformCommon::SimpleTaskThread::~SimpleTaskThread (this=0x7fd6b1197b00, __in_chrg=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/simple_threads.cpp:312
#13 0x0000000000862019 in Shared::PlatformCommon::SimpleTaskThread::~SimpleTaskThread (this=0x7fd6b1197b00, __in_chrg=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/simple_threads.cpp:323
#14 0x0000000000863c3b in Shared::PlatformCommon::SimpleTaskThread::execute (this=0x7fd6b1197b00) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/simple_threads.cpp:413
#15 0x000000000089df8f in Shared::Platform::Thread::beginExecution (data=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/sdl/thread.cpp:79
#16 0x00007fd6c4486705 in ?? () from /usr/lib/libSDL-1.2.so.0
#17 0x00007fd6c44ca3e9 in ?? () from /usr/lib/libSDL-1.2.so.0
#18 0x00007fd6c4261efc in start_thread (arg=0x7fd6a7fe9700) at pthread_create.c:304
#19 0x00007fd6c148289d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#20 0x0000000000000000 in ?? ()

error.log:
Code: [Select]
[2012-03-04 14:00:50] Runtime Error information:
======================================================
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 652] Error detected: signal 11:

Stack Trace:
./megaglest() [0x5ca802] address [0x5ca802] line: 656
/lib/x86_64-linux-gnu/libc.so.6:() address [0x7fd6c13d7420] line: 0
./megaglest:Shared::PlatformCommon::SimpleTaskThread::~SimpleTaskThread() address [0x861ed1] line: 312
./megaglest:Shared::PlatformCommon::SimpleTaskThread::~SimpleTaskThread() address [0x862019] line: 323
./megaglest:Shared::PlatformCommon::SimpleTaskThread::execute() address [0x863c3b] line: 415
./megaglest:Shared::Platform::Thread::beginExecution(void*) address [0x89df8f] line: 81
/usr/lib/libSDL-1.2.so.0:() address [0x7fd6c4486705] line: 0
/usr/lib/libSDL-1.2.so.0:() address [0x7fd6c44ca3e9] line: 0
/lib/x86_64-linux-gnu/libpthread.so.0:() address [0x7fd6c4261efc] line: 0
/lib/x86_64-linux-gnu/libc.so.6:clone() address [0x7fd6c148289d] line: 0

This bug may actually be different to the above, since the way I produced it was different this time. I did not get around to exit the game, but this happened already when I followed the procedure described in this 3.6.0.3 bug. So apparently this bug can be reproduced on r3109, too.

Please let me know if I should provide more/less/different information in the future or if you want me to reproduce it again.
« Last Edit: 4 March 2012, 13:14:46 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: r3107: Crash during simple thread destructor
« Reply #3 on: 5 March 2012, 22:57:13 »
Fixed in svn (i was able to reproduce and discover the cause).

Thanks

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: r3107: Crash during simple thread destructor
« Reply #4 on: 5 March 2012, 23:14:37 »
And I can no longer reproduce it on r3110, thanks!
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·