ports/110352: Use of -lthr for clamav 0.90.1 causes crashes on FreeBSD 5.4

Rob MacGregor freebsd.macgregor at blueyonder.co.uk
Thu Mar 15 20:20:06 UTC 2007


>Number:         110352
>Category:       ports
>Synopsis:       Use of -lthr for clamav 0.90.1 causes crashes on FreeBSD 5.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 15 20:20:05 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Rob MacGregor
>Release:        5.4
>Organization:
>Environment:
FreeBSD phoenix 5.4-STABLE FreeBSD 5.4-STABLE #30: Tue Oct 11 19:54:18 UTC 2005     root at phoenix:/usr/obj/usr/src/sys/PHOENIX  i386

>Description:
Installed from ports clamd uses -lthr for threading.  With this enabled clamd crashes when doing the database checks.  Using all the same arguments to configure but either dropping -lthr or using -lpthread resolves this issue.

Strangely when run in foreground mode clamd does not crash.
>How-To-Repeat:
Install clamav 0.90.1 from ports on 5.4
Set the clamd SelfCheck interval low (say 10 seconds)
Start clamd
Wait until the SelfCheck interval has passed
Use clamdscan (or any other tool that calls clamd) to scan a file or directory
Watch clamd crash silently.
>Fix:
Either remove -lthr or replace with -lpthread
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list