Bug 150243 - [PATCH] security/clamav: fix hung clamd on FreeBSD 7.1
Summary: [PATCH] security/clamav: fix hung clamd on FreeBSD 7.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Renato Botelho
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-03 11:20 UTC by Frank Wall
Modified: 2010-09-03 12:30 UTC (History)
0 users

See Also:


Attachments
file.diff (1.95 KB, patch)
2010-09-03 11:20 UTC, Frank Wall
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Wall 2010-09-03 11:20:08 UTC
Current ClamAV 0.96.2 has a bug which breaks clamd on FreeBSD 7.1:
https://wwws.clamav.net/bugzilla/show_bug.cgi?id=2235

This means current ClamAV is broken on FreeBSD 7.1 after update to version 0.96.2. Please commit the attached patch ASAP.

Fix: The ClamAV people kindly provide a patch, see attached file.

My (slightly modified) patch adds two files to the port:
files/patch-libclamav__bytecode.c
files/patch-libclamav__bytecode2llvm.cpp

Or take a look at the original patch:
http://git.clamav.net/gitweb?p=clamav-devel.git;a=commitdiff_plain;h=71ca3536c4e0ed6454315a7c3ad5950ba212fbe1

Patch attached with submission follows:
How-To-Repeat: 1. install security/clamav on FreeBSD 7.1
2. edit /etc/rc.conf: add clamav_clamd_enable="YES"
3. start clamd: /usr/local/etc/rc.d/clamav-clamd start

Now try to connect to clamd:

# /usr/local/bin/clamdtop
[...]
Connecting to: /var/run/clamav/clamd.sock
/var/run/clamav/clamd.sock: Resource temporarily unavailable

Now try to stop clamd:

# /usr/local/etc/rc.d/clamav-clamd stop 
Stopping clamav_clamd.
Waiting for PIDS: 59203, 59203, 59203, 59203 [...] (wait forever)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-09-03 11:20:29 UTC
Responsible Changed
From-To: freebsd-ports-bugs->garga

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-09-03 12:27:37 UTC
garga       2010-09-03 11:27:22 UTC

  FreeBSD ports repository

  Modified files:
    security/clamav      Makefile 
  Added files:
    security/clamav/files patch-libclamav__bytecode.c 
                          patch-libclamav__c++__bytecode2llvm.cpp 
  Log:
  - Fix bytecode problem on FreeBSD 7.1
  - Bump PORTREVISION
  
  PR:             ports/150243
  Submitted by:   Frank Wall <fw@moov.de>
  Obtained from:  https://wwws.clamav.net/bugzilla/show_bug.cgi?id=2235
  
  Revision  Changes    Path
  1.149     +1 -1      ports/security/clamav/Makefile
  1.1       +12 -0     ports/security/clamav/files/patch-libclamav__bytecode.c (new)
  1.1       +34 -0     ports/security/clamav/files/patch-libclamav__c++__bytecode2llvm.cpp (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Renato Botelho freebsd_committer freebsd_triage 2010-09-03 12:27:43 UTC
State Changed
From-To: open->closed

Committed. Thanks!