• Aleksy Barcz's avatar
    libparnt: lock everything · 9ce9aa92
    Aleksy Barcz authored
    + there is a lock introduced in "Add global parser synchronous access mutex", but still draw3 segfaults on init
    + segfaults are not reproducible using valgrind, and happen in AddPar, where curr points to a badly initialized structure
    + altogether this looks very much like a multithreading issue
    + so introduce a recursive_lock, locking every single function in libparnt
    + this is extremely ugly, but it works and it doesn't slow down program start remarkably
    + a proper fix would be removing all the libparnt code and writing a new, simple, parser for szarp.cfg
    9ce9aa92
Name
Last commit
Last update
..
include Loading commit data...
CMakeLists.txt Loading commit data...
argsmgr.cpp Loading commit data...
cmdlineparser.cpp Loading commit data...
conversion.cc Loading commit data...
daemon.cc Loading commit data...
execute.cc Loading commit data...
ipctools.cc Loading commit data...
liblog.cpp Loading commit data...
libparnt.cc Loading commit data...
libparnt.lex Loading commit data...
libparnt.parse.cc Loading commit data...
libparnt.yy.cc Loading commit data...
loghandlers.cpp Loading commit data...
mbrtu.cc Loading commit data...
mingw32_missing.cc Loading commit data...
msgerror.cc Loading commit data...
msgtools.cc Loading commit data...