Skip to content

Instantly share code, notes, and snippets.

View Seadragon91's full-sized avatar

Lukas Pioch Seadragon91

  • Baden-Württemberg, Germany
View GitHub Profile
@Seadragon91
Seadragon91 / .luacheckrc
Last active November 22, 2016 11:32
Luacheck file for cuberite plugins
-- Ignore unused function and loop arguments
unused_args = false
-- Allow self defined globals
allow_defined = true
-- Ignore this functions
ignore =
{
"Initialize", -- Plugin
Currently logging to "crash.txt".
Logs will be appended to the log file.
Output is being logged and displayed.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff6b72700 (LWP 16560)]
[New Thread 0x7ffff6371700 (LWP 16561)]
[New Thread 0x7ffff5b70700 (LWP 16562)]
[New Thread 0x7ffff536f700 (LWP 16563)]
[New Thread 0x7ffff4b6e700 (LWP 16564)]
Currently logging to "crash.txt".
Logs will be appended to the log file.
Output is being logged and displayed.
Starting program: /home/lukas/minecraft/servers/Server/Cuberite_debug
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0x76ca0450 (LWP 22782)]
[New Thread 0x74c91450 (LWP 22783)]
[New Thread 0x74491450 (LWP 22784)]
[New Thread 0x73c91450 (LWP 22785)]
Currently logging to "crash.txt".
Logs will be appended to the log file.
Output is being logged and displayed.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff6b72700 (LWP 5846)]
[New Thread 0x7ffff4d00700 (LWP 5847)]
[New Thread 0x7fffeffff700 (LWP 5849)]
[New Thread 0x7fffef7fe700 (LWP 5850)]
[New Thread 0x7fffee7f8700 (LWP 5851)]
@Seadragon91
Seadragon91 / gist:df3edf98b9aabc0a8ba5
Last active December 29, 2015 17:39
Cuberite: data races / lock-order-inversion
==================
WARNING: ThreadSanitizer: data race (pid=11922)
Write of size 8 at 0x7ffee589e818 by main thread:
#0 pthread_cond_destroy <null> (Cuberite+0x000000575000)
#1 ~cEvent /home/lukas/cpp/cuberite/src/./OSSupport/Event.h:20 (Cuberite+0x0000006a1a6b)
#2 cWorld::InitializeSpawn() /home/lukas/cpp/cuberite/src/World.cpp:354 (Cuberite+0x0000006bc93a)
#3 cRoot::StartWorlds() /home/lukas/cpp/cuberite/src/Root.cpp:432 (Cuberite+0x00000068a6b9)
#4 UniversalMain(std::unique_ptr<cSettingsRepositoryInterface, std::default_delete<cSettingsRepositoryInterface> >) /home/lukas/cpp/cuberite/src/main.cpp:220 (Cuberite+0x0000006e119e)
#5 main /home/lukas/cpp/cuberite/src/main.cpp:534 (Cuberite+0x0000006e5540)
@Seadragon91
Seadragon91 / gist:c6f3c9aa28e0d9fb7e73
Created December 29, 2015 17:32
Data race: ServerHandleImpl.cpp:327 (write) / Server.cpp:381 (read)
WARNING: ThreadSanitizer: data race (pid=11922)
Write of size 8 at 0x7d580002fc80 by thread T1:
#0 std::__shared_ptr<cTCPLink, (__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_ptr<cTCPLink, (__gnu_cxx::_Lock_policy)2> const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr_base.h:913 (Cuberite+0x0000006268c1)
#1 cServerHandleImpl::Callback(evconnlistener*, int, sockaddr*, int, void*) /home/lukas/cpp/cuberite/src/OSSupport/ServerHandleImpl.cpp:327 (Cuberite+0x000000700fa6)
#2 listener_read_cb /home/lukas/cpp/cuberite/lib/libevent/listener.c (Cuberite+0x000000bdba20)
#3 void std::_Bind_simple<void (*(cNetworkSingleton*))(cNetworkSingleton*)>::_M_invoke<0ul>(std::_Index_tuple<0ul>) /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/functional:1699 (Cuberite+0x0000006ff051)
#4 std::this_thread::__sleep_for(std::chrono::duration<long, std::ratio<1l, 1l> >, std::chrono::duration<long, std::ratio<1l, 1000000000l> >) <null> (libstdc++.so
@Seadragon91
Seadragon91 / gist:1ca19ba287000d428f1d
Last active October 17, 2015 18:40
Deadlock chunk
Currently logging to "gdb.txt".
Logs will be appended to the log file.
Output is being logged and displayed.
Starting program: /home/lukas/minecraft/servers/Server_redstone/Cuberite_debug
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff6b51700 (LWP 28540)]
[New Thread 0x7ffff5bd5700 (LWP 28541)]
[New Thread 0x7ffff53d4700 (LWP 28542)]
[New Thread 0x7ffff4bd3700 (LWP 28543)]