You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found interesting behavior in the file parser.
If i try parse file with methodmaps with properties with setters/getters (datapack.inc for example), or without properies (regex.inc), he works correctly.
(gdb) run
Starting program: /home/kruzya/alliedmodders/sourcemod/sourcepawn/build/exp/tools/docparse/docparse/docparse /home/kruzya/alliedmodders/sourcemod/plugins/include/admin.inc
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x0804a1f8 in sp::FunctionNode::signature (this=0x0)
at /home/kruzya/alliedmodders/sourcemod/sourcepawn/exp/compiler/ast.h:1091
1091 return signature_;
(gdb) bt
#0 0x0804a1f8 in sp::FunctionNode::signature (this=0x0)
at /home/kruzya/alliedmodders/sourcemod/sourcepawn/exp/compiler/ast.h:1091
#1 0x08051965 in sp::NameResolver::LeavePropertyDecl (this=0xffffd2b4, decl=0x80c0628)
at /home/kruzya/alliedmodders/sourcemod/sourcepawn/exp/compiler/name-resolver.cpp:532
#2 0x0805ade0 in sp::Parser::parseAccessor (this=0xffffd28c)
at /home/kruzya/alliedmodders/sourcemod/sourcepawn/exp/compiler/parser.cpp:1287
#3 0x0805b2c3 in sp::Parser::methodmap (this=0xffffd28c, kind=sp::TOK_METHODMAP)
at /home/kruzya/alliedmodders/sourcemod/sourcepawn/exp/compiler/parser.cpp:1376
#4 0x0805d68e in sp::Parser::parse (this=0xffffd28c)
at /home/kruzya/alliedmodders/sourcemod/sourcepawn/exp/compiler/parser.cpp:2237
#5 0x08048fd7 in Run (cc=...,
path=0xffffd85e "/home/kruzya/alliedmodders/sourcemod/plugins/include/admin.inc")
at /home/kruzya/alliedmodders/sourcemod/sourcepawn/exp/tools/docparse/docparse.cpp:430
#6 0x08049197 in main (argc=2, argv=0xffffd6e4)
at /home/kruzya/alliedmodders/sourcemod/sourcepawn/exp/tools/docparse/docparse.cpp:458
I found interesting behavior in the file parser.
If i try parse file with methodmaps with properties with setters/getters (
datapack.inc
for example), or without properies (regex.inc
), he works correctly.But if i try parse file with property without getter/setter (
admin.inc
andAdminId.GroupCount
/GroupId.GroupImmunitiesCount
), i receive segfault...P.S.: Sorry for my english. I'm from Russia.
The text was updated successfully, but these errors were encountered: