View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0002574 | Spring engine | General | public | 2011-07-26 02:29 | 2011-07-27 00:30 | ||||
Reporter | abma | ||||||||
Assigned To | abma | ||||||||
Priority | normal | Severity | crash | Reproducibility | sometimes | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 0.82.7+git | ||||||||
Target Version | 83.0 | Fixed in Version | |||||||
Summary | 0002574: (master) crash when sync-debugging in Logger.cpp:157 | ||||||||
Description | to reproduce: compile spring with cmake -DSYNCDEBUG=TRUE -DTRACE_SYNC=TRUE . copy aitest + connect.txt into ~/.spring/ run: ./spring aitest.txt ./spring connect.txt in spring type: /cheat /desync if it doesn't crash, just unpause and try again until it crashes... the chance of a crash seems to increase, the longer the game was running before typing /desync (seems to work every time after about 1 minute game time....) | ||||||||
Additional Information | [f=0000463] [SD] Client: 108 / 122 [f=0000463] [SD] Client: 109 / 122 [f=0000463] Error: Segmentation fault (SIGSEGV) in spring 0.82+.4.0 (Debug Sync-Trace Sync-Debug) [f=0000463] Error: Stacktrace: [f=0000463] Error: <0> /lib/x86_64-linux-gnu/libc.so.6(+0x33d80) [0x7f50dd825d80] [f=0000463] Error: <1> /usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZNKSs4findEcm+0x18) [0x7f50de0c3468] [f=0000463] Error: <2> /home/abma/dev/spring/master/rts/System/Sync/Logger.cpp:157 [f=0000463] Error: <3> /home/abma/dev/spring/master/rts/System/Sync/SyncDebugger.cpp:263 [f=0000463] Error: <4> /home/abma/dev/spring/master/rts/Game/GameServer.cpp:1589 [f=0000463] Error: <5> /home/abma/dev/spring/master/rts/Game/GameServer.cpp:1683 [f=0000463] Error: <6> /home/abma/dev/spring/master/rts/Game/GameServer.cpp:2122 [f=0000463] Error: <7> /usr/include/boost/bind/mem_fn_template.hpp:50 [f=0000463] Error: <8> /usr/include/boost/bind/bind.hpp:254 [f=0000463] Error: <9> /usr/include/boost/bind/bind_template.hpp:21 | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|
abma (administrator) 2011-07-26 02:41 |
an other one: [f=0000954] Error: <0> /lib/x86_64-linux-gnu/libc.so.6(+0x33d80) [0x7f5075946d80] [f=0000954] Error: <1> /lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x1bd6) [0x7f507595a436] [f=0000954] Error: <2> /lib/x86_64-linux-gnu/libc.so.6(_IO_fprintf+0x84) [0x7f5075963b24] [f=0000954] Error: <3> /home/abma/dev/spring/master/rts/System/Sync/Logger.cpp:203 [f=0000954] Error: <4> /home/abma/dev/spring/master/rts/System/Sync/SyncDebugger.cpp:302 [f=0000954] Error: <5> /home/abma/dev/spring/master/rts/Game/NetCommands.cpp:1040 [f=0000954] Error: <6> /home/abma/dev/spring/master/rts/Game/Game.cpp:907 [f=0000954] Error: <7> /home/abma/dev/spring/master/rts/System/SpringApp.cpp:980 [f=0000954] Error: <8> /home/abma/dev/spring/master/rts/System/SpringApp.cpp:1058 [f=0000954] Error: <9> /home/abma/dev/spring/master/rts/System/SpringApp.cpp:1162 |
abma (administrator) 2011-07-26 02:49 |
another one with bt full: [f=0001862] [SD] Client: 145 / 482 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffceff8700 (LWP 22006)] 0x00007ffff50cf468 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char, unsigned long) const () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (gdb) bt full #0 0x00007ffff50cf468 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char, unsigned long) const () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 No symbol table info available. #1 0x000000000109c2c3 in CLogger::FlushBuffer (this=0x1daf900) at /home/abma/dev/spring/master/rts/System/Sync/Logger.cpp:157 open = 1665 close = 13682 buf1 = '\000' <repeats 4095 times> nl = 0x0 __PRETTY_FUNCTION__ = "void CLogger::FlushBuffer()" command = <incomplete type> runTheCommand = true buf2 = '\000' <repeats 1128 times>"\276, +\207\364\377\177\000\000 7\377\316\377\177\000\000\020\067\377\316\377\177\000\000\037\000\000\000\000\000\000\000\230\070\377\316\377\177\000\000\060\020`\001\000\000\000\000rR\204\364\377\177\000\000V\020`\001", '\000' <repeats 28 times>, "\n", '\000' <repeats 39 times>"\276, +\207\364\377\177\000\000\240\067\377\316\377\177\000\000\220\067\377\316\377\177\000\000\377\377\377\377\000\000\000\000\030\071\377\316\377\177\000\000\300\016`\001\000\000\000\000\266\071\204\364\377\177\000\000 ", '\000' <repeats 27 times>"\305, \065\377\316\026\000\000\000\000\000\000\000\377\377\377\377\377\377\377\377\342\001", '\000' <repeats 26 times>, "\002", '\000' <repeats 15 times>, "H6\377\316 ", '\000' <repeats 39 times>"\305, \065\377\316", '\000' <repeats 16 times>, "E6\377\316\200~\204\364\377\177\000\000\377\377\377\377\377\377\377\377\342\001\000\000\000\000\000\000\310\065\377\316\377\177\000\000@\020`\001\000\000\000\000\000\000\000\000"... it = {_M_current = 0x7fffe4f73230} #2 0x000000000109d460 in CSyncDebugger::ServerReceived (this=0x1daf960, inbuf=0x97d8950 ",\004 \001") at /home/abma/dev/spring/master/rts/System/Sync/SyncDebugger.cpp:262 syncDebugPacket = true __PRETTY_FUNCTION__ = "bool CSyncDebugger::ServerReceived(const unsigned char*)" ---Type <return> to continue, or q <return> to quit--- 0000003 0x0000000000ac41f1 in CGameServer::ProcessPacket (this=0x7fffe400e710, playerNum=1, packet=...) at /home/abma/dev/spring/master/rts/Game/GameServer.cpp:1588 inbuf = 0x97d8950 ",\004 \001" a = 1 msgCode = 44 0000004 0x0000000000ac6dc0 in CGameServer::ServerReadNet (this=0x7fffe400e710) at /home/abma/dev/spring/master/rts/Game/GameServer.cpp:1683 droppablePacket = true bwLimitWasReached = false numDropped = 0 packet = {px = 0x92e7a10, pn = {pi_ = 0x29bfeb0}} ahead = 0 bwLimitIsReached = false dropPacket = false a = 1 updateBandwidth = 0.930000007 0000005 0x0000000000ac9b6d in CGameServer::UpdateLoop (this=0x7fffe400e710) at /home/abma/dev/spring/master/rts/Game/GameServer.cpp:2121 scoped_lock = {_vptr.RecursiveScopedLock = 0x1588030, sl_lock = "\270\351\000\344\377\177\000\000\001\000\000\000\000\000\000"} #6 0x0000000000aed23c in boost::_mfi::mf0<void, CGameServer>::operator() (this=0x7fffe40132a0, p=0x7fffe400e710) at /usr/include/boost/bind/mem_fn_template.hpp:49 No locals. #7 0x0000000000aed1ac in boost::_bi::list1<boost::_bi::value<CGameServer*> >::operator()<boost::_mfi::mf0<void, CGameServer>, boost::_bi::list0> (this=0x7fffe40132b0, f=..., a=...) at /usr/include/boost/bind/bind.hpp:253 No locals. ---Type <return> to continue, or q <return> to quit--- #8 0x0000000000aed15b in boost::_bi::bind_t<void, boost::_mfi::mf0<void, CGameServer>, boost::_bi::list1<boost::_bi::value<CGameServer*> > >::operator() (this=0x7fffe40132a0) at /usr/include/boost/bind/bind_template.hpp:20 a = {<No data fields>} #9 0x0000000000aecfca in boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, CGameServer>, boost::_bi::list1<boost::_bi::value<CGameServer*> > > >::run (this=0x7fffe4013170) at /usr/include/boost/thread/detail/thread.hpp:56 No locals. 0000010 0x00007ffff602b16e in thread_proxy () from /usr/lib/libboost_thread.so.1.42.0 No symbol table info available. #11 0x00007ffff792ed8c in start_thread (arg=0x7fffceff8700) at pthread_create.c:304 pd = 0x7fffceff8700 now = <value optimized out> unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736666240768, -5827772866291354755, 140737347034624, 140736666241472, 0, 3, 5827669507881775997, 5827790209851274109}, mask_was_saved = 0}}, priv = { pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}} not_first_call = 0 robust = <value optimized out> sp = <value optimized out> freesize = <value optimized out> __PRETTY_FUNCTION__ = "start_thread" 0000012 0x00007ffff48e404d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 No locals. 0000013 0x0000000000000000 in ?? () No symbol table info available. |
abma (administrator) 2011-07-26 04:16 |
and an ohter one, this time a real desync! (gdb) bt full #0 __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97 No locals. #1 0x00007f2ad01a580f in _L_lock_12013 () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #2 0x00007f2ad01a38d8 in __libc_free (mem=0x7f2ac0000020) at malloc.c:3736 ar_ptr = 0x7f2ac0000020 p = 0x7f2ac0c3ae60 hook = <value optimized out> 0000003 0x00007f2ad09f2581 in std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 No symbol table info available. 0000004 0x000000000109c85a in CLogger::FlushBuffer (this=0x1daf900) at /home/abma/dev/spring/master/rts/System/Sync/Logger.cpp:150 buf1 = "\220Z#\003\000\000\000\000\300\326\325\311*\177\000\000\003\000\000\000\000\000\000\000 \272\002", '\000' <repeats 13 times>"\311, \370\240\310*\177\000\000\304\026\206\317\377\177\000\000?\205\311*\177\000\000\000\000\000\200\001\335\001@1\000\000\000\060\000\000\000\070\000\000\000\065\000\000\000.\000\000\000\065\000\000\000\070\000\000\000\377\177\000\000\060!\206\317\377\177\000\000\220\032\206\317\377\177\000\000\006?\027\320*\177\000\000\371\377\377\377\377\377\377\377", '\000' <repeats 15 times>"\372, \000\000\000\000\000\000\000\000\214\242'\320*\177\000\000\216\026\206\317\377\177\000\000\000\000\000g.", '\000' <repeats 11 times>, "\034\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\b", '\000' <repeats 23 times>, "\b\000\000\000\000\000\000\000\260\030\206\317\377\177\000\000\355G\362\000\000\000\000\000\000\031\206\317\377\177\000\000\064H\362", '\000' <repeats 11 times>... nl = 0x7fffcf863020 "\340\\(\003" ---Type <return> to continue, or q <return> to quit--- __PRETTY_FUNCTION__ = "void CLogger::FlushBuffer()" command = <incomplete type> runTheCommand = false buf2 = "0\000\000\000\000\000\000\000\260(\206\317\377\177\000\000\220\325\332\001\000\000\000\000\240\323\332\001\000\000\000\000\327(\206\317\377\177\000\000\027\000\000\000\000\000\000\000?\331\300*\177\000\000\031\216\237\320*\177\000\000\230\224\327\300*\177\000\000\246\260\n\001\000\000\000\000\070\034g\300*\177\000\000\277(\206\317\377\177\000\000\327(\206\317\377\177\000\000\300(\206\317\377\177\000\000h\000\000\000\002\030\000\020\027\000\000\000\000\000\000\000\060\252\303\300*\177\000\000p6L\000\000\000\000\000\300(\206\317\377\177\000\000\277(\206\317\377\177\000\000\070\347\220\t\000\000\000\000s\251\237\320*\177\000\000\070\347\220\t\000\000\000\000\243\217\237\320*\177\000\000\001\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\340\060\206\317\377\177\000\000\375o\a\001\000\000\000\000\b1\206\317\377\177\000\000L\245`\001\000\000\000\000\220\325\332\001\000\000\000\000\240\323\332\001\000\000\000\000H\252\303\300*\177\000\000\067\247\200\311*\177\000\000[SD] Clien"... it = {_M_current = 0x7f2aa4160328} 0000005 0x000000000109d615 in CSyncDebugger::ClientReceived (this=0x1daf960, inbuf=0x7f2aa405ba50 "+\017\005\312\001") at /home/abma/dev/spring/master/rts/System/Sync/SyncDebugger.cpp:301 syncDebugPacket = true #6 0x0000000000b0ee95 in CGame::ClientReadNet (this=0x7f2ac018ce80) at /home/abma/dev/spring/master/rts/Game/NetCommands.cpp:1040 inbuf = 0x7f2aa405ba50 "+\017\005\312\001" dataLength = 7 packetCode = 43 '+' ---Type <return> to continue, or q <return> to quit--- packet = {px = 0x7f2aa404a810, pn = {pi_ = 0x7f2aa4188170}} procstarttime = 260454 __PRETTY_FUNCTION__ = "void CGame::ClientReadNet()" #7 0x0000000000a8cd96 in CGame::Update (this=0x7f2ac018ce80) at /home/abma/dev/spring/master/rts/Game/Game.cpp:905 timeNow = 260454 difTime = 66 dif = 0.0659999996 #8 0x000000000109909f in SpringApp::UpdateSim (this=0x7fffcf8642d0, ac=0x7f2ac018ce80) at /home/abma/dev/spring/master/rts/System/SpringApp.cpp:980 ret = false #9 0x0000000001099113 in SpringApp::Update (this=0x7fffcf8642d0) at /home/abma/dev/spring/master/rts/System/SpringApp.cpp:1058 ret = 1 0000010 0x0000000001099381 in SpringApp::Run (this=0x7fffcf8642d0, argc=2, argv=0x7fffcf864498) at /home/abma/dev/spring/master/rts/System/SpringApp.cpp:1162 No locals. #11 0x0000000001079983 in MainFunc (argc=2, argv=0x7fffcf864498, ret=0x7fffcf86437c) at /home/abma/dev/spring/master/rts/System/Main.cpp:54 app = {cmdline = 0x2e93610, lastRequiredDraw = 18804, static ogc = 0x0} 0000012 0x0000000001079c16 in Run (argc=2, argv=0x7fffcf864498) at /home/abma/dev/spring/master/rts/System/Main.cpp:65 ret = -1 err = 0x216 ---Type <return> to continue, or q <return> to quit--- 0000013 0x0000000001079caf in main (argc=2, argv=0x7fffcf864498) at /home/abma/dev/spring/master/rts/System/Main.cpp:95 No locals. parts of infolog.txt: [f=0019104] [SD] Client: 458 / 2048 *** glibc detected *** /home/abma/local/spring/master/bin/spring: double free or corruption (fasttop): 0x00007f2ac06f5ef0 *** ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x78a8f)[0x7f2ad019fa8f] /lib/x86_64-linux-gnu/libc.so.6(cfree+0x73)[0x7f2ad01a38e3] /usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZNSsD1Ev+0x23)[0x7f2ad09f8fa3] /home/abma/local/spring/master/bin/spring(_ZSt8_DestroyISsEvPT_+0x18)[0xa623fc] /home/abma/local/spring/master/bin/spring(_ZNSt12_Destroy_auxILb0EE9__destroyIPSsEEvT_S3_+0x26)[0xa623c0] /home/abma/local/spring/master/bin/spring(_ZSt8_DestroyIPSsEvT_S1_+0x23)[0xa62333] /home/abma/local/spring/master/bin/spring(_ZSt8_DestroyIPSsSsEvT_S1_RSaIT0_E+0x27)[0xa62181] /home/abma/local/spring/master/bin/spring(_ZNSt6vectorISsSaISsEE15_M_erase_at_endEPSs+0x36)[0xbe9674] /home/abma/local/spring/master/bin/spring(_ZNSt6vectorISsSaISsEE5clearEv+0x22)[0xbe921c] /home/abma/local/spring/master/bin/spring[0x109c84b] /home/abma/local/spring/master/bin/spring[0x109d460] /home/abma/local/spring/master/bin/spring[0xac41f1] /home/abma/local/spring/master/bin/spring[0xac6dc0] /home/abma/local/spring/master/bin/spring[0xac9b6d] /home/abma/local/spring/master/bin/spring[0xaed23c] /home/abma/local/spring/master/bin/spring[0xaed1ac] /home/abma/local/spring/master/bin/spring[0xaed15b] /home/abma/local/spring/master/bin/spring[0xaecfca] /usr/lib/libboost_thread.so.1.42.0(thread_proxy+0x5e)[0x7f2ad195416e] /lib/x86_64-linux-gnu/libpthread.so.0(+0x6d8c)[0x7f2ad3257d8c] /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f2ad020d04d] ======= Memory map: ======== 00400000-01b5e000 r-xp 00000000 fc:05 72 /var/tmp/local/spring/master/bin/spring 01d5d000-01d60000 r--p 0175d000 fc:05 72 /var/tmp/local/spring/master/bin/spring 01d60000-01d64000 rw-p 01760000 fc:05 72 /var/tmp/local/spring/master/bin/spring 01d64000-01dc3000 rw-p 00000000 00:00 0 02e42000-0d1eb000 rw-p 00000000 00:00 0 [heap] 7f2aa25fc000-7f2aa26fc000 rw-s 36111000 00:05 7099 /dev/ati/card0 7f2aa26fc000-7f2aa27fd000 rw-s 36110000 00:05 7099 /dev/ati/card0 7f2aa28fe000-7f2aa29fe000 rw-s 3610e000 00:05 7099 /dev/ati/card0 7f2aa2afe000-7f2aa2bfe000 rw-s 3610c000 00:05 7099 /dev/ati/card0 7f2aa2bfe000-7f2aa2cfe000 rw-s 3610b000 00:05 7099 /dev/ati/card0 7f2aa2cfe000-7f2aa2dfe000 rw-s 3610a000 00:05 7099 /dev/ati/card0 7f2aa2dfe000-7f2aa2efe000 rw-s 36109000 00:05 7099 /dev/ati/card0 7f2aa3a00000-7f2aa3c00000 rw-s 36c58000 00:05 7099 /dev/ati/card0 7f2aa3c00000-7f2aa3d00000 rw-s 36c57000 00:05 7099 /dev/ati/card0 7f2aa3d00000-7f2aa3e00000 rw-s 36c56000 00:05 7099 /dev/ati/card0 7f2aa3e00000-7f2aa3f00000 rw-s 36c55000 00:05 7099 /dev/ati/card0 7f2aa3f00000-7f2aa4000000 rw-s 36c4f000 00:05 7099 /dev/ati/card0 7f2aa4000000-7f2aa6fa4000 rw-p 00000000 00:00 0 7f2aa6fa4000-7f2aa8000000 ---p 00000000 00:00 0 7f2aa80f5000-7f2aa81f5000 rw-s 36c3d000 00:05 7099 /dev/ati/card0 7f2aa81f5000-7f2aa82f5000 rw-s 36c3c000 00:05 7099 /dev/ati/card0 7f2aa83f8000-7f2aa84f8000 rw-s 36c4e000 00:05 7099 /dev/ati/card0 7f2aa84f8000-7f2aa85f8000 rw-s 36c3a000 00:05 7099 /dev/ati/card0 7f2aa85f8000-7f2aa86f8000 rw-s 36c39000 00:05 7099 /dev/ati/card0 7f2aa86f8000-7f2aa87f8000 rw-s 36c52000 00:05 7099 /dev/ati/card0 7f2aa87f8000-7f2aa89f8000 rw-s 362be000 00:05 7099 /dev/ati/card0 7f2aa8af8000-7f2aa8af9000 ---p 00000000 00:00 0 7f2aa8af9000-7f2aa92f9000 rw-p 00000000 00:00 0 7f2aa92f9000-7f2aa92fa000 ---p 00000000 00:00 0 7f2aa92fa000-7f2aab4fc000 rw-p 00000000 00:00 0 7f2aab4fc000-7f2aab5fd000 rw-s 35354000 00:05 7099 /dev/ati/card0 7f2aab5fd000-7f2aab7fd000 rw-s 35352000 00:05 7099 /dev/ati/card0 7f2aab7fd000-7f2aab7fe000 ---p 00000000 00:00 0 7f2aab7fe000-7f2abbfff000 rw-p 00000000 00:00 0 7f2abbfff000-7f2ac0000000 rw-s 00000000 00:10 99754 /dev/shm/pulse-shm-4292729697 7f2ac0000000-7f2ac12df000 rw-p 00000000 00:00 0 7f2ac12df000-7f2ac4000000 ---p 00000000 00:00 0 7f2ac4012000-7f2ac41ab000 r-xp 00000000 fc:05 788 /var/tmp/local/spring/master/share/games/spring/AI/Skirmish/KAIK/0.13/libSkirmishAI.so 7f2ac41ab000-7f2ac43aa000 ---p 00199000 fc:05 788 /var/tmp/local/spring/master/share/games/spring/AI/Skirmish/KAIK/0.13/libSkirmishAI.so 7f2ac43aa000-7f2ac43ad000 r--p 00198000 fc:05 788 /var/tmp/local/spring/master/share/games/spring/AI/Skirmish/KAIK/0.13/libSkirmishAI.so 7f2ac43ad000-7f2ac43b5000 rw-p 0019b000 fc:05 788 /var/tmp/local/spring/master/share/games/spring/AI/Skirmish/KAIK/0.13/libSkirmishAI.so 7f2ac43b5000-7f2ac43b8000 rw-p 00000000 00:00 0 7f2ac43b8000-7f2ac43d6000 r-xp 00000000 fc:05 398 /var/tmp/local/spring/master/share/games/spring/AI/Interfaces/C/0.1/libAIInterface.so 7f2ac43d6000-7f2ac45d5000 ---p 0001e000 fc:05 398 /var/tmp/local/spring/master/share/games/spring/AI/Interfaces/C/0.1/libAIInterface.so 7f2ac45d5000-7f2ac45d6000 r--p 0001d000 fc:05 398 /var/tmp/local/spring/master/share/games/spring/AI/Interfaces/C/0.1/libAIInterface.so 7f2ac45d6000-7f2ac45d7000 rw-p 0001e000 fc:05 398 /var/tmp/local/spring/master/share/games/spring/AI/Interfaces/C/0.1/libAIInterface.so 7f2ac45d7000-7f2ac45d9000 rw-p 00000000 00:00 0 7f2ac45d9000-7f2ac46d9000 rw-s 36c3f000 00:05 7099 /dev/ati/card0 7f2ac46d9000-7f2ac46e9000 rw-s 3569c000 00:05 7099 /dev/ati/card0 7f2ac46e9000-7f2ac46ea000 ---p 00000000 00:00 0 7f2ac46ea000-7f2ac4eea000 rw-p 00000000 00:00 0 7f2ac4eea000-7f2ac4eeb000 ---p 00000000 00:00 0 7f2ac4eeb000-7f2ac56eb000 rw-p 00000000 00:00 0 7f2ac56eb000-7f2ac56ec000 ---p 00000000 00:00 0 7f2ac56ec000-7f2ac5eec000 rw-p 00000000 00:00 0 7f2ac5eec000-7f2ac5eed000 ---p 00000000 00:00 0 7f2ac5eed000-7f2ac66ed000 rw-p 00000000 00:00 0 7f2ac66ed000-7f2ac66f2000 r-xp 00000000 fc:01 35898 /usr/lib/alsa-lib/libasound_module_pcm_pulse.so 7f2ac66f2000-7f2ac68f2000 ---p 00005000 fc:01 35898 /usr/lib/alsa-lib/libasound_module_pcm_pulse.so 7f2ac68f2000-7f2ac68f3000 r--p 00005000 fc:01 35898 /usr/lib/alsa-lib/libasound_module_pcm_pulse.so 7f2ac68f3000-7f2ac68f4000 rw-p 00006000 fc:01 35898 /usr/lib/alsa-lib/libasound_module_pcm_pulse.so 7f2ac68f4000-7f2ac69d8000 r-xp 00000000 fc:01 44052 /usr/lib/libasound.so.2.0.0 7f2ac69d8000-7f2ac6bd8000 ---p 000e4000 fc:01 44052 /usr/lib/libasound.so.2.0.0[f=0019104] Error: Aborted (SIGABRT) in spring 0.82+.4.0 (Debug Sync-Trace Sync-Debug) [f=0019104] Error: Stacktrace: |
hoijui (reporter) 2011-07-26 18:20 |
all these places looks kind of random to me. my guess is, that stack corruption causes desync, and then a crash in the sync debug handler. and cause Logger maybe allocates most memory.. it is usually there... something like that? if so, and it nearly always desyncs after 1 minute in-game, this could probably be used to bisect. but... someone else should have a look first. |
abma (administrator) 2011-07-26 21:42 |
seems to be caused by this commit: https://github.com/spring/spring/commit/f0f587bef8a8ec83fb2e00d700e70b01fecbffaa and imo these lines: https://github.com/spring/spring/commit/f0f587bef8a8ec83fb2e00d700e70b01fecbffaa#diff-18 |
abma (administrator) 2011-07-26 21:52 Last edited: 2011-07-26 21:52 |
note: i bisected. before this commit i always got: [f=0003622] [SD] Client: 1 / 1 after that i got something like this: [f=0003622] [SD] Client: 1 / 1451 after calling /desync |
hoijui (reporter) 2011-07-26 23:57 |
ahhh :/ i guess you are right. <code> struct HistItem { ... }; struct HistItemWithBacktrace: public HistItem { ... }; HistItem* historybt = ...; HistItemWithBacktrace* historybt = ...; HistItem* myHistory = someBool ? history : historybt; for (int i = 0; i < histSize; i++) { HistItem* xHist = myHistory[i]; } </code> the problem here is, that if someBool==false, then myHistory[i] is the the i-th element in the array, if the array is made up of HistItem's. but as it is made up of the bigger HistItemWithBacktrace items, myHistory[i] is pointing at an arbitrary point in the array memory, basicaly -> invalid. so yeah.. these lines should be reverted. sorry! and good finding abma, thanks! i let you do it (going to bed now, probably will not be around tomorrow). |
abma (administrator) 2011-07-27 00:30 |
fixed by https://github.com/spring/spring/commit/4eba02b5cb2807d43a347d34722c255267e9a35f |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2011-07-26 02:29 | abma | New Issue | |
2011-07-26 02:29 | abma | File Added: aitest.txt | |
2011-07-26 02:29 | abma | Graphics Card | => unknown |
2011-07-26 02:29 | abma | File Added: connect.txt | |
2011-07-26 02:31 | abma | Additional Information Updated | |
2011-07-26 02:31 | abma | Summary | (master) crash when sync-debugging => (master) crash when sync-debugging in Logger.cpp:157 |
2011-07-26 02:38 | abma | Reproducibility | always => sometimes |
2011-07-26 02:41 | abma | Description Updated | |
2011-07-26 02:41 | abma | Note Added: 0007069 | |
2011-07-26 02:49 | abma | Note Added: 0007070 | |
2011-07-26 02:49 | abma | Description Updated | |
2011-07-26 04:16 | abma | Note Added: 0007071 | |
2011-07-26 17:43 | abma | Target Version | => 0.83.0 |
2011-07-26 18:20 | hoijui | Note Added: 0007078 | |
2011-07-26 21:42 | abma | Note Added: 0007084 | |
2011-07-26 21:52 | abma | Note Added: 0007085 | |
2011-07-26 21:52 | abma | Note Edited: 0007085 | |
2011-07-26 23:57 | hoijui | Note Added: 0007087 | |
2011-07-27 00:30 | abma | Note Added: 0007088 | |
2011-07-27 00:30 | abma | Status | new => resolved |
2011-07-27 00:30 | abma | Resolution | open => fixed |
2011-07-27 00:30 | abma | Assigned To | => abma |