Author Topic: [fixed] r4462: SegF after timeout  (Read 702 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
[fixed] r4462: SegF after timeout
« on: 18 June 2013, 21:50:27 »
Tonight we played a 3 player game on Atze's server with Prax. Pizza90 (Windows 7-64) and I (atibox) were clients.

During heavy fighting I received a message saying "timeout waiting for server" in the game console. Then the game continued for about 5 seconds (where I could give orders), and I got the "Connection lost to server" (or similar) message box which usually follows up on the earlier message. Once I confirmed this second message, MegaGlest went into a segmentation fault.

Code: [Select]
megaglest v3.8-dev
Compiled using: GNUC: 40703 [64bit] on: Jun 18 2013 22:55:04 platform: Linux-X64 endianness: little
SVN: [Rev: 4462] - using STREFLOP [SSE] - [no-denormals]
radeon: Acquired access to Hyper-Z.
[2013-06-18 23:38:18] *ERROR* In [network_interface.cpp::DisplayErrorMessage Line: 145] sErr [Timeout waiting for message.]
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5529] Error detected: signal 11:
Error saved to logfile [/home/tomreyn/.megaglest/error.log]
[2013-06-18 23:38:38] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 643] [In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5529] Error detected: signal 11:
] gameInitialized = 1, program = 0x2e27920
[2013-06-18 23:38:38] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 662] [In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5529] Error detected: signal 11:

Stack Trace:
./megaglest:Glest::Game::ExceptionHandler::handleRuntimeError(char const*, bool)address [0x688487] line: 653
./megaglest() [0x6886ff]address [0x6886ff]
/lib/x86_64-linux-gnu/libc.so.6:()address [0x7f4e38a5a0b0] line: 0
[0x1143e200]address [0x1143e200] line: 0
]
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
megaglest: ../../src/xcb_io.c:179: dequeue_pending_request: Zusicherung »!xcb_xlib_unknown_req_in_deq« nicht erfüllt.

======= In MinidumpCallback...

***ERROR details captured:
Crash minidump folder: /home/tomreyn/.megaglest/
file: /home/tomreyn/.megaglest//1b2a4931-1712-292c-6bc99c40-003030a0.dmp
Succeeded: 1
******************************************************
    An unhandled error was detected.

A crash dump file has been created in the folder:
/home/tomreyn/.megaglest/
Crash dump filename is: /home/tomreyn/.megaglest//1b2a4931-1712-292c-6bc99c40-003030a0.dmp
******************************************************

Segmentation fault detected, analyzing...

