delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/01/28/02:14:34

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <003201c3e56e$14b5fc20$0200a8c0@shuttle>
From: "Nicolas Lehuen" <thitucad6tim AT jetable DOT org>
To: <cygwin AT cygwin DOT com>
Subject: Cygwin 1.5.6-1 and 20040126 : SIGSEGV in random() ???
Date: Wed, 28 Jan 2004 08:12:23 +0100
MIME-Version: 1.0
Note-from-DJ: This may be spam

Hi,

I'm trying to run the latest snapshot of clamav ( http://www.clamav.net/ )
under Cygwin 1.5.6-1. I compiled and ran the virus DB update (freshclam)
nicely. However each time I want to run the scanner (clamscan) I get a
segmentation fault at random times ; sometimes it will perform a full scan,
sometime it will stop after a few files, sometimes it won't even start. I
ran clamscan under gdb and this is what I got :

$ gdb clamscan
GNU gdb 2003-09-20-cvs (cygwin-special)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) run
Starting program: /usr/local/bin/clamscan.exe

Program received signal SIGSEGV, Segmentation fault.
0x610ab285 in random () from /usr/bin/cygwin1.dll
(gdb) where
#0  0x610ab285 in random () from /usr/bin/cygwin1.dll
#1  0x610ab057 in random () from /usr/bin/cygwin1.dll
#2  0x61054e66 in localtime_r () from /usr/bin/cygwin1.dll
#3  0x61086431 in cygwin1!aclcheck () from /usr/bin/cygwin1.dll
#4  0x0041ae72 in cli_cvdload (fd=0x10032504, root=0x22ed0c,
virnum=0x41e1a0)
    at cvd.c:370
#5  0x0040eb95 in cl_loaddb (
    filename=0x100301f0 "/usr/local/share/clamav/daily.cvd", root=0x22ed0c,
    virnum=0x41e1a0) at readdb.c:103
#6  0x0040f0d2 in cl_loaddbdir (dirname=0x40ee95 "/usr/local/share/clamav",
    root=0x22ed0c, virnum=0x41e1a0) at readdb.c:221
#7  0x0040520a in scanmanager (opt=0x41e1a0) at manager.c:92
#8  0x0022ed0c in ?? ()
#9  0x0041e1a0 in bell ()
(gdb)

I guess this explain the random occurence of the SIGSEGVs... Is there any
way this could be due to a bad usage of random() by clamav ? Or is it a
problem with this version of cygwin ? I've tried with the latest snapshot
available (20040126) with the same result. Someone already built an older
version of clamav under an older version of cygwin, I tried it and it worked
: http://www.sosdg.org/clamav-win32/index.php . However I'd like to run with
the latest version...

Regards,
Nicolas


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019