AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   amxxpc segfault (https://forums.alliedmods.net/showthread.php?t=209414)

xfirestorm 02-25-2013 06:16

amxxpc segfault
 
Hi,

I'm developing some plugin, and when I tried to compile it, I just got "Segmentation fault (core dumped)".

I tried to run amxxpc in "gdb" and this is the backtrace:
Quote:

[Thread debugging using libthread_db enabled]
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team


Program received signal SIGSEGV, Segmentation fault.
0xf7f96c92 in ?? () from ./amxxpc32.so
(gdb) bt
#0 0xf7f96c92 in ?? () from ./amxxpc32.so
#1 0xf7f97e59 in ?? () from ./amxxpc32.so
#2 0xf7f96138 in ?? () from ./amxxpc32.so
#3 0xf7f97c5a in ?? () from ./amxxpc32.so
#4 0xf7f960ff in ?? () from ./amxxpc32.so
#5 0xf7f97e59 in ?? () from ./amxxpc32.so
#6 0xf7f96138 in ?? () from ./amxxpc32.so
#7 0xf7f98529 in ?? () from ./amxxpc32.so
#8 0xf7f9a110 in ?? () from ./amxxpc32.so
#9 0xf7f9aa54 in ?? () from ./amxxpc32.so
#10 0xf7f9bd9f in ?? () from ./amxxpc32.so
#11 0x0804d890 in ?? ()
#12 0x0079dce6 in __libc_start_main () from /lib/libc.so.6
#13 0x08049141 in ?? ()
Not really helpfull for me. What errors in my script can cause a segfault on the compiler? I don't know where to begin and look.

Thanks,
Thomas

xfirestorm 02-25-2013 07:15

Re: amxxpc segfault
 
I think I found the error.
It was:
return "0";

It seems I can't do that.
Although
Quote:

new return_val[1];
return_val="0";
return return_val;
Works just fine.

fysiks 02-26-2013 02:05

Re: amxxpc segfault
 
Quote:

Originally Posted by xfirestorm (Post 1901537)
I think I found the error.
It was:
return "0";

It seems I can't do that.
Although

Works just fine.

You can't return strings anywhere in Pawn.


All times are GMT -4. The time now is 21:44.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.