Segfautls with : 0.88.1-1ubuntu1

Bug #40229 reported by Patrick Ancillotti
6
Affects Status Importance Assigned to Milestone
clamav (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Hi,

I'm using clamd with clamsmtp on amd64, i seem to get segfaults with clamd, any ideas? 0.88 doesn't seem to do the same.

current safe release : ClamAV 0.88/1408/Wed Apr 19 17:13:11 2006

If you'd like any more information, please pop me a mail or so.

Patrick

Revision history for this message
Vassilis Pandis (pandisv) wrote :

Hello and thank you for your bug report. When does it crash? Can you provide steps to reproduce the problem? Could you please try to obtain a backtrace according to http://wiki.ubuntu.com/DebuggingProgramCrash ? Are you running Dapper (with all updates) ? Thanks.

Changed in clamav:
status: Unconfirmed → Needs Info
Revision history for this message
Patrick Ancillotti (patricka) wrote :

Hi there,

Sorry about the delay in replying, the problem is created randomly when the clamd is in production, now the reason i say production is because it happens after clamsmtp's run a few scans, although they're not always after the same ammount of scans, nor the same ammount of time.

Also the reason i know it's clamd is that in the /var/log/clamav/clamav.log i get a segfault message with a smiley face. I'll work on the backtrace for you, but i've gotta work out how to do it first though :)

Patrick

Revision history for this message
Patrick Ancillotti (patricka) wrote :

Hi,

Working on the program crash for you, although after upgrading to the next release of the package ( -1ubuntu2 i believe ) the problem's still floating, yes it is dapper with all the updates.

Will update in a short while with the required info.

P

Revision history for this message
Patrick Ancillotti (patricka) wrote : GDB Crash, as requested.

Hi,

Here's the GDB output, seems to be a zziplib related problem.

P

Revision history for this message
Patrick Ancillotti (patricka) wrote :

One last thing i'd like to add, i've just installed the clamav from :

deb http://ftp.debian.org/debian unstable main non-free contrib deb-src

Which would be :

clamav-base_0.88.2-1_all.deb
clamav-daemon_0.88.2-1_amd64.deb
clamsmtp_1.6-1_amd64.deb
clamav-freshclam_0.88.2-1_amd64.deb

And they don't segfault on the same machine.

P

Revision history for this message
Patrick Ancillotti (patricka) wrote :

And again, i'd assume this has somthing to do with it :

from :

https://launchpad.net/distros/ubuntu/+source/clamav/+bug/42568

    - libclamav/zziplib/zzip-zip.c: add missing #include "others.h"
      Patch by Alex Deiter <tiamat*komi.mts.ru>

Any idea on when 0.88.2 would be in ubuntu?

P

Revision history for this message
Vassilis Pandis (pandisv) wrote :

Hi, thanks for the great work on the bug. I'm not at home as of now so I can't really take a look at the changes between 0.88.1 and 0.88.2 . According to #42568 it's likely that in a few days 0.88.2 will be in the dapper repositories (you shouldn't be installing debian packages btw). When I get home I'll take a look at what changes have taken place, but at first glance it doesn't seem that adding the include will make a difference. Thanks again.

Revision history for this message
Patrick Ancillotti (patricka) wrote :

Hey,

Thanks for the quick reply.

I kinda figured you'd have your 'ear' to the ground more than myself in regards to when the next release of clam would be in the dapper repo's.

( i don't as a habbit install debian packages, although i figured it wouldn't hurt me to test it, and it fixed the problem, as well as lead to another interesting find, the ``others.h`` thing. )

I can however tell you that i've added the 'others.h' include line, and as of now, i've been running ( after re-building the source for 0.88.1 as per the Program Crash bits... ) for about 45 minutes without a crash, as the 0.88.2 version from the debian upstream did.

The GDB crash specifically mentioned a call in zzip-zip.c, so i'm assuming after my test ( recompile with include ) and after the note in the changelog, i'd assume it would be a safe bet... Would one bother writing a patch to update 0.88.1 to include that 'others.h' ?

<quote>
zzip_dir_alloc_ext_io (ext=0x2aaaaad0bc50, io=0x0) at zziplib/zzip-zip.c:551
</quote>

Thanks again for the help ;)

P

Revision history for this message
Vassilis Pandis (pandisv) wrote :

Hi,
it appears that many have had similar problems and your solution is the correct one.

http://lurker.clamav.net/message/20060424.005622.682e68d4.en.html

http://bugs.gentoo.org/show_bug.cgi?id=129702

I'm not a developer, I'm just triaging bugs so I know just as much as the next person :)

Changed in clamav:
status: Needs Info → Confirmed
Revision history for this message
Patrick Ancillotti (patricka) wrote :

Hey,

Ok, Great...

So would one write a patch for 0.88.1? Or just wait till 0.88.2 arrives?

Also, bug-status change please ;)

P

Revision history for this message
Vassilis Pandis (pandisv) wrote :

Well it seems that the sync with debian is going to happen in the next few days (I'm not involved with this so I can't give any promises) so I don't think somebody will upload the patch for 0.88.1 . Please be patient :) Thanks.

Revision history for this message
Patrick Ancillotti (patricka) wrote :

Hey,

thanks for the response, no huge rush, it's working right now my whole home-brew edition.

Thanks again Vassilis.

P

Revision history for this message
Vassilis Pandis (pandisv) wrote :

0.88.2 is the current version, changing the status. If this persists, please reopen the bug. Thanks for looking into this.

Changed in clamav:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.