[DiscordArchive] Hello, how should I configure logger so it'd log segmentation fault errors and such stuff?
[DiscordArchive] Hello, how should I configure logger so it'd log segmentation fault errors and such stuff?
Archived author: Vel • Posted: 2024-03-25T08:24:35.677000+00:00
Original source
Hello, how should I configure logger so it'd log segmentation fault errors and such stuff?
Archived author: Tea • Posted: 2024-03-25T08:34:02.627000+00:00
Original source
you cant do that with logger
Archived author: Tea • Posted: 2024-03-25T08:34:11.299000+00:00
Original source
you need to use gdb
Archived author: Vel • Posted: 2024-03-25T08:34:46.572000+00:00
Original source
I have a bash script
`#!/bin/bash
while :
do
./worldserver
echo "`date` -- World server crashed! Restarting..." | tee -a ./logs/worldserver-restarter.log
sleep 5
done`
But it doesn't create any file or anything (I am not much skilled linux user so sorry for my utter stupidity )
Archived author: Tea • Posted: 2024-03-25T08:42:40.680000+00:00
Original source
copy contrib/debugger/crashreport.gdb from tc repo and replace direct start of worldserver with `gdb -x crashreport.gdb ./worldserver`
Archived author: Vel • Posted: 2024-03-25T08:44:31.680000+00:00
Original source
https://github.com/TrinityCore/TrinityCo...report.gdb This one yeah? And "copy" where?
[Embed: TrinityCore/contrib/debugger/crashreport.gdb at 3.3.5 · TrinityCore...]
TrinityCore Open Source MMO Framework (master = 10.2.6.53877, 3.3.5 = 3.3.5a.12340, wotlk_classic = 3.4.3.53622) - TrinityCore/TrinityCore
https://github.com/TrinityCore/TrinityCo...report.gdb
Archived author: Tea • Posted: 2024-03-25T08:44:59.835000+00:00
Original source
that one, to same place as your worldserver
Archived author: Vel • Posted: 2024-03-25T08:45:29.161000+00:00
Original source
Okay and where should I put the gdb -x ... in this .sh file?
`#!/bin/bash
while :
do
./worldserver
echo "`date` -- World server crashed! Restarting..." | tee -a ./logs/worldserver-restarter.log
sleep 5
done`
Archived author: Tea • Posted: 2024-03-25T08:45:42.639000+00:00
Original source
i already said it
Archived author: Vel • Posted: 2024-03-25T08:46:16.981000+00:00
Original source
`#!/bin/bash
while :
do
gdb -x crashreport.gdb ./worldserver
sleep 5
done`
So like this I guess?