Bug 1547414 - afl-clang-fast: '/usr/lib64/afl/afl-llvm-pass.so: undefined symbol: _ZTVN4llvm17GetElementPtrInstE'
Summary: afl-clang-fast: '/usr/lib64/afl/afl-llvm-pass.so: undefined symbol: _ZTVN4llv...
Keywords:
Status: CLOSED DUPLICATE of bug 1544964
Alias: None
Product: Fedora
Classification: Fedora
Component: american-fuzzy-lop
Version: 27
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-21 10:10 UTC by Nikos Mavrogiannopoulos
Modified: 2018-02-21 10:38 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 10:38:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.