View Single Post
  #2  
Old 09-09-2019, 10:32 AM
mushko
Fire Beetle
 
Join Date: Aug 2019
Posts: 12
Default

Some more info using gdb:

Code:
sudo gdb ucs
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 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"...
Reading symbols from ucs...done.
(gdb) run
Starting program: /home/eqemu/server/ucs 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[UCS Server] Starting EQEmu Universal Chat Server.
[UCS Server] Connecting to MySQL...

Program received signal SIGSEGV, Segmentation fault.
strlen () at ../sysdeps/x86_64/strlen.S:106
106     ../sysdeps/x86_64/strlen.S: No such file or directory.
(gdb) backtrace
#0  strlen () at ../sysdeps/x86_64/strlen.S:106
#1  0x00007ffff5f31da8 in _IO_vfprintf_internal (s=s@entry=0x7fffffffe180, format=<optimized out>, format@entry=0x555555882580 "Starting File Log 'logs/%s_%i.log'", 
    ap=ap@entry=0x7fffffffe2e8) at vfprintf.c:1637
#2  0x00007ffff5f58e89 in _IO_vsnprintf (string=0x7fffffffe270 "Starting File Log 'logs/\200\037", string@entry=0x0, maxlen=<optimized out>, maxlen@entry=0, 
    format=format@entry=0x555555882580 "Starting File Log 'logs/%s_%i.log'", args=args@entry=0x7fffffffe2e8) at vsnprintf.c:114
#3  0x00005555555db136 in vStringFormat[abi:cxx11](char const*, __va_list_tag*) (format=0x555555882580 "Starting File Log 'logs/%s_%i.log'", args=args@entry=0x7fffffffe348)
    at /home/eqemu/server_source/Server/common/string_util.cpp:47
#4  0x00005555555c9766 in EQEmuLogSys::Out (this=this@entry=0x555555868e20 <LogSys>, debug_level=debug_level@entry=Logs::General, log_category=log_category@entry=25, 
    message="Starting File Log 'logs/%s_%i.log'") at /home/eqemu/server_source/Server/common/eqemu_logsys.cpp:378
#5  0x00005555555c9a04 in EQEmuLogSys::StartFileLogs (this=0x555555868e20 <LogSys>, log_name=...) at /home/eqemu/server_source/Server/common/eqemu_logsys.cpp:493
#6  0x0000555555592d4f in main () at /home/eqemu/server_source/Server/ucs/ucs.cpp:101
Code:
sudo gdb queryserv
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 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"...
Reading symbols from queryserv...done.
(gdb) run
Starting program: /home/eqemu/server/queryserv 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[QS Server] Starting EQEmu QueryServ.
[QS Server] Connecting to MySQL...

Program received signal SIGSEGV, Segmentation fault.
strlen () at ../sysdeps/x86_64/strlen.S:106
106     ../sysdeps/x86_64/strlen.S: No such file or directory.
(gdb) backtrace
#0  strlen () at ../sysdeps/x86_64/strlen.S:106
#1  0x00007ffff5f31da8 in _IO_vfprintf_internal (s=s@entry=0x7fffffffe1e0, format=<optimized out>, format@entry=0x555555812c60 "Starting File Log 'logs/%s_%i.log'", 
    ap=ap@entry=0x7fffffffe348) at vfprintf.c:1637
#2  0x00007ffff5f58e89 in _IO_vsnprintf (string=0x7fffffffe2d0 "Starting File Log 'logs/\200\037", string@entry=0x0, maxlen=<optimized out>, maxlen@entry=0, 
    format=format@entry=0x555555812c60 "Starting File Log 'logs/%s_%i.log'", args=args@entry=0x7fffffffe348) at vsnprintf.c:114
#3  0x000055555558d3d6 in vStringFormat[abi:cxx11](char const*, __va_list_tag*) (format=0x555555812c60 "Starting File Log 'logs/%s_%i.log'", args=args@entry=0x7fffffffe3a8)
    at /home/eqemu/server_source/Server/common/string_util.cpp:47
#4  0x000055555558b736 in EQEmuLogSys::Out (this=this@entry=0x5555557fb180 <LogSys>, debug_level=debug_level@entry=Logs::General, log_category=log_category@entry=25, 
    message="Starting File Log 'logs/%s_%i.log'") at /home/eqemu/server_source/Server/common/eqemu_logsys.cpp:378
#5  0x000055555558b9d4 in EQEmuLogSys::StartFileLogs (this=0x5555557fb180 <LogSys>, log_name=...) at /home/eqemu/server_source/Server/common/eqemu_logsys.cpp:493
#6  0x0000555555579f20 in main () at /home/eqemu/server_source/Server/queryserv/queryserv.cpp:79
...not sure if it adds anything new to help troubleshoot though?
Reply With Quote