Bram Matthys
965bfa441b
Crash reporter: use fclose() and not pclose() since this particular
...
file descriptor was opened by fopen() and not popen().
Fixes compile warning on Ubuntu 22.04 / GCC 11.
[skip ci]
2022-05-28 18:00:24 +02:00
Bram Matthys
b154591a58
Some source files indicated the license was "GPLv2", which was meant to
...
be (and is now clarified to be) "GPLv2 or later".
Reported by libsys in https://bugs.unrealircd.org/view.php?id=6099
2022-05-11 06:41:11 +02:00
Bram Matthys
46bdc1c5e1
Print message about outdated release if automatically rejected by crash handler.
2022-01-02 09:32:33 +01:00
Bram Matthys
6ce95c3d79
Fixes for previous commit now that we use -Waddress (well, implicitly
...
through -Wall/-Wextra)
2021-09-12 09:19:46 +02:00
Bram Matthys
532a9becda
Massive renames of SSL/TLS and SSL to TLS. People should know the term by now :D
2021-08-10 09:07:32 +02:00
Bram Matthys
2375c35f2b
Fix crashreporter to show big warning if you have 3rd party modules
...
loaded. The code to raise this warning was already present but it
was not being shown in many cases (when it actually should).
It now looks like this, if you run ./unrealircd start and previously
crashed AND have any 3rd party mods loaded:
The IRCd has been started now (and is running), but it did crash 1 seconds ago.
Crash report generated in: /home/ircd/unrealircd/tmp/crash.report.core.1621838267.txt
** IMPORTANT **
Your UnrealIRCd crashed and you have 3rd party modules loaded (modules created
by someone other than the UnrealIRCd team). If you installed new 3rd party
module(s) in the past few weeks we suggest to unload these modules and see if
the crash issue dissapears. If so, that module is probably to blame.
If you keep crashing without any 3rd party modules loaded then please do report
it to the UnrealIRCd team.
The reason we ask you to do this is because MORE THAN 95% OF ALL CRASH ISSUES
ARE CAUSED BY 3RD PARTY MODULES and not by an UnrealIRCd bug.
Shall I send a crash report to the UnrealIRCd developers?
NOTE: If the crash is caused by a 3rd party module then UnrealIRCd devs can't fix that.
2021-05-24 08:38:07 +02:00
Bram Matthys
1752afee44
Move running_interactively() from crashreport.c to misc.c
2021-05-15 18:28:21 +02:00
Bram Matthys
95cfafcd51
Include dirent.h by default.
2021-05-15 15:42:34 +02:00
Bram Matthys
44f8bea3c4
Minor crash reporter fixes and add command line crash test to test it.
2021-03-08 09:12:53 +01:00
Bram Matthys
8d7e25e50e
Make get_file_time() and get_file_size() available via h.h.
...
And move those 2 functions plus file_exists() to misc.c.
2020-11-16 18:21:27 +01:00
Bram Matthys
f585e895a2
Crash reporter: was missing many crashes due to search for core
...
files that end in .core, while on many systems it is just 'core'
without the dot. Reverted back to U4-style core file finding now.
Thanks to DeviL for helping to trace this issue.
2020-02-11 17:46:03 +01:00
Bram Matthys
840995d994
Fix bug in Windows crash reporter, was sometimes missing crashes
...
as it always ignored the first core file.
2019-11-15 09:06:27 +01:00
Bram Matthys
dfa83aa6e5
Add module manager. See https://www.unrealircd.org/docs/Module_manager
...
Also update release notes and some unrelated changes.
BIG commits. Lots of work. Requires more testing.
2019-11-01 12:57:12 +01:00
Bram Matthys
97cf32c941
Compile fix for Windows
2019-09-21 18:31:49 +02:00
Bram Matthys
953cb774ad
ASan: log to tmp/unrealircd_asan.<pid> and attach this if the IRCd
...
crashes (has a core file) to the crash bug report.
Also, disable leak detection since this is too noisy and would cause
a core dump each time + bothering the user to submit a crash report
+ send this crashreport etc. We still enable this in our own tests
though, but not for end-users.
2019-09-21 18:04:30 +02:00
Bram Matthys
70410b3f33
Remove unused variables (67 files done, will do rest another time).
2019-09-12 17:57:01 +02:00
Bram Matthys
c1babb7411
Fix reading unitialized memory due to one of the commits from yesterday
...
(in the crash reporter)
2019-08-28 07:13:31 +02:00
Bram Matthys
d477e4930e
Crash reporter: include libc for better debugging.
2019-08-27 16:05:32 +02:00
Bram Matthys
308ac85bba
UnrealIRCd crash reporter: require TLSv1.2 or later
2019-08-27 14:24:27 +02:00
Bram Matthys
02a4bbc348
Get rid of this stupid 'TS' type, just use 'time_t'.
2019-08-22 18:39:28 +02:00
Bram Matthys
5279212b30
More SSL to TLS changes
2019-08-13 13:09:49 +02:00
Bram Matthys
09cf485d6c
Mass rename of "ssl" to "tls" everywhere. Including conf/ssl to
...
conf/tls. If you are upgrading then conf/ssl will be renamed to
conf/tls and a symlink will be added (so certbot etc won't fail).
This is part 1...
2019-08-12 14:26:31 +02:00
Bram Matthys
7161f33311
Code cleanup: make src/*.c use the generic #include "unrealircd.h" file
...
(with only a few exceptions)
Now, we'll find out later if Windows still compiles, I guess ;)
2019-06-22 21:18:08 +02:00
Bram Matthys
7542cdeaca
Cleanup of m_tkl part 1. New tkl_chartotype (the reverse of tkl_typetochar).
...
Move stripcrlf() to core instead of at 3 places, rename calls of iCstrip()
to that. Hopefully I didn't break anything.. :D
2019-06-15 16:56:34 +02:00
Bram Matthys
15d77298fe
Empty blacklist::dns::type could lead to a crash (config file error).
...
All the rest are things that "will never happen" or dead code.
2019-03-25 09:04:31 +01:00
Bram Matthys
7a3ba05c03
Similar to previous commit, fix resolving of temporary modules (.so files)
...
in crash reports as well... and make them in English, regardless of the
users' locale... better for us ;)
2019-01-21 13:37:52 +01:00
Bram Matthys
296decf648
This code can be removed now that we have a working verify_certificate().
...
Also broke LibreSSL (SSL_CTX_get0_param undefined).
2017-09-06 16:49:25 +02:00
Bram Matthys
0da1fdb2d2
Fix possible crash in /STATS due to change from yesterday.
...
Other than that, some minor style and real things.
2017-09-02 08:27:55 +02:00
Bram Matthys
3ade6c7ecb
:D
2017-09-01 18:15:47 +02:00
Bram Matthys
199a7e162d
Make new functions more generic and use it from crash reporter so
...
people with older OpenSSL libraries (and LibreSSL) benefit from
the hostname validation code there as well.
2017-09-01 17:28:49 +02:00
Bram Matthys
7b092f7aeb
Verify certificate when submitting bug report.
2017-06-19 16:28:50 +02:00
Bram Matthys
5e378fb02b
Since 95% of the crash reports are due to bugs in 3rd party modules we now
...
have to discourage people with 3rd party modules loaded from blindly
submitting crash reports.
2017-05-12 10:25:45 +02:00
Bram Matthys
1474e5d7e2
Crash reporter on Windows: submit minidumps (~300k)
2016-04-04 13:02:40 +02:00
Bram Matthys
9f4496b6a6
Let crash reporter upload core files and binaries on *NIX. Should help
...
a lot since many people don't have gdb installed, which caused us to
receive reports with just 'gdb: command missing' as a stack trace.
(#4603 )
2016-04-04 11:08:54 +02:00
Bram Matthys
8da3e3e1bc
Two small changes to improve crash reports from Windows users.
2016-03-11 15:44:08 +01:00
Bram Matthys
b428f9b3a3
Windows: wircd.exe -> UnrealIRCd.exe. unreal.exe -> unrealsvc.exe. And some more name changes.
2015-10-11 17:44:49 +02:00
Bram Matthys
4ad0ef4c65
use pclose after popen and not fclose .. :)
2015-07-25 19:41:15 +02:00
Bram Matthys
f7ba695625
Crash reporter is now working on Windows as well.
2015-07-25 12:31:03 +02:00
Bram Matthys
fb0662f67c
crash reporter: use HTTPS
2015-07-24 22:10:26 +02:00
Bram Matthys
2cb395216a
First version of crash reporter. TODO: Windows, SSL (HTTPS), prettify code, ..
2015-07-24 21:21:35 +02:00