Commit graph

96 commits

Author SHA1 Message Date
turleypol
4210683bb1 removed senseless gitignore files 2019-04-20 14:55:42 +02:00
Fernando Rozenblit
24b66a68df Partial fix for crashes when reporting an exceptional condition
As it turns out, the exception parser was calling exit() to abort the program. Unfortunately, exit() performs the cleanup of global static variables. Because an error may occur when those global variables are still in use by other threads, or during their cleanup, calling exit() at the exception parser led to undefined behavior (most often, crashes that would mask the original error).

Note that the exception parser is not yet fully safe against crashes while reporting errors: it uses printf and other non-reentrant functions. This will require more effort to cleanup.
2019-02-11 00:13:38 +01:00
turleypol
5ecbbf63f4 removed dependency to boost::noncopyable 2019-02-10 14:00:55 +01:00
turleypol
3e656ed5f8 fixed all gcc/clang warnings which where disabled 2018-10-31 15:40:25 +01:00
turleypol
0864d3a31e fixed linesize 2018-10-09 19:07:53 +02:00
turleypol
a5e6206164 Added cmake option to run clang-tidy
used everywhere nullptr
2018-10-09 16:36:35 +02:00
turleypol
1a8e10535d fix printf param 2018-06-18 13:30:41 +02:00
turleypol
c71c4965c8 git revision fetch is now part of the build process instead of
configure step
2018-06-18 10:27:01 +02:00
turleypol
6107184258 only one global config include exists now 2018-06-17 18:31:55 +02:00
turleypol
239295f236 added options to enable clang/gcc sanitizer
fixed a few errors in runecl/ecompile code
2018-04-26 10:42:19 +02:00
Gabriele Tozzi
dd489ea366 Fix over last commit 2018-04-02 18:09:15 +02:00
Gabriele Tozzi
94cd6c4f60 Merge branch 'master' of https://github.com/polserver/polserver
Finally starting to align code base :)

Conflicts:
	cmake/env/pol_global_config.h.in
	docs/docs.polserver.com/pol100/corechanges.xml
	pol-core/clib/Debugging/ExceptionParser.cpp
	pol-core/clib/pol_global_config_win.h
	pol-core/clib/strexcpt.cpp
	pol-core/doc/core-changes.txt
	pol-core/pol/module/filemod.cpp
	pol-core/pol/module/uomod2.cpp
	pol-core/pol/pol.cpp
	pol-core/pol/uimport.cpp
