[AJUDA] CrashDetected -
VictorSobreira - 31.01.2012
Boa noite.
Estou com problemas no meu servidor, que assim que inicio o mesmo, ele crasha antes mesmo de terminar de carregar o GM.
Nгo sei o que pode estar acontecendo, entгo me disseram pra usar o crashdetected, porйm, nгo me ensinaram a usa-lo.
Procurei na internet sobre o programa, mas nгo achei nada que me ajuda-se.
Entгo, se alguйm puder me ajudar, ficarei grato.
Agradeзo desde jб.
Re: [AJUDA] CrashDetected -
Don_Speed - 31.01.2012
Posta o Server Config e o Server_Log
Re: [AJUDA] CrashDetected -
VictorSobreira - 01.02.2012
pawn Код:
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3d-R2, (C)2005-2011 SA-MP Team
[22:49:13] filterscripts = "" (string)
[22:49:13] password = "" (string)
[22:49:13]
[22:49:13] Server Plugins
[22:49:13] --------------
[22:49:13] Loaded 0 plugins.
[22:49:13]
[22:49:13] Filterscripts
[22:49:13] ---------------
[22:49:13] Loaded 0 filterscripts.
[22:49:13]
---------------------------------------------------------
[22:49:13] Server Ligado: [31/01/2012 22:49:13]
[22:49:13] ---------------------------------------------------------
[22:49:13] -----------------------------
[22:49:13] *** GM - Annonymous RPG Iniciado ***
[22:49:13] -----------------------------
[22:49:13] (Annonymous): 28 Orgs Carregadas
pawn Код:
echo Executing Server Config...
lanmode
0rcon_password
*retirado
*maxplayers
30port
7777hostname SA
-MP
0.3 Server
gamemode0
*retirado
* 1filterscripts
announce
1query
1weburl
[url
]www.annonymous.forumeiros.com/[/url
]onfoot_rate
40incar_rate
40weapon_rate
40stream_distance
300.0stream_rate
1000maxnpc
0logtimeformat
[%H:%M:%S
]password
OBS

