View Single Post
  #10  
Old 09-15-2019, 06:28 AM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Debugging it done, the error is actually in eqemu_logsys.cpp in platform_file_name.c_str(). "ucs" is definitely in platform_file_name but somehow c_str is causing a segmentation fault. I am rusty on my C++ at the moment but I will get a resolution.

At some point platform_file_name is getting assigned the value of ucs, but at the time LogSys.StartFileLogs() is ran at ucs.cpp on line 101, that value does not appear to be there, at least on the surface. When we get to eqemu_logsys.cpp line 462 it throws a segmentation fault, my best guess is there is a null there. I am still reading on proper use of c_str but on the surface I guess there is a null there. There is a check for empty but it seems to blow past that.
Reply With Quote