Raised This Month: $79 Target: $400
 19% 

[CRASH] SM 1.11.0.6634 Linux Profiler VPROF segfaults


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
canadianjeff
Member
Join Date: Sep 2016
Old 10-17-2020 , 05:10   [CRASH] SM 1.11.0.6634 Linux Profiler VPROF segfaults
Reply With Quote #1

Code:
sm exts list
[SM] Displaying 8 extensions:
[01] Automatic Updater (1.11.0.6634): Updates SourceMod gamedata files
[02] Webternet (1.11.0.6634): Extension for interacting with URLs
[03] Accelerator (2.5.0): SRCDS Crash Handler
[04] Client Preferences (1.11.0.6634): Saves client preference settings
[05] SQLite (1.11.0.6634): SQLite Driver
[06] SDK Tools (1.11.0.6634): Source SDK Tools
[07] BinTools (1.11.0.6634): Low-level C/C++ Calling API
[08] Top Menus (1.11.0.6634): Creates sorted nested menus

meta list
Listing 2 plugins:
  [01] SourceMod (1.11.0.6634) by AlliedModders LLC
  [02] SDK Tools (1.11.0.6634) by AlliedModders LLC

sm plugins list
[SM] Listing 16 plugins:
  01 "Admin File Reader" (1.11.0.6634) by AlliedModders LLC
  02 "Admin Help" (1.11.0.6634) by AlliedModders LLC
  03 "Admin Menu" (1.11.0.6634) by AlliedModders LLC
  04 "Anti-Flood" (1.11.0.6634) by AlliedModders LLC
  05 "Basic Ban Commands" (1.11.0.6634) by AlliedModders LLC
  06 "Basic Chat" (1.11.0.6634) by AlliedModders LLC
  07 "Basic Comm Control" (1.11.0.6634) by AlliedModders LLC
  08 "Basic Commands" (1.11.0.6634) by AlliedModders LLC
  09 "Basic Info Triggers" (1.11.0.6634) by AlliedModders LLC
  10 "Basic Votes" (1.11.0.6634) by AlliedModders LLC
  11 "Client Preferences" (1.11.0.6634) by AlliedModders LLC
  12 "Fun Commands" (1.11.0.6634) by AlliedModders LLC
  13 "Fun Votes" (1.11.0.6634) by AlliedModders LLC
  14 "Player Commands" (1.11.0.6634) by AlliedModders LLC
  15 "Reserved Slots" (1.11.0.6634) by AlliedModders LLC
  16 "Sound Commands" (1.11.0.6634) by AlliedModders LLC

sm prof
Profiling commands:
    list             - List all available profiling tools.
    start            - Start a profile with a given tool.
    stop             - Stop the current profile session.
    dump             - Dumps output from the current profile session.
    help             - Display help text for a profiler.

sm prof list
Profiling tools:
    vprof            - Valve built-in profiler

sm prof start vprof
Started profiling with vprof.
Wrote minidump to: /opt/steam/L4D2_LAST_STAND/left4dead2/addons/sourcemod/data/dumps/ac5034e7-a3f7-43b9-86526fb1-329268c2.dmp
Segmentation fault (core dumped)
BFD: warning: /opt/steam/L4D2_LAST_STAND/core is truncated: expected core file size >= 429481984, found: 1069056
Cannot access memory at address 0xf7f26934
Cannot access memory at address 0xf7f26930
Failed to read a valid object file image from memory.
Cannot access memory at address 0xf7f26934
Cannot access memory at address 0xf7f26930
debug.cmds:5: Error in sourced command file:
No function contains program counter for selected frame.
email debug.log to [email protected]
Sat 17 Oct 2020 02:03:45 AM PDT: Server restart in 10 seconds
#
#Console initialized.
Code:
[email protected]:/opt/steam/L4D2_LAST_STAND# gdb -p 1756
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 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-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".
Attaching to process 1756
[New LWP 1757]
[New LWP 1759]
[New LWP 1762]
[New LWP 1764]
[New LWP 1768]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0xf7fc5069 in __kernel_vsyscall ()
(gdb) continue
Continuing.

