On 5/21/10 7:17 AM, Török Edwin wrote:
On 05/21/2010 05:15 PM, Dennis Peterson wrote:

I don't get this error, what OS/arch is this?

ERROR: Failed to load new database: Malformed database

This message was in freshclam's log though, right?

This is Solaris 9 on Sparc.

OK, I'll do some tests on Solaris9/Sparc.

Is everything OK on Solaris10/Sparc?

It was copied from the screen. All that made
it to the log was "Malformed Database". I removed the database and it
loaded fine. But - I then downloaded the db with wget and checked it
with clamscan -d bytecode.cvd and it failed there, too. I deleted the
bytecode signatures (I'd already had problems with having both a cld and
cvd file) and then I commented out bytecode support in the clamd and
freshclam conf files.

I just repeated this test (manually dl bytecode.cvd and test it with clamscan)

$ cd /tmp

$ wget http://db.local.clamav.net/bytecode.cvd
--07:42:42--  http://db.local.clamav.net/bytecode.cvd
           => `bytecode.cvd'
Resolving db.local.clamav.net... 194.47.250.218, 207.57.106.31, 
209.222.131.222, ...

$ wget http://db.local.clamav.net/bytecode.cvdainier:root]$
--07:43:39--  http://db.local.clamav.net/bytecode.cvd
           => `bytecode.cvd'
Resolving db.local.clamav.net... 155.98.64.87, 194.47.250.218, 207.57.106.31, 
...
Connecting to db.local.clamav.net[155.98.64.87]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13,675 [text/plain]

100%[====================================================================>] 13,675 --.--K/s

07:43:39 (131.10 KB/s) - `bytecode.cvd' saved [13675/13675]

$ ls -lt
total 80
-rw-r--r--   1 root     other         10 May 21 07:01 warning.time
-rw-r--r--   1 root     other          0 May 21 07:01 warning.msg
-rw-r--r--   1 root     other      13675 May 19 08:26 bytecode.cvd
-rw-r--r--   1 root     other       2336 Apr 17 16:14 fb
-rw-rw----   1 root     root         970 Apr  9 09:22 sh4420

$ clamscan -d bytecode.cvd warning.time
LibClamAV Error: cli_calloc(): Can't allocate memory (0 bytes).
calloc_problem: Error 0
LibClamAV Error: Out of memory allocating operands
LibClamAV Error: Error at bytecode line 6
LibClamAV Error: Unable to load 767944.cbc bytecode: Can't allocate memory
LibClamAV Error: Can't load 767944.cbc: Can't allocate memory
LibClamAV Error: cli_tgzload: Can't load 767944.cbc
LibClamAV Error: Can't load bytecode.cvd: Malformed database
ERROR: Malformed database

----------- SCAN SUMMARY -----------
Known viruses: 0
Engine version: 0.96.1
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 0.425 sec (0 m 0 s)

dp
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to