Author Topic: [not a bug] r3351: Bad allocation on custom game menu (masterserver down)  (Read 566 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
With the masterserver being unavailable due to a planned outage, I tried to start a custom game on r3351. When entering the custom game menu,  before anything is drawn on screen, the game crashes with:

Code: [Select]
$ ./dev_rungame
Wrong JPEG library version: library is 80, caller expects 62
terminate called after throwing an instance of 'Shared::Platform::megaglest_runtime_error'
  what():  std::bad_alloc
Stack Trace:
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&) address [0x9b61b6] line: 246
./megaglest:Shared::PlatformCommon::SimpleTaskThread::execute() address [0x9654a2] line: 443
./megaglest:Shared::Platform::Thread::beginExecution(void*) address [0x9b629f] line: 81
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0:() address [0x7ffa80cb8fd5] line: 0
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0:() address [0x7ffa80cfc999] line: 0
/lib/x86_64-linux-gnu/libpthread.so.0:() address [0x7ffa80a90e9a] line: 0
/lib/x86_64-linux-gnu/libc.so.6:clone() address [0x7ffa7dab44bd] line: 0

megaglest v3.6.1-dev
Compiled using: GNUC: 40603 [64bit] on: May 22 2012 23:57:48
SVN: [Rev: 3351M] - using STREFLOP [SSE] - [no-denormals]
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 4712] Error detected: signal 11:
[2012-05-22 23:59:07] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/common/simple_threads.cpp::execute Line: 437] Error [std::bad_alloc]

Segmentation fault detected, analyzing...

Please also review the GDB backtrace. And error.log file has been written but is empty.

This is fully reproducable here, so if you need a debug.log or similar, please say so.
« Last Edit: 23 May 2012, 22:46:51 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 · · ·

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Thanks to Softcoder for helping me diganose this further - it turned out I had a broken build due to changed dependencies.
Now that I have done a full rebuild, this issue no longer occurs.
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 · · ·