Bug 1547414

Summary: afl-clang-fast: '/usr/lib64/afl/afl-llvm-pass.so: undefined symbol: _ZTVN4llvm17GetElementPtrInstE'
Product: [Fedora] Fedora Reporter: Nikos Mavrogiannopoulos <nmavrogi>
Component: american-fuzzy-lopAssignee: Richard W.M. Jones <rjones>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: nmavrogi, p, rjones
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 10:38:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nikos Mavrogiannopoulos 2018-02-21 10:10:13 UTC
Description of problem:
Running `$ CC=/usr/bin/afl-clang-fast ./configure` results to:
configure: error: in `/home/nmavrogi/cvs/gnutls':
configure: error: C compiler cannot create executables
See `config.log' for more details

Checking config.log shows:
error: unable to load plugin '/usr/lib64/afl/afl-llvm-pass.so': '/usr/lib64/afl/afl-llvm-pass.so: undefined symbol: _ZTVN4llvm17GetElementPtrInstE'

Thus is seems like there is an ABI change in one of the c++ libs this was compiled.

How reproducible:
```
$ cat >c.c <<_EOF
int main() {
printf("hello\n");
}
_EOF

$ afl-clang-fast c.c
afl-clang-fast 2.49b by <lszekeres>
error: unable to load plugin '/usr/lib64/afl/afl-llvm-pass.so': '/usr/lib64/afl/afl-llvm-pass.so:
      undefined symbol: _ZTVN4llvm17GetElementPtrInstE'
```

Comment 1 Richard W.M. Jones 2018-02-21 10:15:45 UTC
Which version of clang do you have installed?

Comment 2 Nikos Mavrogiannopoulos 2018-02-21 10:32:16 UTC
$ rpm -q clang
clang-5.0.1-3.fc27.x86_64

Comment 3 Richard W.M. Jones 2018-02-21 10:38:23 UTC

*** This bug has been marked as a duplicate of bug 1544964 ***