Zeex / samp-plugin-profiler

Performance profiler plugin for SA-MP server
http://forum.sa-mp.com/showthread.php?t=271129
BSD 2-Clause "Simplified" License
46 stars 8 forks source link

server crash #6

Closed testname1 closed 11 years ago

testname1 commented 12 years ago

Aborted Segmentation fault samp03svr: /home/q/Zeex-samp-profiler-plugin-b671653/src/amx_profiler/profiler.cpp:84: int amx_profiler::Profiler::amxDebug(int ()(AMX_)): Assertion `callstack.GetTop()->function()->type() == "normal"' failed.

testname1 commented 12 years ago

Crashdetect ничего не выдал, молча падает с выводом в linux консоль текста выше

testname1 commented 12 years ago

На последней версии до сих пор так Конкретно выяснить что именно заставляет сервер ложится мне непонятно В 1-ным таймером и в 1-го на сервере никаких проблем нет на винде

testname1 commented 12 years ago

Aborted samp03svr: /home/q/Zeex-samp-profiler-plugin-1993c0a/src/amx_profiler/profiler.cpp:84: int amx_profiler::Profiler::amxDebug(int ()(AMX_)): Assertion `callstack.GetTop()->function()->type() == "normal"' failed. Всё также вылетает версия v2.7.5

testname1 commented 12 years ago

В режиме совмещённом с jit 0.7.4. который я описал здесь https://github.com/Zeex/samp-jit-plugin/issues/15 когда profiler выводит только значения callback'ов никаких крашей нет

Сам краш происходит в момент завершения функции Например

в OnPlayerText вызывается OnPlayerCommandText в момент завершения OnPlayerCommandText происходит сам краш

При вызове стандартным путём OnPlayerCommandText никаких проблем нет

На windows вылетов никаких вроде как нет

testname1 commented 12 years ago

Баг не стабильно вылетает, может и не вылететь, поэтому воспроизвести иногда тяжело

cyber-punk commented 12 years ago

I also have this issue on the last version and the new one. When I try to compile I get this error.

[ 4%] Building CXX object CMakeFiles/profiler.dir/amx_profiler/c_interface.cpp.o In file included from /home/cpagent/GAMES/samp/samp-profiler/amx_profiler/profiler.h:31:0, from /home/cpagent/GAMES/samp/samp-profiler/amx_profiler/c_interface.cpp:27: /home/cpagent/GAMES/samp/samp-profiler/amx_profiler/call_graph.h: In member function âvoid amx_profiler::CallGraph::Traverse(F) constâ: /home/cpagent/GAMES/samp/samp-profiler/amx_profiler/call_graph.h:59:12: error: invalid use of incomplete type âclass amx_profiler::CallGraphNodeâ /home/cpagent/GAMES/samp/samp-profiler/amx_profiler/call_graph.h:32:7: error: forward declaration of âclass amx_profiler::CallGraphNodeâ make[2]: * [CMakeFiles/profiler.dir/amx_profiler/c_interface.cpp.o] Error 1 make[1]: * [CMakeFiles/profiler.dir/all] Error 2 make: *\ [all] Error 2

[Edit] well its been a while I will try and add -m32 and see if I can get it to compile. I still get this error anyhow when using the bin.

testname1 commented 12 years ago

Проверил последнюю версию, вроде проблем не наблюдается Позже протестирую плагин несколько часов когда появится возможность