[*url][/url] apareceu de intruso.
Re: [AJUDA] CrashDetected -
VictorSobreira - 01.02.2012
Up ? '-'
Re: [AJUDA] CrashDetected -
Ricop522 - 01.02.2012
O log do crashdetect fica dentro da pasta plugins, olha ele.
Re: [AJUDA] CrashDetected -
VictorSobreira - 01.02.2012
mas qual й o nome do arquivo ?
Re: [AJUDA] CrashDetected -
Ricop522 - 01.02.2012
crashdetect.txt
Re: [AJUDA] CrashDetected -
VictorSobreira - 01.02.2012
pawn Код:
// Copyright © 2011 Zeex//// Licensed under the Apache License, Version 2.0 (the "License");// you may not use this file except in compliance with the License.// You may obtain a copy of the License at//// http://www.apache.org/licenses/LICENSE-2.0//// Unless required by applicable law or agreed to in writing, software// distributed under the License is distributed on an "AS IS" BASIS,// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.// See the License for the specific language governing permissions and// limitations under the License.#ifndef CRASHDETECT_H#define CRASHDETECT_H#include <stack>#include <string>#include <boost/shared_ptr.hpp>#include <boost/unordered_map.hpp>#include "amxdebuginfo.h"#include "configreader.h"// Compatibility with GDK#define AMX_EXEC_GDK (-10) class crashdetect
{public: // SA-MP plugin acrhitecture, called from plugin.cpp static bool Load
(void
**ppPluginData
);
static void Unload
();
static int AmxLoad
(AMX
*amx
);
static int AmxUnload
(AMX
*amx
);
// Gets a "crashdetect" instance mapped to a AMX or creates a new one. static crashdetect
*GetInstance
(AMX
*amx
);
// AMX API hooks. static int AMXAPI AmxDebug
(AMX
*amx
);
static int AMXAPI AmxCallback
(AMX
*amx, cell index, cell
*result, cell
*params
);
static int AMXAPI AmxExec
(AMX
*amx, cell
*retval, int index
);
// Global event handlers. static void Crash
();
static void RuntimeError
(AMX
*amx, cell index, int error
);
static void Interrupt
();
static void ExitOnError
();
// Instance-specific event handlers, called by the global ones (see above). void HandleCrash
();
void HandleNativeError
(int index
);
void HandleRuntimeError
(int index, int error
);
void HandleInterrupt
();
// Called by the global hooks. int HandleAmxDebug
();
int HandleAmxCallback
(cell index, cell
*result, cell
*params
);
int HandleAmxExec
(cell
*retval, int index
);
// Prints a call stack, including inter-AMX calls like CallRemoteFunction(). void PrintBacktrace
() const;
private: explicit crashdetect
(AMX
*amx
);
private
: // The corresponding AMX instance and its header. AMX
*amx_;
AMX_HEADER
*amxhdr_;
// AMX debugging information (symbols, file names, line numbers, etc). AMXDebugInfo debugInfo_;
// The path to the AMX file. std::string amxPath_;
// The name of the AMX file + .amx extension. std::string amxName_;
// Old AMX callback and debug hook. AMX_CALLBACK prevCallback_;
AMX_DEBUG prevDebugHook_;
// This class represents both native and public function calls. class NativePublicCall
{ public: enum Type
{ NATIVE,
PUBLIC
};
NativePublicCall
(Type type, AMX
*amx, cell index, ucell frm
) : type_
(type
), amx_
(amx
), index_
(index
), frm_
(frm
) {} Type type
() const { return type_;
} AMX
*amx
() const { return amx_;
} cell index
() const { return index_;
} ucell frm
() const { return frm_;
} private: Type type_;
AMX
*amx_;
ucell frm_;
cell index_;
};
// The native/public call stack. static std::stack
<NativePublicCall
> npCalls_;
// This variable is set to true when an AMX runtime error // occurs to prvent double report in certain cases. static bool errorCaught_;
// The server config (server.cfg). static ConfigReader serverCfg;
// AMX* <=> crashdetect* static boost::unordered_map
<AMX
*,
boost::shared_ptr
<crashdetect
> > instances_;
};
#endif // !CRASHDETECT_H
seria isso ?
Re: [AJUDA] CrashDetected -
VictorSobreira - 01.02.2012
pawn Код:
--------------------------
SA-MP Server: 0.3d-R2
Exception At Address: 0x0048E22B
Registers:
EAX: 0x0012FDA0 EBX: 0x017530EC ECX: 0x00000000 EDX: 0x004056F0
ESI: 0x00000000 EDI: 0x00D8C5A8 EBP: 0x0012FDB0 ESP: 0x0012FD88
EFLAGS: 0x00010286
Stack:
+0000: 0x00D8C5A8 0x00D8C5A8 0x017530EC 0xFFFFFFFF
+0010: 0x0012FD88 0x0012F9AC 0x0012FE5C 0x004920A8
+0020: 0x004ACCE0 0xFFFFFFFF 0x01758780 0x004056FD
+0030: 0x00000000 0x004010B6 0x00D8C5A8 0x01C10038
+0040: 0x019C203C 0x00402B63 0x00D8C5A8 0x00000009
+0050: 0x0012FDF0 0x01C10038 0x004E6288 0x00D8C5A8
+0060: 0x00000001 0x00000000 0x00000000 0x0024DFF8
+0070: 0x0024DFFC 0x0024E634 0x0024A638 0x0024E610
+0080: 0x0024A638 0x017530EC 0x019C203C 0x00000000
+0090: 0x01750020 0x0026EF50 0x0046D9A4 0x00D8C5A8
+00A0: 0x0012FE38 0x000000C7 0x009A7930 0xFFFFFFFF
+00B0: 0x000000C7 0x009A7930 0x00483A2B 0x004E6288
+00C0: 0x004ABACD 0x009A5F29 0xFFFFFFFF 0x00000000
+00D0: 0x00D8C5A8 0x0012FEDC 0x0049FEA8 0xFFFFFFFF
+00E0: 0x00482E21 0x00000001 0x00000000 0x00000A28
+00F0: 0x0012FFC0 0x7FFD9000 0x00015180 0x00010101
+0100: 0x0000001E 0x00001E61 0x00000070 0x00000868
+0110: 0x009A7930 0x656D6167 0x65646F6D 0x00003531
+0120: 0x004B6014 0x004B6010 0x7FFD9000 0x004A0190
+0130: 0x0012FEA8 0x0012FFB0 0x0012FFB0 0x004920A8
Re: [AJUDA] CrashDetected -
VictorSobreira - 01.02.2012
nada, nгo funcionou com/sem o Plugin Streamer