2018-04-02 17:05:50 +02:00
turleypol
9d3cd4ffd5 fixed unittests, removed remaining debug prints 2018-02-04 12:56:08 +01:00
turleypol
0d04d5e19b Current FunctionRef status. Mixed with a few more cmake stuff 2018-02-03 19:05:22 +01:00
turleypol
6eb957e2d2 fixed two missing nullptr handlings 2018-01-29 22:09:57 +01:00
turleypol
dbb25bdb62
Include and buildsystem cleanup (#45)
Include cleanup
Reworked buildsystem (Linux only)
Removed dynamic libs, Linux now again uses static linking (like windows)
2018-01-29 21:55:48 +01:00
turleypol
798eda5b63 Cleanup of header includes. 2018-01-01 21:52:14 +01:00
turley
6c772dcffc Fixed unreachable code warnings. 2016-12-19 17:22:09 +01:00
turley
dfccaa0ae8 avoid some copies 2016-12-15 16:59:58 +01:00
Gabriele Tozzi
dcd1991bdd Merging POL_BUILD_DATE and POL_BUILD_TIME
Together into POL_BUILD_DATETIME.
Breaks bakcward compatibility on a minor feature, nobody should notice.
Updated the changelog anyway.
2016-02-23 23:40:17 +01:00
turley
189cad3479 Formating everything
Authors are not forced to use the clang-format setting, but should
atleast be inspired by the style.
The only thing which is now not allowed are tabs for ident/alignment!
2016-02-19 19:26:35 +01:00
turley
92cc1b4d70 Use weakptr to uoexecutor in the threaded sql call
changed client class from ref_counted to also hold like the uoexecutor a weakptr, use it in the ClientObjImp.
Renamed NPCRef to NpcRef like its been told since years in a TODO comment
fixed some warnings from VS2015
2016-02-10 23:09:05 +01:00
frozenblit
b502ab2c59 Fixed ExceptionParser leaks and null ptr dereferencing
detected with Coverity
2015-12-30 01:24:38 +01:00
Thomas Volkert
f8818f4f1a Formatting of debug output 2015-12-28 22:17:33 +01:00
Thomas Volkert
9403fa644f Print correct product version in bug reports, if clang is used 2015-12-28 22:14:15 +01:00
Thomas Volkert
5e78f8d7d2 Support clang in bug reports 2015-12-28 22:02:40 +01:00
turley
3c8c9f5c28 fixed pessimizing move
disabled testrun for clang
2015-12-27 22:48:51 +01:00
Thomas Volkert
9c28304f95 Fixed line breaks in abort reports 2015-12-17 14:07:10 +01:00
Thomas Volkert
8c3c5f760a Fixed Windows build and several minor fixes 2015-11-18 23:45:16 +01:00
Thomas Volkert
0a0d1974a8 Fixed Windows build for clib 2015-11-11 00:34:18 +01:00
Thomas Volkert
c5d81d4b28 Refactored the class ConfigEnvironment to ProgConfig 2015-11-08 19:18:14 +01:00
Thomas Volkert
0b8b7d7d14 Introduced ConfigEnvironment class to remove the cross dependencies
between clib and plib
2015-11-08 14:46:48 +01:00
Thomas Volkert
b16e3df451 Do not create a separate lib. "clib_debugging" anymore 2015-11-06 20:30:20 +01:00
Thomas Volkert
98bac9485c Removed polver.cpp/.h and use POL_BUILD_TARGET instead 2015-11-06 20:21:32 +01:00
Thomas Volkert
626aae0e10 Introduced POL_BUILD_DATE and POL_BUILD_TIME 2015-11-06 17:36:07 +01:00
Thomas Volkert
6a632b2de9 Use global POL_VERSION_ID to identify the POL revision 2015-11-06 16:22:14 +01:00
Thomas Volkert
38800776a6 Renamed CMakeConfig.txt to CMakeEnvironment.txt 2015-11-01 17:08:04 +01:00
Thomas Volkert
a402a4d094 Fixed compile issue 2015-11-01 13:32:50 +01:00
Thomas Volkert
938c47de4d Added .gitignore file 2015-09-21 23:45:08 +02:00
turley
dfd65e30cd Moved plib realm to pol 2015-09-18 19:11:46 +02:00
Thomas Volkert
ece3eb30e7 Removed cross references between clib and plib as preparation for
upcoming code restructuring
2015-09-15 22:50:07 +02:00
Thomas Volkert
90447333fb Cleanup for the build system 2015-08-31 22:07:52 +02:00
Thomas Volkert
fe3172d357 Split source code into libraries and link the main binary against them 2015-08-31 20:49:05 +02:00
Thomas Volkert
38d210d9c7 Use correct server for reporting aborts 2015-05-27 10:06:18 +02:00
Thomas Volkert
3161958bde Merge branch 'master' of https://github.com/polserver/polserver.git 2015-05-24 12:48:54 +02:00
Thomas Volkert
f9a248a45a ExceptionParser::getTrace() detects internal function references and
marks them as such in the error output
2015-05-24 12:48:38 +02:00
turley
f6be3f99e3 corrected some compiler warnings with eg Wextra 2015-05-24 10:44:00 +02:00
Thomas Volkert
32698d508b Typo 2015-05-23 12:39:58 +02:00
frozenblit
ab592b0bf6 Instead of .c_str(), the log will take a copy of the formatter string 2015-05-16 16:00:26 +02:00
ThomasVolkert
1b960ecbd3 register the signal handler also for SIGABRT - only Linux 2015-04-12 22:54:46 +02:00