Giter Club home page Giter Club logo

Comments (10)

Zeex avatar Zeex commented on June 18, 2024

I have no idea why it prints an incorrect line number and file name, it could be a bug in the Pawn compiler or in crashdetect itself (which is less likely). Sorry, I can't say more without a working example.

from samp-plugin-crashdetect.

westingham avatar westingham commented on June 18, 2024

What sort of information would you like me to provide? Logs, script, etc?

from samp-plugin-crashdetect.

Zeex avatar Zeex commented on June 18, 2024

A minimal script that produces this sort of output would be nice, or at least .amx so I can run it under debugger (or both).

from samp-plugin-crashdetect.

westingham avatar westingham commented on June 18, 2024

I'm not sure if I can provide a "minimal" script, but I can certainly make ours available to you. How would you like me to send it to you?

from samp-plugin-crashdetect.

Zeex avatar Zeex commented on June 18, 2024

You can PM me a link on the SA-MP forums (username is xeeZ)

from samp-plugin-crashdetect.

Zeex avatar Zeex commented on June 18, 2024

After looking at the actual error message I realized that I probably know why it couldn't print the correct line/file - the address is invalid, but it's happens to be within the range of some function from float.inc (actually it's operator - for Float: operands), hence we see the float.inc:108. But the callback name is most likely correct because it's taken from another source when the address lookup method fails. Even if it prined the line number if would tell nothing about the actual cause of the error.

I can still try to find where the error comes from if you want though. One of possible reasons is a a buffer overflow somewhere in OnPlayerDisconnect callback which overrides the callback return address. Make sure your strings have enough size to hold the data (BTW, 0x38 is the ASCII character 8).

from samp-plugin-crashdetect.

westingham avatar westingham commented on June 18, 2024

I appreciate the offer. I'll send you a PM on the SA-MP forums in a little bit.

from samp-plugin-crashdetect.

westingham avatar westingham commented on June 18, 2024

More examples of this error 6.

Here's an isolated incident that didn't cause any further issues:

[06/18/2013 16:30:40] [debug] Run time error 6: "Invalid instruction"
[06/18/2013 16:30:40] [debug] Unknown opcode 0x47d62800 at address 0x00000037
[06/18/2013 16:30:40] [debug] AMX backtrace:
[06/18/2013 16:30:40] [debug] #0 00000037 in Debug_Print0 () at C:\Program Files (x86)\pawno\include\float.inc:108
[06/18/2013 16:30:40] [debug] #1 native CallLocalFunction () [00471c30] from samp-server.exe
[06/18/2013 16:30:40] [debug] #2 00009d80 in public Itter_OnPlayerDisconnect (playerid=84, reason=1) at C:\Program Files (x86)\pawno\include\sscanf2.inc:143
[06/18/2013 16:30:40] [debug] #3 00007518 in public Streamer_OnPlayerDisconnect (playerid=84, reason=1) at C:\Program Files (x86)\pawno\include\YSI\y_iterate.inc:909
[06/18/2013 16:30:40] [debug] #4 000015ec in Debug_Print0 (... <2 variable arguments>) at C:\Program Files (x86)\pawno\include\streamer.inc:297
[06/18/2013 16:30:40] [part] Ollie_Dunridge has left the server (84:1)

And then here is an incident that triggered our ongoing problem where player data is not saved on disconnect and new players are unable to register. Whatever we're doing, probably this buffer overflow that I've yet to discover, it completely throws y_ini for a loop.

[06/18/2013 18:39:54] [debug] Run time error 6: "Invalid instruction"
[06/18/2013 18:39:54] [debug] Unknown opcode 0xd6280000 at address 0x00000036
[06/18/2013 18:39:54] [debug] AMX backtrace:
[06/18/2013 18:39:54] [debug] #0 00000036 in Debug_Print0 () at C:\Program Files (x86)\pawno\include\float.inc:108
[06/18/2013 18:39:54] [debug] #1 native CallLocalFunction () [00471c30] from samp-server.exe
[06/18/2013 18:39:54] [debug] #2 00009d80 in public Itter_OnPlayerDisconnect (playerid=37, reason=0) at C:\Program Files (x86)\pawno\include\sscanf2.inc:143
[06/18/2013 18:39:54] [debug] #3 00007518 in public Streamer_OnPlayerDisconnect (playerid=37, reason=0) at C:\Program Files (x86)\pawno\include\YSI\y_iterate.inc:909
[06/18/2013 18:39:54] [debug] #4 000015ec in Debug_Print0 (... <2 variable arguments>) at C:\Program Files (x86)\pawno\include\streamer.inc:297
[06/18/2013 18:39:54] [part] Jordie_Jordan has left the server (37:0)
[06/18/2013 18:39:55] [debug] Run time error 4: "Array index out of bounds"
[06/18/2013 18:39:55] [debug] Accessing element at negative index -1
[06/18/2013 18:39:55] [debug] AMX backtrace:
[06/18/2013 18:39:55] [debug] #0 001056fc in INI_Close (INI:file=-1) at C:\Program Files (x86)\pawno\include\YSI\y_ini.inc:746
[06/18/2013 18:39:55] [debug] #1 001424a0 in YiniRegisterPlayer (playerid=156, password[]=@0x0422b004 "mrbobster") at C:\Program Files (x86)\pawno\include\mtg_save.inc:1894
[06/18/2013 18:39:55] [debug] #2 001be2b0 in public S@@_OnDialogResponse (playerid=156, dialogid=3895, response=1, listitem=-1, inputtext[]=@0x0422b004 "mrbobster") at VortexRoleplay.pwn:9167
[06/18/2013 18:39:55] [debug] #3 000fe854 in public OnDialogResponse (playerid=156, dialogid=3895, response=1, listitem=-1, inputtext[]=@0x0422b004 "XXXXXXXXX") at C:\Program Files (x86)\pawno\include\YSI\y_hooks/impl.inc:2251
[06/18/2013 18:40:03] [part] Nas_Dianti has left the server (156:2)
[06/18/2013 18:40:03] [debug] Run time error 4: "Array index out of bounds"
[06/18/2013 18:40:03] [debug] Accessing element at negative index -1
[06/18/2013 18:40:03] [debug] AMX backtrace:
[06/18/2013 18:40:03] [debug] #0 001056fc in INI_Close (INI:file=-1) at C:\Program Files (x86)\pawno\include\YSI\y_ini.inc:746
[06/18/2013 18:40:03] [debug] #1 00170484 in public YiniSavePlayerData (playerid=94) at VortexRoleplay.pwn:3624
[06/18/2013 18:40:03] [debug] #2 0016866c in public SavePlayerData (playerid=94) at VortexRoleplay.pwn:3300
[06/18/2013 18:40:03] [debug] #3 00472574 in public S@@_OnPlayerDisconnect (playerid=94, reason=1) at VortexRoleplay.pwn:18495
[06/18/2013 18:40:03] [debug] #4 000faf84 in public SSCANF_OnPlayerDisconnect (playerid=94, reason=1) at C:\Program Files (x86)\pawno\include\YSI\y_hooks/impl.inc:661
[06/18/2013 18:40:03] [debug] #5 native CallLocalFunction () [00471c30] from samp-server.exe
[06/18/2013 18:40:03] [debug] #6 00009d80 in public Itter_OnPlayerDisconnect (playerid=94, reason=1) at C:\Program Files (x86)\pawno\include\sscanf2.inc:143
[06/18/2013 18:40:03] [debug] #7 00007518 in public Streamer_OnPlayerDisconnect (playerid=94, reason=1) at C:\Program Files (x86)\pawno\include\YSI\y_iterate.inc:909
[06/18/2013 18:40:03] [debug] #8 000015ec in Debug_Print0 (... <2 variable arguments>) at C:\Program Files (x86)\pawno\include\streamer.inc:297
[06/18/2013 18:40:03] [part] Lawrence_Johnson has left the server (94:1)

At this point, I wonder if I should be bugging Y_Less instead of you since it's really not your problem.

from samp-plugin-crashdetect.

Zeex avatar Zeex commented on June 18, 2024

Does this Debug_Print0 happen on the newest version? There should be a real function name instead of this but it was bugged because I didn't took automata into account in earlier versions.

from samp-plugin-crashdetect.

westingham avatar westingham commented on June 18, 2024

I am currently running the 4.11.2, so yes, it's happening. While we're still not sure what's causing the initial error 6, we're pretty sure that the "INI_Close (INI:file=-1)" is from hitting the MAX_WRITES limit.

from samp-plugin-crashdetect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.