warning: [New LWP 23774]
[New LWP 23819]
[New LWP 23816]
[New LWP 23765]
[New LWP 23818]
[New LWP 23815]
[New LWP 23754]
[New LWP 23817]
[New LWP 23814]
[New LWP 23812]
[New LWP 23756]
[New LWP 23758]
[New LWP 23760]
[New LWP 23813]
[New LWP 23763]
[New LWP 23761]
[New LWP 23764]
[New LWP 23771]
Can't read pathname for load map: Eingabe-/Ausgabefehler.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff569c1000
56    ../nptl/sysdeps/unix/sysv/linux/raise.c: Datei oder Verzeichnis nicht gefunden.
Core was generated by `./megaglest'.
Program terminated with signal 6, Aborted.
#0  0x00007f4e38a5a037 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#0  0x00007f4e38a5a037 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007f4e38a5d698 in __GI_abort () at abort.c:90
#2  0x00007f4e38a52e03 in __assert_fail_base (fmt=0x7f4e297c2dc2 <Address 0x7f4e297c2dc2 out of bounds>, assertion=assertion@entry=0x7f4e3be70ea5 "!xcb_xlib_unknown_req_in_deq", file=file@entry=0x7f4e3be70e92 "../../src/xcb_io.c", line=line@entry=179, function=function@entry=0x7f4e3be70fa0 "dequeue_pending_request") at assert.c:92
#3  0x00007f4e38a52eb2 in __GI___assert_fail (assertion=0x7f4e3be70ea5 "!xcb_xlib_unknown_req_in_deq", file=0x7f4e3be70e92 "../../src/xcb_io.c", line=179, function=0x7f4e3be70fa0 "dequeue_pending_request") at assert.c:101
#4  0x00007f4e3bdff33c in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#5  0x00007f4e3be0041b in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#6  0x00007f4e3bdfbd5d in XSync () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#7  0x00007f4e3c13a061 in dri2XcbSwapBuffers (remainder=<optimized out>, divisor=0, target_msc=0, dpy=<optimized out>, pdraw=<optimized out>) at dri2_glx.c:788
#8  dri2SwapBuffers (pdraw=0x32fcd40, target_msc=0, divisor=0, remainder=<optimized out>, flush=<optimized out>) at dri2_glx.c:846
#9  0x00000000006a2ae8 in Glest::Game::BattleEnd::render (this=0xded1d40) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/battle_end.cpp:757
#10 0x00000000006b0e64 in Glest::Game::Program::loopWorker (this=0x2e27920) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/program.cpp:422
#11 0x00000000006b3d75 in Glest::Game::Program::loop (this=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/program.cpp:369
#12 0x000000000068838d in Glest::Game::ExceptionHandler::handleRuntimeError (msg=msg@entry=0x7f4e16ff7900 "In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5529] Error detected: signal 11:\n", getStackTraceString=getStackTraceString@entry=true) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:684
#13 0x00000000006886ff in Glest::Game::handleSIGSEGV (sig=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:5533
#14 <signal handler called>
#15 0x000000001143e200 in ?? ()
#16 0x0000000000a2e83f in cleanupPendingThreads (this=0x7f4e04027c10) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/sdl/thread.cpp:43
#17 Shared::Platform::ThreadGarbageCollector::execute (this=0x7f4e04027c10) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/sdl/thread.cpp:61
#18 0x0000000000a2e10a in Shared::Platform::Thread::beginExecution (data=0x7f4e04027c10) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/sdl/thread.cpp:183
#19 0x00007f4e3c804196 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#20 0x00007f4e3c844e49 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#21 0x00007f4e3c5dbf8e in start_thread (arg=0x7f4e16ffc700) at pthread_create.c:311
#22 0x00007f4e38b1ce1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
« Last Edit: 18 June 2013, 21:56:00 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
Re: r4462: SegF after timeout
« Reply #1 on: 18 June 2013, 21:55:43 »
Looks like Titi just reproduced this by pulling the network cable of his server when I was a client, giving me:

Code: [Select]
megaglest v3.8-dev
Compiled using: GNUC: 40703 [64bit] on: Jun 18 2013 22:55:04 platform: Linux-X64 endianness: little
SVN: [Rev: 4462] - using STREFLOP [SSE] - [no-denormals]
radeon: Acquired access to Hyper-Z.
[2013-06-18 23:51:54] *ERROR* In [network_interface.cpp::DisplayErrorMessage Line: 145] sErr [Timeout waiting for message.]
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5529] Error detected: signal 11:
Error saved to logfile [/home/tomreyn/.megaglest/error.log]
[2013-06-18 23:52:14] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 643] [In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5529] Error detected: signal 11:
] gameInitialized = 1, program = 0x1566920
[2013-06-18 23:52:15] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 662] [In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5529] Error detected: signal 11:

Stack Trace:
./megaglest:Glest::Game::ExceptionHandler::handleRuntimeError(char const*, bool)address [0x688487] line: 653
./megaglest() [0x6886ff]address [0x6886ff]
/lib/x86_64-linux-gnu/libc.so.6:()address [0x7f6ab19930b0] line: 0
./megaglest:Shared::Platform::ThreadGarbageCollector::execute()address [0xa2e83c] line: 61
./megaglest:Shared::Platform::Thread::beginExecution(void*)address [0xa2e10a] line: 187
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0:()address [0x7f6ab573d196] line: 0
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0:()address [0x7f6ab577de49] line: 0
/lib/x86_64-linux-gnu/libpthread.so.0:()address [0x7f6ab5514f8e] line: 0
/lib/x86_64-linux-gnu/libc.so.6:clone()address [0x7f6ab1a55e1d] line: 0
]

Segmentation fault detected, analyzing...

warning: [New LWP 24642]
[New LWP 24622]
[New LWP 24660]
[New LWP 24661]
[New LWP 24662]
[New LWP 24663]
[New LWP 24629]
[New LWP 24637]
[New LWP 24626]
[New LWP 24628]
[New LWP 24633]
[New LWP 24631]
[New LWP 24624]
[New LWP 24632]
Can't read pathname for load map: Eingabe-/Ausgabefehler.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff4c5fe000
Core was generated by `./megaglest'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f6ab2544326 in fribidi_get_par_embedding_levels () from /usr/lib/x86_64-linux-gnu/libfribidi.so.0
#0  0x00007f6ab2544326 in fribidi_get_par_embedding_levels () from /usr/lib/x86_64-linux-gnu/libfribidi.so.0
#1  0x00007f6ab2545076 in fribidi_log2vis () from /usr/lib/x86_64-linux-gnu/libfribidi.so.0
#2  0x000000000098a1ee in Shared::Graphics::Font::bidi_cvt (str_=...) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/graphics/font.cpp:334
#3  0x00000000009accc4 in Shared::Graphics::Gl::TextRenderer3DGl::render (this=0x1517d30, text=..., x=480, y=420, centered=<optimized out>, color=0x0) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/graphics/gl/text_renderer_gl.cpp:393
#4  0x00000000006a00ac in Glest::Game::BattleEnd::render (this=0xf522a40) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/battle_end.cpp:641
#5  0x00000000006b0e64 in Glest::Game::Program::loopWorker (this=0x1566920) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/program.cpp:422
#6  0x00000000006b3d75 in Glest::Game::Program::loop (this=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/program.cpp:369
#7  0x000000000068838d in Glest::Game::ExceptionHandler::handleRuntimeError (msg=msg@entry=0x7f6a98ff6900 "In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5529] Error detected: signal 11:\n", getStackTraceString=getStackTraceString@entry=true) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:684
#8  0x00000000006886ff in Glest::Game::handleSIGSEGV (sig=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:5533
#9  <signal handler called>
#10 0x0000000000a2e83c in cleanupPendingThreads (this=0x7f6a7c027c10) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/sdl/thread.cpp:43
#11 Shared::Platform::ThreadGarbageCollector::execute (this=0x7f6a7c027c10) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/sdl/thread.cpp:61
#12 0x0000000000a2e10a in Shared::Platform::Thread::beginExecution (data=0x7f6a7c027c10) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/sdl/thread.cpp:183
#13 0x00007f6ab573d196 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#14 0x00007f6ab577de49 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#15 0x00007f6ab5514f8e in start_thread (arg=0x7f6a98ffb700) at pthread_create.c:311
#16 0x00007f6ab1a55e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
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: r4462: SegF after timeout
« Reply #2 on: 18 June 2013, 22:41:52 »
Try rev 4464

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: r4462: SegF after timeout
« Reply #3 on: 20 June 2013, 21:52:42 »
Thanks, that's fixed.

On a side note, the following message showed up two in three times Titi and I tried to reproduce this (and could not), as soon as I got disconnected from the game server (but not from the Internet):
Code: [Select]
===> IRC Could not run the session: No error run_result = 3
An issue with blocking I/O maybe?
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: r4462: SegF after timeout
« Reply #4 on: 20 June 2013, 21:56:23 »
No its likely that we leave the IRC channel in the thread, and the main thread exits abruptly, no need to worry about it.

 

anything