Skip to content

To test the assimp library on GraphFuzz. #19

@aT0ngMu

Description

@aT0ngMu

Hi, GraphFuzz is a very effective testing library API's work!!!!
However, when I tested the assimp library on GraphFuzz, I encountered some issues.

Here are my steps:
1. git clone --depth=1 https:github.com/assimp/assimp.git
2. mkdir assimp_output
3. gfuzz doxygen --inputs ./sourceCode/assimp --output ./assimp_output
4. gfuzz schema infer ./assimp_output/xml ./assimp_output/schema.yaml
5. gfuzz gen cpp ./assimp_output/schema.yaml .

When I ran the fifth command, I received the following error message:

[!] Error while parsing: AC3DImporter()
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: ~AC3DImporter() override
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: Material()
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: Object()
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: Surface()
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: ~AMFImporter() override
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: BaseNode(Type _mType, const std::string &name)
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: Bone(const std::string &name)
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: Camera(const std::string &name)
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: Light(const std::string &name)
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: Material(const std::string &name)
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: Mesh(const std::string &name)
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: Parser(const char *szFile, unsigned int fileFormatDefault)
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: ASEImporter()
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: AttachmentInfo()
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: AttachmentInfo(aiScene *_scene, aiNode *_attachToNode)
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: ~B3DImporter() override
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: BVHLoader()
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: ~BVHLoader()
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: ~BaseImporter()
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: ~BaseProcess()
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: ~BatchLoader()
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: Base()
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: ConversionData(const FileDatabase &db)
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: CustomDataLayer()
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: DNAParser(FileDatabase &db)
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: ElemBase()
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: FileDatabase()
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: FileOffset()
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: MTFace()
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: MVert()
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: Object()
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: ObjectCache(const FileDatabase &db)
'NoneType' object has no attribute 'base_type'
[!] Error while parsing: ObjectCache(const FileDatabase &)
'NoneType' object has no attribute 'base_type'
Traceback (most recent call last):
File "/home/server1/.local/bin/gfuzz", line 8, in
sys.exit(main())
File "/home/server1/.local/lib/python3.8/site-packages/gfuzz/cli.py", line 23, in main
options[args.mode].execute(args)
File "/home/server1/.local/lib/python3.8/site-packages/gfuzz/commands/cliopt.py", line 17, in execute
res = self._execute_fn(args)
File "/home/server1/.local/lib/python3.8/site-packages/gfuzz/commands/gen/gen.py", line 24, in execute
OPTIONS[args.gen_mode].execute(args)
File "/home/server1/.local/lib/python3.8/site-packages/gfuzz/commands/cliopt.py", line 17, in execute
res = self._execute_fn(args)
File "/home/server1/.local/lib/python3.8/site-packages/gfuzz/commands/gen/cpp/gen_cpp.py", line 1328, in execute
generate_harness(
File "/home/server1/.local/lib/python3.8/site-packages/gfuzz/commands/gen/cpp/gen_cpp.py", line 1247, in generate_harness
raw_scopes, max_num, errors = collect_scopes(schema, ignore_keywords, generate_dry)
File "/home/server1/.local/lib/python3.8/site-packages/gfuzz/commands/gen/cpp/gen_cpp.py", line 1026, in collect_scopes
scopes.append(CPPScope.destructor_for(schema, obj))
File "/home/server1/.local/lib/python3.8/site-packages/gfuzz/commands/gen/cpp/gen_cpp.py", line 319, in destructor_for
return CPPScope.from_signature(schema, parent, sig, False)
File "/home/server1/.local/lib/python3.8/site-packages/gfuzz/commands/gen/cpp/gen_cpp.py", line 337, in from_signature
scope_type = _classify(parent, sig, is_static)
File "/home/server1/.local/lib/python3.8/site-packages/gfuzz/commands/gen/cpp/gen_cpp.py", line 251, in _classify
if sig.func_name.name == obj_name and not is_static:
AttributeError: 'NoneType' object has no attribute 'func_name'

Is it due to my improper usage or some other reason? Looking forward to your assistance and your message!!!
Thanks!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions