IS4Code / PawnPlus

A SA-MP plugin enhancing the capabilities of the Pawn programming language
MIT License
102 stars 17 forks source link

Server crashes at Ubuntu 20.04 #37

Closed ghost closed 4 years ago

ghost commented 4 years ago

Static/normal version v1.3.1

[23:30:27]  PawnPlus v1.3.1 loaded
[23:30:27]  Created by IllidanS4
[23:30:27]   Loaded.

[23:30:27]   Loaded.
[23:30:27]  Loaded 13 plugins.

[23:30:27] [debug] Server crashed due to an unknown error
IS4Code commented 4 years ago

Do you have crashdetect? Does it crash for all versions, even if you compile it yourself?

ghost commented 4 years ago

Yes, I have crashdetect (the newest version).

I tried both. Static/Dynamic from release page and static compiled by myself.

IS4Code commented 4 years ago

What other plugins do you have?

ghost commented 4 years ago

sscanf, mysql (r41), regex, streamer, pawn memory, pawn cmd, pawn raknet, my own weapon sync plugin, colandreas, whirlpool, timerfix

IS4Code commented 4 years ago

Does it work without a combination of them?

ghost commented 4 years ago

I did some tests, these are logs:

plugins pawnplus.so

[18:52:36] Server Plugins
[18:52:36] --------------
[18:52:36]  Loading plugin: pawnplus-static.so
[18:52:36]  PawnPlus v1.3.1 loaded
[18:52:36]  Created by IllidanS4
[18:52:36]   Loaded.
[18:52:36]  Loaded 1 plugins.

plugins crashdetect.so pawnplus.so

[18:54:43] --------------
[18:54:43]  Loading plugin: crashdetect.so
[18:54:43]   CrashDetect plugin 4.20
[18:54:43]   Loaded.
[18:54:43]  Loading plugin: pawnplus-static.so
[18:54:43]  PawnPlus v1.3.1 loaded
[18:54:43]  Created by IllidanS4
[18:54:43]   Loaded.
[18:54:43]  Loaded 2 plugins.

