Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Mar 2007 20:12:34 GMT
From:      Rob MacGregor<freebsd.macgregor@blueyonder.co.uk>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/110352: Use of -lthr for clamav 0.90.1 causes crashes on FreeBSD 5.4
Message-ID:  <200703152012.l2FKCYm9088307@www.freebsd.org>
Resent-Message-ID: <200703152020.l2FKK5Kw001444@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703152012.l2FKCYm9088307>