Raised This Month: $32 Target: $400
 8% 

Debug a linux extension


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 05-12-2017 , 13:40   Debug a linux extension
Reply With Quote #1

I've got some extensions which sometimes causes the server to segfault. I wonder if there's a way to build all the extensions in debug mode so I would be able to see a crash trace stack in the logs.
I tried this steps:
Building:
python ../configure.py --sdks css --enable-debug
Attaching to the process:
gdb path/to/srcds_linux <pid>
The result is on the image. Empty logs:

Quote:
----------------------------------------------
CRASH: Fri May 12 21:074 MSK 2017
Start Line: ./srcds_linux -console -game cstrike -maxplayers 64 +port 27018 +exec server.cfg +map de_dust+fps_max 0 +host_thread_mode 2 +threadpool_affinity 2 +log on -secure 1 -insecure +sv_lan 0 -condebug -debug -ignoresigint
End of Source crash report
----------------------------------------------
Attached Thumbnails
Click image for larger version

Name:	Untitled-1.png
Views:	133
Size:	65.1 KB
ID:	162736  

Last edited by kadet.89; 05-12-2017 at 14:39.
kadet.89 is offline
Send a message via Skype™ to kadet.89
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 05-12-2017 , 14:41   Re: Debug a linux extension
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=277703
__________________
WildCard65 is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 05-12-2017 , 15:24   Re: Debug a linux extension
Reply With Quote #3

Thanks, it works.
kadet.89 is offline
Send a message via Skype™ to kadet.89
Reply


Thread Tools
Display Modes

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 07:17.


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