From 2330fc26ec12aad5eaf645bc4a8059e9a5e094f6 Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 15 Feb 2016 11:54:28 +0100 Subject: [PATCH 1/3] Fixed: Warning (wrong size) --HG-- branch : develop --- code/nel/src/net/inet_address.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/nel/src/net/inet_address.cpp b/code/nel/src/net/inet_address.cpp index 79224b1ee..9dc7f5d00 100644 --- a/code/nel/src/net/inet_address.cpp +++ b/code/nel/src/net/inet_address.cpp @@ -323,12 +323,12 @@ void CInetAddress::init() // IPv4 _SockAddr = new sockaddr_in; - memset(_SockAddr, 0, sizeof(_SockAddr)); + memset(_SockAddr, 0, sizeof(sockaddr_in)); _SockAddr->sin_family = AF_INET; // IPv6 _SockAddr6 = new sockaddr_in6; - memset(_SockAddr6, 0, sizeof(_SockAddr6)); + memset(_SockAddr6, 0, sizeof(sockaddr_in6)); _SockAddr6->sin6_family = AF_INET6; } From 5981452e42c6e01bba01d0568a45433933cc012e Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 15 Feb 2016 12:07:49 +0100 Subject: [PATCH 2/3] Changed: Add other parameters for client --HG-- branch : develop --- code/ryzom/client/src/client.cpp | 33 +++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/code/ryzom/client/src/client.cpp b/code/ryzom/client/src/client.cpp index 5ca1ef4b4..1cb3fb3c9 100644 --- a/code/ryzom/client/src/client.cpp +++ b/code/ryzom/client/src/client.cpp @@ -17,7 +17,6 @@ #include "stdpch.h" -#include "user_agent.h" ////////////// // INCLUDES // @@ -45,7 +44,6 @@ //#define TEST_CRASH_COUNTER #ifdef TEST_CRASH_COUNTER -#include "nel/net/email.h" #undef FINAL_VERSION #define FINAL_VERSION 1 #endif // TEST_CRASH_COUNTER @@ -61,6 +59,7 @@ #include "release.h" #include "client_cfg.h" #include "far_tp.h" +#include "user_agent.h" /////////// // USING // @@ -177,6 +176,12 @@ int main(int argc, char **argv) Args.addAdditionalArg("password", "Password to use", true, false); Args.addAdditionalArg("shard_id", "Shard ID to use", true, false); +#ifdef TEST_CRASH_COUNTER + Args.addArg("", "crash", "", "Crash client before init"); + Args.addArg("", "break", "", "Create a break point"); + Args.addArg("", "release", "", "Crash client after init"); +#endif // TEST_CRASH_COUNTER + #ifdef NL_OS_WINDOWS if (!Args.parse(cmdline)) return 1; #else @@ -214,6 +219,13 @@ int main(int argc, char **argv) CPath::setCurrentPath(currentPath); } +#ifdef TEST_CRASH_COUNTER + if (Args.haveLongArg("crash")) + { + volatile int toto = *(int*)0; + } +#endif // TEST_CRASH_COUNTER + #ifdef NL_OS_MAC struct rlimit rlp, rlp2, rlp3; @@ -233,19 +245,8 @@ int main(int argc, char **argv) #if defined(NL_OS_WINDOWS) -#if FINAL_VERSION - //initCrashReport (); -#endif // FINAL_VERSION - - // Set default email value for reporting error #ifdef TEST_CRASH_COUNTER - // initCrashReport (); - // setReportEmailFunction ((void*)sendEmail); - // setDefaultEmailParams ("smtp.nevrax.com", "", "hulud@nevrax.com"); - - if (string(cmdline) == "/crash") - volatile int toto = *(int*)0; - if (string(cmdline) == "/break") + if (Args.haveLongArg("break")) { __debugbreak(); } @@ -406,8 +407,10 @@ int main(int argc, char **argv) //CFile::createEmptyFile(getLogDirectory() + "during_release"); #ifdef TEST_CRASH_COUNTER - if (string(cmdline) == "/release") + if (Args.haveLongArg("release")) + { volatile int toto = *(int*)0; + } #endif // TEST_CRASH_COUNTER // Final release From 52252e691b493c6613442a0ec17b202d124acad6 Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 15 Feb 2016 12:08:55 +0100 Subject: [PATCH 3/3] Changed: We're now using crash_report to send reports --HG-- branch : develop --- code/ryzom/client/src/init.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/code/ryzom/client/src/init.cpp b/code/ryzom/client/src/init.cpp index c0df71a43..a203614e4 100644 --- a/code/ryzom/client/src/init.cpp +++ b/code/ryzom/client/src/init.cpp @@ -896,10 +896,6 @@ void prelogInit() FPU_CHECKER_ONCE - // Set default email value for reporting error - // setReportEmailFunction ((void*)sendEmail); - // setDefaultEmailParams ("smtp.nevrax.com", "", "ryzombug@nevrax.com"); - // create the save dir. if (!CFile::isExists("save")) CFile::createDirectory("save");