[18:54:43] [debug] Server crashed due to an unknown error
[18:54:43] [debug] Native backtrace:
[18:54:43] [debug] #0 f7a58f7f in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () in plugins/crashdetect.so
[18:54:43] [debug] #1 f7a5181d in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () in plugins/crashdetect.so
[18:54:43] [debug] #2 f7a51e48 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () in plugins/crashdetect.so
[18:54:43] [debug] #3 f7a535dc in _ZN11CrashDetect7OnCrashERKN2os7ContextE () in plugins/crashdetect.so
[18:54:43] [debug] #4 f7a5879f in ?? () in plugins/crashdetect.so
[18:54:43] [debug] #5 f7fabb70 in __kernel_rt_sigreturn () in linux-gate.so.1
[18:54:43] [debug] Registers:
[18:54:43] [debug] EAX: 00000000 EBX: 08c38220 ECX: f7a83178 EDX: 00000000
[18:54:43] [debug] ESI: f7c15cce EDI: f7c18ee4 EBP: 000000f0 ESP: ff92518c
[18:54:43] [debug] EIP: 00000000 EFLAGS: 00010286
[18:54:43] [debug] Stack:
[18:54:43] [debug] ESP+00000000: f7a56d43 00000000 f7a82bfc f7a33bc0
[18:54:43] [debug] ESP+00000020: f76a2208 f7c18ee4 f7c15cce f7fbffa9
[18:54:43] [debug] ESP+00000040: 00000004 00000000 00000000 0000000e
[18:54:43] [debug] ESP+00000060: f7c6e000 f7c18ee4 f7c71df0 000000f0
[18:54:43] [debug] ESP+00000080: 00000001 f7526b24 f7c6e000 f753c9d4
[18:54:43] [debug] ESP+000000a0: 00000000 f7fd8000 f7c18ee4 f7c71dc0
[18:54:43] [debug] ESP+000000c0: 00000000 08bfe7f0 f7fb6d4c 00000001
[18:54:43] [debug] ESP+000000e0: 08bfe7f0 00010100 00000101 01010001
[18:54:43] [debug] ESP+00000100: f75880c7 f7511d04 3b44a098 ff9252c0
[18:54:43] [debug] ESP+00000120: 00000020 00000031 00000001 08bfe7f0
[18:54:43] [debug] ESP+00000140: 0000006e 00000039 3b44a098 08bfe9b4
[18:54:43] [debug] ESP+00000160: ff92535c 08bfe950 00000000 00000000
[18:54:43] [debug] ESP+00000180: f7b0ae69 00000000 f7a30000 00000000
[18:54:43] [debug] ESP+000001a0: 00000000 00000000 ff9253f8 f76e4e8b
[18:54:43] [debug] ESP+000001c0: a788ef00 ff92537c 096b393f f7bacb82
[18:54:43] [debug] ESP+000001e0: f7f85606 00000000 00000000 00000000
[18:54:43] [debug] ESP+00000200: f7f85650 f7c713c4 08c13d50 00000000
[18:54:43] [debug] ESP+00000220: f7c6e000 00000000 08cb4390 f7c6e000
[18:54:43] [debug] ESP+00000240: 08c13ff0 08c14020 f7bacffa f7c6e000
[18:54:43] [debug] ESP+00000260: 08c14170 08c141a0 08c141d0 08c14200
[18:54:43] [debug] ESP+00000280: 08c142f0 08c14320 08c14350 08c14380
[18:54:43] [debug] ESP+000002a0: 08c14470 08c144a0 08c144d0 08c14500
[18:54:43] [debug] ESP+000002c0: 08c145f0 08c14620 08c14650 08c14680
[18:54:43] [debug] ESP+000002e0: 08c14770 08c147a0 08c147d0 08c14800
[18:54:43] [debug] ESP+00000300: 08c148f0 08c14920 08c14950 08c14980
[18:54:43] [debug] ESP+00000320: 08c14a70 08c14aa0 08c14ad0 08c14b00
[18:54:43] [debug] ESP+00000340: 08c14bf0 08c14c20 f7fb6ae4 f7dfd48b
[18:54:43] [debug] ESP+00000360: 08c14d70 08c14da0 f7fb6ae4 f7c6e740
[18:54:43] [debug] ESP+00000380: 00000040 00000000 f7fd8000 00000003
[18:54:43] [debug] ESP+000003a0: 00000040 00000032 f7fb6e56 00000001
[18:54:43] [debug] ESP+000003c0: 0000006e ff9255a4 ff9255a0 00000077
[18:54:43] [debug] ESP+000003e0: 00000000 f7a91b2c 30d95d7f 08cb4390
[18:54:43] [debug] Loaded modules:
[18:54:43] [debug] 00000000 - 00188003 samp03svr
[18:54:43] [debug] f7fab000 - f7fabd2c linux-gate.so.1
[18:54:43] [debug] f7f97000 - f7f99eec /lib/i386-linux-gnu/libdl.so.2
[18:54:43] [debug] f7f74000 - f7f9476b /lib/i386-linux-gnu/libpthread.so.0
[18:54:43] [debug] f7d96000 - f7f7f86e /lib32/libstdc++.so.6
[18:54:43] [debug] f7c91000 - f7d94f08 /lib/i386-linux-gnu/libm.so.6
[18:54:43] [debug] f7c72000 - f7c8ea04 /lib/i386-linux-gnu/libgcc_s.so.1
[18:54:43] [debug] f7a84000 - f7c779e7 /lib/i386-linux-gnu/libc.so.6
[18:54:43] [debug] f7fac000 - f7fd6eeb /lib/ld-linux.so.2
[18:54:43] [debug] f7a39000 - f7a813d4 plugins/crashdetect.so
[18:54:43] [debug] f74f4000 - f7a4d104 plugins/pawnplus-static.so

