Raised This Month: $51 Target: $400
 12% 

what is the best debug method to get the full error log (cs 1.6)


Post New Thread Reply   
 
Thread Tools Display Modes
Old.School
Senior Member
Join Date: Sep 2015
Location: France
Old 07-05-2016 , 15:38   Re: what is the best debug method to get the full error log (cs 1.6)
Reply With Quote #11

thnxx very much
__________________
You keep bringing B.R down .. He will rise again and kick Enemies asses !
Old.School is offline
Old.School
Senior Member
Join Date: Sep 2015
Location: France
Old 07-14-2016 , 22:29   Re: what is the best debug method to get the full error log (cs 1.6)
Reply With Quote #12

now the server crash when player player connect to the server how to use this log method with this case
__________________
You keep bringing B.R down .. He will rise again and kick Enemies asses !
Old.School is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-14-2016 , 23:54   Re: what is the best debug method to get the full error log (cs 1.6)
Reply With Quote #13

Quote:
Originally Posted by Old.School View Post
now the server crash when player player connect to the server how to use this log method with this case
Have you not learned anything from this thread??? The answer doesn't change. This makes the "backup" (using your method) pointless.
__________________

Last edited by fysiks; 07-14-2016 at 23:56.
fysiks is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 07-15-2016 , 09:26   Re: what is the best debug method to get the full error log (cs 1.6)
Reply With Quote #14

Do you know what plugin is?
  1. Disable it, and if stopped crashing,
  2. then create a clean server install just with that bad plugin and test if it stills crashing.
  3. If yes, put a print on every line on that plugin as explained,
  4. then bring that line to us, or think by yourself, why it would crash on this line, etc, ... as just said.
  5. once you solve the problem, put that plugin back on your original server and test again if
    if stills crashing.
  6. if yes, go back to the clean install and test again. It must not crash, because you just fixed it.
  7. then, install some plugin and test if it is crashing,
  8. do it until you know what plugin is making it crash.
  9. after find it, to test only that plugin on an clean server install,
  10. if it crash, go to step 3, and do everything again for the second crashing plugin.
  11. if you go to on this step, your problem is solved.

Notes:
  • You can easily end up on a infinity loop on the steps above,
  • so keep a detailed report about what you are doing,
  • and bring that report to us here if you loop like 10 times.
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 07-15-2016 at 09:27. Reason: update
addons_zz is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-15-2016 , 10:41   Re: what is the best debug method to get the full error log (cs 1.6)
Reply With Quote #15

Well, there is no magic way to debug. From plugin, you can only add some debug text to see if it crashes at a specific line. If it crashes when Killed is called and before code in callback is executed, you should try to debug with gdb from your server console if you can, it could give some hint where it actually crashes and the variable value of the context. Try more if you can reproduce the issue. Disabling plugins to narrow down crash could help too but not necessarily.
Btw, 1.8.2 or dev version?
__________________

Last edited by Arkshine; 07-15-2016 at 10:48.
Arkshine is offline
Old.School
Senior Member
Join Date: Sep 2015
Location: France
Old 07-16-2016 , 18:59   Re: what is the best debug method to get the full error log (cs 1.6)
Reply With Quote #16

server crash with log
./hlds_run: line 255: 12273 Killed $HL_CMD
how to debug using with gdb?
__________________
You keep bringing B.R down .. He will rise again and kick Enemies asses !
Old.School is offline
Old.School
Senior Member
Join Date: Sep 2015
Location: France
Old 07-16-2016 , 18:59   Re: what is the best debug method to get the full error log (cs 1.6)
Reply With Quote #17

i'm using the officiel version 1.8.2
__________________
You keep bringing B.R down .. He will rise again and kick Enemies asses !
Old.School is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-16-2016 , 19:42   Re: what is the best debug method to get the full error log (cs 1.6)
Reply With Quote #18

If you have access to the server console, you can try to lauch the server like:
Code:
LD_LIBRARY_PATH=:. gdb --args hlds_linux -game cstrike +maxplayers 32 +map de_dust -debug
And when a crash happens, you can type the gdb command: bt full (for backtrace)
__________________
Arkshine is offline
Old.School
Senior Member
Join Date: Sep 2015
Location: France
Old 07-16-2016 , 20:06   Re: what is the best debug method to get the full error log (cs 1.6)
Reply With Quote #19

i have full acces

but when i try the command :

Quote:
GNU gdb (GDB) 7.9.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from hlds_linux...done.
(gdb)
can you give me exemple start script?
__________________
You keep bringing B.R down .. He will rise again and kick Enemies asses !

Last edited by Old.School; 07-16-2016 at 23:43.
Old.School is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-17-2016 , 03:57   Re: what is the best debug method to get the full error log (cs 1.6)
Reply With Quote #20

Sorry, you have to type "r" for resuming the server.

"q" to quit.
__________________

Last edited by Arkshine; 07-17-2016 at 03:57.
Arkshine is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode