Forums WoW Modding Support Archives TrinityCore Discord Archives [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?

[DiscordArchive] Hello, how should I configure logger so it'd log segmentation fault errors and such stuff?

rektbyfaith
Administrator
0
03-25-2024, 08:24 AM
#1
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?
rektbyfaith
03-25-2024, 08:24 AM #1

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?

rektbyfaith
Administrator
0
03-25-2024, 08:34 AM
#2
Archived author: Tea • Posted: 2024-03-25T08:34:02.627000+00:00
Original source

you cant do that with logger
rektbyfaith
03-25-2024, 08:34 AM #2

Archived author: Tea • Posted: 2024-03-25T08:34:02.627000+00:00
Original source

you cant do that with logger

rektbyfaith
Administrator
0
03-25-2024, 08:34 AM
#3
Archived author: Tea • Posted: 2024-03-25T08:34:11.299000+00:00
Original source

you need to use gdb
rektbyfaith
03-25-2024, 08:34 AM #3

Archived author: Tea • Posted: 2024-03-25T08:34:11.299000+00:00
Original source

you need to use gdb

rektbyfaith
Administrator
0
03-25-2024, 08:34 AM
#4
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 )
rektbyfaith
03-25-2024, 08:34 AM #4

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 )

rektbyfaith
Administrator
0
03-25-2024, 08:42 AM
#5
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`
rektbyfaith
03-25-2024, 08:42 AM #5

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`

rektbyfaith
Administrator
0
03-25-2024, 08:44 AM
#6
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
rektbyfaith
03-25-2024, 08:44 AM #6

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

rektbyfaith
Administrator
0
03-25-2024, 08:44 AM
#7
Archived author: Tea • Posted: 2024-03-25T08:44:59.835000+00:00
Original source

that one, to same place as your worldserver
rektbyfaith
03-25-2024, 08:44 AM #7

Archived author: Tea • Posted: 2024-03-25T08:44:59.835000+00:00
Original source

that one, to same place as your worldserver

rektbyfaith
Administrator
0
03-25-2024, 08:45 AM
#8
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`
rektbyfaith
03-25-2024, 08:45 AM #8

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`

rektbyfaith
Administrator
0
03-25-2024, 08:45 AM
#9
Archived author: Tea • Posted: 2024-03-25T08:45:42.639000+00:00
Original source

i already said it
rektbyfaith
03-25-2024, 08:45 AM #9

Archived author: Tea • Posted: 2024-03-25T08:45:42.639000+00:00
Original source

i already said it

rektbyfaith
Administrator
0
03-25-2024, 08:46 AM
#10
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?
rektbyfaith
03-25-2024, 08:46 AM #10

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?

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)