IS4Code / PawnPlus

A SA-MP plugin enhancing the capabilities of the Pawn programming language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

linux crash

yoranjj opened this issue · comments

latest revision crashes the server on loadup

[18:55:12] [debug] Server crashed due to an unknown error
[18:55:12] [debug] Native backtrace:
[18:55:12] [debug] #0 f738c371 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[18:55:12] [debug] #1 f738396d in _ZN18CrashDetectHandler20PrintNativeBacktraceERSoRKN2os7ContextE () from plugins/crashdetect.so
[18:55:12] [debug] #2 f738498d in _ZN18CrashDetectHandler20PrintNativeBacktraceERKN2os7ContextE () from plugins/crashdetect.so
[18:55:12] [debug] #3 f7386d1d in _ZN18CrashDetectHandler7OnCrashERKN2os7ContextE () from plugins/crashdetect.so
[18:55:12] [debug] #4 f738b83c in ?? () from plugins/crashdetect.so
[18:55:12] [debug] #5 f7799bd0 in ?? ()
[18:55:12] [debug] #6 f7799be9 in ?? ()
[18:55:12] [debug] #7 f73e3ea9 in gsignal () from /lib/i386-linux-gnu/libc.so.6
[18:55:12] [debug] #8 f73e5407 in abort () from /lib/i386-linux-gnu/libc.so.6
[18:55:12] [debug] #9 f765091d in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[18:55:12] [debug] #10 f76580d4 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[18:55:12] [debug] #11 f765813d in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[18:55:12] [debug] #12 f76584b0 in __cxa_rethrow () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[18:55:12] [debug] #13 f5699930 in _ZNSt10_HashtableISsSt4pairIKSsPFiP6tagAMXPiEESaIS7_ENSt8__detail10_Select1stESt8equal_toISsESt4hashISsENS9_18_Mod_range_hashingENS9_20_Default_ranged_hashENS9_20_Prime_rehash_policyENS9_17_Hashtable_traitsILb1ELb0ELb1EEEE21_M_insert_unique_nodeEjjPNS9_10_Hash_nodeIS7_Lb1EEE () from plugins/PawnPlus.so
[18:55:12] [debug] #14 f5697d11 in _ZN3amx16register_nativesEP6tagAMXPK18tagAMX_NATIVE_INFOi () from plugins/PawnPlus.so
[18:55:12] [debug] #15 f56ab8bf in _ZN5Hooks12amx_RegisterEP6tagAMXPK18tagAMX_NATIVE_INFOi () from plugins/PawnPlus.so
[18:55:12] [debug] #16 0809b463 in ?? () from ./samp03svr
[18:55:12] [debug] #17 080a1220 in ?? () from ./samp03svr
[18:55:12] [debug] #18 080ab601 in ?? () from ./samp03svr
[18:55:12] [debug] #19 080aba0b in ?? () from ./samp03svr
[18:55:12] [debug] #20 080aa0fd in ?? () from ./samp03svr
[18:55:12] [debug] #21 f73d0637 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
commented

Thank you, I am aware of this issue. If you can compile the code yourself, remove -fpack-struct=1 from makefile flags, or use the latest commit.

Yeah, so I get a "error: ‘make_unique’ is not a member of ‘std’" error if I don't include "-std=c++14" to the compile flags. After including I now get a "error: call of overloaded ‘make_unique(size_t&)’ is ambiguous" error, might be something to do with my compile/build environment?

commented

After moving some code around, I forgot includes which are needed on Linux. Try the latest commit now. Note that in 0.8, task_await is not a native function anymore, so remember to use the correct PawnPlus.inc.

Works like a charm, thanks a lot.