FS#62566 - [afl] 2.52b-2 incompatible with llvm 8.0.0-2

Attached to Project: Community Packages
Opened by oneup40 (oneup40) - Tuesday, 07 May 2019, 16:06 GMT
Last edited by Levente Polyak (anthraxx) - Monday, 12 August 2019, 09:22 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Trying to compile a program with afl-clang-fast causes the following fatal linking error:

error: unable to load plugin '/usr/lib/afl/afl-llvm-pass.so': '/usr/lib/afl/afl-llvm-pass.so: undefined symbol: _ZN4llvm8LoadInstC2EPNS_4TypeEPNS_5ValueEPKcbPNS_11InstructionE'

I believe the afl package got built against an older version of LLVM that wasn't forward compatible with 8.0.0-2, which is the current version in extra. Rebuilding afl from the PKGBUILD with llvm 8.0.0-2 fixed the problem locally.

Additional info:

* package version(s)
afl 2.52b-2
llvm 8.0.0-2

* config and/or log files etc.
$ afl-clang-fast test.c
afl-clang-fast 2.52b by <lszekeres@google.com>
error: unable to load plugin '/usr/lib/afl/afl-llvm-pass.so': '/usr/lib/afl/afl-llvm-pass.so: undefined symbol: _ZN4llvm8LoadInstC2EPNS_4TypeEPNS_5ValueEPKcbPNS_11InstructionE'

* link to upstream bug report, if any
none

Steps to reproduce:

$ echo 'int main() {}' >test.c
$ afl-clang-fast test.c
This task depends upon

Closed by  Levente Polyak (anthraxx)
Monday, 12 August 2019, 09:22 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.53b-1
Comment by oneup40 (oneup40) - Thursday, 27 June 2019, 00:37 GMT
Bump. afl-clang-fast is still completely broken nearly two months later.
Comment by nick rafter (nrafter) - Thursday, 01 August 2019, 17:20 GMT
bumping.

i uninstalled afl through pacman, made sure clang and llvm were installed, downloaded afl from github and did make in both folders for the llvm stuff in afl, and then moved the binaries into the appropriate /bin folder and everything worked when i went to use it
Comment by Levente Polyak (anthraxx) - Monday, 12 August 2019, 09:21 GMT
sry, this ticket never got assigned, only found by sheer accident

Loading...