plugins crashdetect.so colandreas.so

[18:56:52] --------------
[18:56:52]  Loading plugin: crashdetect.so
[18:56:52]   CrashDetect plugin 4.20
[18:56:52]   Loaded.
[18:56:52]  Loading plugin: colandreas.so
[18:56:52] *********************
[18:56:52] ** Created By:     **
[18:56:52] ** [uL]Chris42O    **
[18:56:52] ** [uL]Slice       **
[18:56:52] ** [uL]Pottus      **
[18:56:52] *********************
[18:57:01] Loaded collision data.
[18:57:01] *********************
[18:57:01]   ColAndreas Loaded
[18:57:01]    v1.4.0
[18:57:01] *********************
[18:57:01]   Loaded.
[18:57:01]  Loaded 2 plugins.

[18:57:01] 
[18:57:01] Filterscripts
[18:57:01] ---------------
[18:57:01]   Loading filterscript 'objects.amx'...
[18:57:01] [debug] Run time error 19: "File or function is not found"
[18:57:01] [debug]  DestroyDynamicObject
[18:57:01] [debug]  CreateDynamicObject
[18:57:01] [debug]  SetDynamicObjectMaterial
[18:57:01] [debug]  SetDynamicObjectMaterialText
[18:57:01] [debug]  CountDynamicObjects
[18:57:01]   Loaded 1 filterscripts.

[18:57:01] [debug] Run time error 19: "File or function is not found"
[18:57:01] [debug]  cache_get_row_count
[18:57:01] [debug]  PC_Init
[18:57:01] [debug]  PR_Init
[18:57:01] [debug]  SSCANF_Init
[18:57:01] [debug]  SSCANF_IsConnected
[18:57:01] [debug]  SSCANF_Join
[18:57:01] [debug]  SSCANF_Leave...

As you can see, when there is another plugin (colandreas.so), filterscripts and gamemode are loaded. I tested this trying dynamic and static - result is the same.

(samp-server 0.3.7 r3)

IS4Code commented 4 years ago

Do older versions work?

ghost commented 4 years ago

No. I tested all versions from releases page and none works properly.

ghost commented 4 years ago

Could you give me a version with debugging or something?

IS4Code commented 4 years ago

Possibly related to this.

ghost commented 4 years ago

Server installed on Debian 8 works perfectly.

Dayvison commented 3 years ago

Same here.

cat /proc/version
Linux version 5.4.0-7634-generic (buildd@lcy01-amd64-008) (gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)) #38~1595345317~20.04~a8480ad-Ubuntu SMP Wed Jul 22 15:13:45 UTC 

I compiled it on the machine, but it still crashes

#include <a_samp>
#include <PawnPlus>

main()
{
    print("hi");
}
sampctl p run --forceBuild

Server Plugins
--------------
 Loading plugin: crashdetect.so
  CrashDetect plugin 4.20
  Loaded.
 Loading plugin: PawnPlus.so
 PawnPlus v1.3.1 loaded
 Created by IllidanS4
  Loaded.
 Loaded 2 plugins.

[debug] Server crashed due to an unknown error
[debug] Native backtrace:
[debug] #0 f797cf7f in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () in plugins/crashdetect.so
[debug] #1 f797581d in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () in plugins/crashdetect.so
[debug] #2 f7975e48 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () in plugins/crashdetect.so
[debug] #3 f79775dc in _ZN11CrashDetect7OnCrashERKN2os7ContextE () in plugins/crashdetect.so
[debug] #4 f797c79f in ?? () in plugins/crashdetect.so
[debug] #5 f7edbb70 in __kernel_rt_sigreturn () in linux-gate.so.1
[debug] Registers:
[debug] EAX: 00000000 EBX: 088b6b80 ECX: f79a7178 EDX: 00000000
[debug] ESI: f7b39cce EDI: f7b3cee4 EBP: 000000f0 ESP: ff8cf9bc
[debug] EIP: 00000000 EFLAGS: 00010286
[debug] Stack:
[debug] ESP+00000000: f797ad43 00000000 0888c024 f794d9c0
[debug] ESP+00000020: f7746cda f7b3cee4 f7b39cce f7eeffa9
[debug] ESP+00000040: 00000010 00000005 00000002 f7746c79
[debug] ESP+00000060: f7ad0bdb f7b3cee4 f7b39cce f788d530
[debug] ESP+00000080: f78a07f0 00000006 00000001 f788f5e0
[debug] ESP+000000a0: f78a0814 00000003 00000005 f78901b0
[debug] ESP+000000c0: f78a0708 00000003 00000000 f788d2a0
[debug] ESP+000000e0: 01000001 00000004 00000001 f788d0a0
[debug] ESP+00000100: f789c325 00000003 00000001 f788ced0
[debug] ESP+00000120: f789c260 00000003 00000001 f788fd70
[debug] ESP+00000140: f789c23a 00000004 00000002 f788f900
[debug] ESP+00000160: f789c218 00000003 00000001 f788cdf0
[debug] ESP+00000180: f78a0900 00000001 00000006 f7892e10
[debug] ESP+000001a0: f78a0825 00000001 00000001 f7890350
[debug] ESP+000001c0: f7b953c4 ff8cfbac f7eb8000 000000f0
[debug] ESP+000001e0: f7ad0b70 088925c0 088925f0 08892620
[debug] ESP+00000200: 3e853800 08892740 08892770 088927a0
[debug] ESP+00000220: f7ad1030 f7b953c4 f7ad0b70 08892920
[debug] ESP+00000240: f7acfb46 08892a40 08892a70 08892aa0
[debug] ESP+00000260: 08892b90 08892bc0 08892bf0 08892c20
[debug] ESP+00000280: 08892d10 08892d40 08892d70 08892da0
[debug] ESP+000002a0: 08892e90 08892ec0 08892ef0 08892f20
[debug] ESP+000002c0: 08893010 08893040 08893070 088930a0
[debug] ESP+000002e0: 08893190 088931c0 088931f0 08893220
[debug] ESP+00000300: 08893310 08893340 08893370 088933a0
[debug] ESP+00000320: 08893490 088934c0 088934f0 08893520
[debug] ESP+00000340: 08049e9c 08893640 08893670 088936a0
[debug] ESP+00000360: 00000034 f79a6c80 f7b92778 ffffffbc
[debug] ESP+00000380: f7aa8656 00000006 00000000 00000005
[debug] ESP+000003a0: 0000005b f79b5b2c 00000622 f79b976c
[debug] ESP+000003c0: 0000007c 00000005 00000001 00000000
[debug] ESP+000003e0: f7a2ff3e 089f5300 00000000 0000003c
[debug] Loaded modules:
[debug] 00000000 - 00187f43 samp03svr
[debug] f7edb000 - f7edbd2c linux-gate.so.1
[debug] f7ebb000 - f7ebdeec /lib/i386-linux-gnu/libdl.so.2
[debug] f7e98000 - f7eb876b /lib/i386-linux-gnu/libpthread.so.0
[debug] f7cba000 - f7ea386e /lib32/libstdc++.so.6
[debug] f7bb5000 - f7cb8f08 /lib/i386-linux-gnu/libm.so.6
[debug] f7b96000 - f7bb2a04 /lib/i386-linux-gnu/libgcc_s.so.1
[debug] f79a8000 - f7b9b9e7 /lib/i386-linux-gnu/libc.so.6
[debug] f7edc000 - f7f06eeb /lib/ld-linux.so.2
[debug] f795d000 - f79a53d4 plugins/crashdetect.so
[debug] f75a4000 - f79753ca plugins/PawnPlus.so
IS4Code commented 6 months ago

Crashdetect in versions 4.20-4.21 seems to have compatibility issues. More info here: Zeex/samp-plugin-crashdetect#127

v1.4.3 allows bypassing this issue.