google / google/atheris

How to solve the ImportError?

Open
#93 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.7k
Forks
127
PR merge metrics
No merged PRs in 30d

Description

When I run the following code on MacOS, an ImportError occurs. How can I fix it?

```
import json

import atheris

with atheris.instrument_imports():
import os
import sys
import json

def TestOneInput(data: str):
json.loads(data)

atheris.Setup(sys.argv, TestOneInput)
atheris.Fuzz()
```
```
ImportError: dlopen(/Users/xxx/miniforge3/envs/xxx/lib/python3.11/site-packages/atheris/core_with_libfuzzer.cpython-311-darwin.so, 0x0002): symbol not found in flat namespace '__ZNSt3__122__libcpp_verbose_abortEPKcz'
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.