Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 589020 - app-antivirus/clamav-0.99 on PPC - clamd: llvm/lib/Target/PowerPC/PPCJITInfo.cpp:399: virtual void llvm::PPCJITInfo::relocate(...): Assertion `ResultPtr >= -(1 << 23) && ResultPtr < (1 << 23) && "Relocation out of range!"' failed.
Summary: app-antivirus/clamav-0.99 on PPC - clamd: llvm/lib/Target/PowerPC/PPCJITInfo....
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Antivirus Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-17 18:40 UTC by Jérémy Just
Modified: 2018-04-20 06:28 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info output (emerge-info_output.txt,4.89 KB, text/plain)
2016-07-17 18:42 UTC, Jérémy Just
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jérémy Just 2016-07-17 18:40:05 UTC
I use clamd with Amavisd on a PowerPC G4 (32 bits) running Gentoo Linux. ClamAV version considered stable by the Gentoo team is 0.99, but I reproduced the bug with 0.98.7 and 0.99.2 (compiled from Gentoo packages).

Until Thursday 16 June, it was working properly. But starting on « Thursday 16 Jun 2016 08:07:40 -0000 », Amavis indicates that e-mails are unchecked, and when I try to launch clamd on a command line, I get the error:

# /usr/sbin/clamd --debug
clamd: llvm/lib/Target/PowerPC/PPCJITInfo.cpp:399: virtual void llvm::PPCJITInfo::relocate(void*, llvm::MachineRelocation*, unsigned int, unsigned char*): Assertion `ResultPtr >= -(1 << 23) && ResultPtr < (1 << 23) && "Relocation out of range!"' failed.
Aborted

and clamav doesn't launch.

llvm is in version 3.5.0. No software update has been performed this day, but there may have been database updates through Freshclam.

Reproducible: Always

Steps to Reproduce:
1. Execute:
# /usr/sbin/clamd --debug

Actual Results:  
clamd: llvm/lib/Target/PowerPC/PPCJITInfo.cpp:399: virtual void llvm::PPCJITInfo::relocate(void*, llvm::MachineRelocation*, unsigned int, unsigned char*): Assertion `ResultPtr >= -(1 << 23) && ResultPtr < (1 << 23) && "Relocation out of range!"' failed.
Aborted


Expected Results:  
Alternatively, try to launch the deamon using /etc/init.d scripts:

# /etc/init.d/clamd restart
 * Stopping clamd ...
 * start-stop-daemon: no matching processes found                       [ ok ]
 * Stopping freshclam ...                                               [ ok ]
 * Starting clamd ...
 * start-stop-daemon: failed to start `/usr/sbin/clamd'
 * Failed to start clamd                                                [ !! ]
 * Starting freshclam ...                                               [ ok ]

I already reported the bug upstream one month ago but got no answer.
  https://bugzilla.clamav.net/show_bug.cgi?id=11590

There may be here some other guys using ClamAv on PPC32 and being able to confirm or not the bug.
Comment 1 Jérémy Just 2016-07-17 18:42:10 UTC
Created attachment 440956 [details]
emerge --info output
Comment 2 Fabian Groffen gentoo-dev 2017-09-08 15:27:48 UTC
on ppc64 it doesn't start either:

clamd: llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:156: unsigned int {anonymous}::PPCCodeEmitter::getMachineOpValue(const llvm::MachineInstr&, const llvm::MachineOperand&): Assertion `MovePCtoLROffset && "MovePCtoLR not seen yet?"' failed.
Abort
Comment 3 Fabian Groffen gentoo-dev 2018-03-03 13:09:40 UTC
0.99.4 appears to work for me.
Comment 4 Thomas Raschbacher gentoo-dev 2018-04-20 06:28:02 UTC
Thanks @grobian

since this is llvm related and llvm is pretty much depreciated (especially from 0.100.0 ) I am closing this bug now. should there still be an issue, please re-open it