1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-12 17:14:46 +02:00

Fix './unrealircd backtrace' not working correctly in non-English environments.

The script symlinks any missing tmp/xxxx.so's to the real module name but
depends on English statements (ugly, yeah, but it works). With a non-English
locale this did previously not work so the backtrace was screwed.
This commit is contained in:
Bram Matthys
2019-01-21 13:30:15 +01:00
parent 41e6d5b7e9
commit 6fcacdf148
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -163,6 +163,11 @@ elif [ "$1" = "backtrace" ] ; then
exit 1
fi
# This is needed for the script below and is probably also helpful for the
# bug report since you usually want to paste this to the development team.
export LANG=C
export LC_ALL=C
# The tmp/*.so files are often already deleted. Here we have some
# (ugly) scripting to recreate the tmp/*.so links to the modules *.so files...
echo 'info sharedlibrary'|gdb @BINDIR@/unrealircd $corefile 2>/dev/null|\