Thread 1 "srcds_linux" received signal SIGSEGV, Segmentation fault.
0xf7ba37ba in CVProfNode::ExitScope() () from bin/libtier0_srv.so
(gdb) bt
#0  0xf7ba37ba in CVProfNode::ExitScope() () from bin/libtier0_srv.so
#1  0xf7303f6c in _Host_RunFrame(float) () from /opt/steam/L4D2_LAST_STAND/bin/engine_srv.so
#2  0xf730e010 in CHostState::State_Run(float) () from /opt/steam/L4D2_LAST_STAND/bin/engine_srv.so
#3  0xf730e21e in CHostState::FrameUpdate(float) () from /opt/steam/L4D2_LAST_STAND/bin/engine_srv.so
#4  0xf730e329 in HostState_Frame(float) () from /opt/steam/L4D2_LAST_STAND/bin/engine_srv.so
#5  0xf73a0e53 in CEngine::Frame() () from /opt/steam/L4D2_LAST_STAND/bin/engine_srv.so
#6  0xf739df26 in CDedicatedServerAPI::RunFrame() () from /opt/steam/L4D2_LAST_STAND/bin/engine_srv.so
#7  0xf761cd0c in RunServerIteration(bool) () from bin/dedicated_srv.so
#8  0xf761cda8 in RunServer(bool) () from bin/dedicated_srv.so
#9  0xf739e00d in CModAppSystemGroup::Main() () from /opt/steam/L4D2_LAST_STAND/bin/engine_srv.so
#10 0xf73ef7f0 in CAppSystemGroup::Run() () from /opt/steam/L4D2_LAST_STAND/bin/engine_srv.so
#11 0xf739ee1f in CDedicatedServerAPI::ModInit(ModInfo_t&) () from /opt/steam/L4D2_LAST_STAND/bin/engine_srv.so
#12 0xf761ce80 in CDedicatedAppSystemGroup::Main() () from bin/dedicated_srv.so
#13 0xf763c030 in CAppSystemGroup::Run() () from bin/dedicated_srv.so
#14 0xf763c030 in CAppSystemGroup::Run() () from bin/dedicated_srv.so
#15 0xf75e84e5 in main () from bin/dedicated_srv.so
#16 0x080486f1 in main ()
(gdb)

Last edited by canadianjeff; 10-17-2020 at 05:54. Reason: linux prof tool used
canadianjeff is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 10-17-2020 , 07:33   Re: [CRASH] SM 1.11.0.6634 Linux Profiler VPROF segfaults
Reply With Quote #2

Does it work if you start vprof recording using the game's built-in commands?

Does it work if you do that without SourceMod loaded at all?
__________________
asherkin is online now
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 10-17-2020 , 10:23   Re: [CRASH] SM 1.11.0.6634 Linux Profiler VPROF segfaults
Reply With Quote #3

This is a known issue for L4D1/2 games.

Looks like I managed to find a solution:

Write in RCON:
Code:
vprof_on
Then start the profiler:
Code:
sm prof start vprof
It will not crash anymore.

To stop the profiler:
Code:
sm prof stop vprof
Dump it to console.log (useful together with -debug -condebug srcds startup options):
Code:
sm prof dump vprof
Finally, disable the profiler via RCON:
Code:
vprof_off
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch)
[My plugins] [My tools] [GitHub] [Articles]
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 10-17-2020 , 10:30   Re: [CRASH] SM 1.11.0.6634 Linux Profiler VPROF segfaults
Reply With Quote #4

Does anybody know, can valve profiler generate a log in real-time (to be able to see the call stack before the crash) ?

Here is a complete list of commands:
Spoiler


That potentially could be extremely useful, because we can see the detailing over the plugin and method names. Sample:
Spoiler
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch)
[My plugins] [My tools] [GitHub] [Articles]

Last edited by Dragokas; 10-17-2020 at 10:34.
Dragokas is offline
canadianjeff
Member
Join Date: Sep 2016
Old 10-18-2020 , 00:14   Re: [CRASH] SM 1.11.0.6634 Linux Profiler VPROF segfaults
Reply With Quote #5

TY Dragokas this seems to have solved the issue

I think SM PROF should check to see if vprof is on or it will segfault/crash
canadianjeff is offline
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 13:18.


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