Open Rexikon opened 3 years ago
Is the line ending of the key.pem correct? Since I cloned TFS on Windows and run the server using WSL the key.pem file had the wrong line endings. When I had that happen the server wouldn't start.
Is the line ending of the key.pem correct? Since I cloned TFS on Windows and run the server using WSL the key.pem file had the wrong line endings. When I had that happen the server wouldn't start.
Checked and this file have /n line endings, so it's correct. Used dos2unix on key.pem
cat -A key.pem -----BEGIN RSA PRIVATE KEY-----$ MIICXAIBAAKBgQCbZGkDtFsHrJVlaNhzU71xZROd15QHA7A+bdB5OZZhtKg3qmBWHXzLlFL6AIBZ$ SQmIKrW8pYoaGzX4sQWbcrEhJhHGFSrT27PPvuetwUKnXT11lxUJwyHFwkpb1R/UYPAbThW+sN4Z$ MFKKXT8VwePL9cQB1nd+EKyqsz2+jVt/9QIDAQABAoGAQovTtTRtr3GnYRBvcaQxAvjIV9ZUnFRm$ C7Y3i1KwJhOZ3ozmSLrEEOLqTgoc7R+sJ1YzEiDKbbete11EC3gohlhW56ptj0WDf+7ptKOgqiEy$ Kh4qt1sYJeeGz4GiiooJoeKFGdtk/5uvMR6FDCv6H7ewigVswzf330Q3Ya7+jYECQQERBxsga6+5$ x6IofXyNF6QuMqvuiN/pUgaStUOdlnWBf/T4yUpKvNS1+I4iDzqGWOOSR6RsaYPYVhj9iRABoKyx$ AkEAkbNzB6vhLAWht4dUdGzaREF3p4SwNcu5bJRa/9wCLSHaS9JaTq4lljgVPp1zyXyJCSCWpFnl$ 0WvK3Qf6nVBIhQJBANS7rK8+ONWQbxENdZaZ7Rrx8HUTwSOS/fwhsGWBbl1Qzhdq/6/sIfEHkfeH$ 1hoH+IlpuPuf21MdAqvJt+cMwoECQF1LyBOYduYGcSgg6u5mKVldhm3pJCA+ZGxnjuGZEnet3qeA$ eb05++112fyvO85ABUun524z9lokKNFh45NKLjUCQGshzV43P+RioiBhtEpB/QFzijiS4L2HKNu1$ tdhudnUjWkaf6jJmQS/ppln0hhRMHlk9Vus/bPx7LtuDuo6VQDo=$ -----END RSA PRIVATE KEY-----$ $
I don't understand why you got such a problem where is a try catch around loading the pem file https://github.com/otland/forgottenserver/blob/8cc1f3d51c6f4c90ce66b6d3122ce4388d709fe8/src/otserv.cpp#L192.
I don't understand why you got such a problem where is a try catch around loading the pem file
I see, but there is problem to run this on centos...
hey @Rexikon is this still happening or did you find a solution?
hey @Rexikon is this still happening or did you found a solution?
Still same error
@Rexikon Are we talking about TFS bug or problem with some basic C++ library on CentOS 8? Loading string finish in SIGSEGV?!
Can you prepare Dockerfile to reproduce it?
Maybe https://github.com/otland/forgottenserver/pull/4655 solved this problem, no?
@ranisalt
Probably, but this was also running a modified version of the repo, SPDLOG_INFO
is not present there at that point in time https://github.com/otland/forgottenserver/blob/474b959f8bae491afe10d2e7fa4919722e594ce3/src/rsa.cpp
Before creating an issue, please ensure:
Steps to reproduce (include any configuration/script required to reproduce)
Issue can be easilly reproducted at fresh centos 8 install (from cloud or vps)
Expected behaviour
Server starts normally
Actual behaviour
Hi, I'm trying to run this on CentOS Linux release 8.4.2105, but it fails at g_RSA.loadPEM("key.pem"); I ran this as root to be sure that isn't privilege issue. I use default key file, and tried to create own file with random text data - its fails too. I have debugged it manually by adding comments and it is falling at: /src/rsa.cpp line 55 for (std::string line; std::getline(file, line); oss << line); Tried to read and print line by line, but it fails: if (file.is_open()) { std::string line; while (std::getline(file, line)) { SPDLOG_INFO("line {}", line.c_str()); } file.close(); }
GDB LOG