I've tried to understand better where is stuck.

The problem is in cli_tgzload ( and that was the easy part ):

during the while loop I see that it continuously loop on:

LibClamAV debug: cli_tgzload: Loading COPYING, size: 17992
LibClamAV debug: cli_tgzload: Loading COPYING, size: 17992

Any idea ?


On Fri, Mar 20, 2020 at 5:45 PM Pierluigi Frullani <pierluigi.frullani@gmail.com> wrote:
Hi all,
 I've managed to compile clamav 0.102.2 on solaris 10.

clamd and clamav-milter are able to start, but if I run a freshclam ( to get new database definition ) it starts downloading several files and then it remain stuck on:

LibClamAV debug: Initialized 0.102.2 engine
LibClamAV debug: in cli_cvdload()
LibClamAV debug: MD5(.tar.gz) = ca37a0074e1887418b1d8fa203f920f3
LibClamAV debug: cli_versig: Decoded signature: ca37a0074e1887418b1d8fa203f920f3
LibClamAV debug: cli_versig: Digital signature is correct.
LibClamAV debug: in cli_tgzload() 

for ever.

By trussing the process it seems that it is in an endless loop:
19866:  llseek(4, 512, SEEK_SET)                        = 512
19866:  read(4, "1F8B\b\0\0\0\0\00203ECBD".., 8192)     = 8192
19866:  llseek(4, 512, SEEK_SET)                        = 512
19866:  read(4, "1F8B\b\0\0\0\0\00203ECBD".., 8192)     = 8192
19866:  llseek(4, 512, SEEK_SET)                        = 512
19866:  read(4, "1F8B\b\0\0\0\0\00203ECBD".., 8192)     = 8192

( and repeat this forever ).

Any idea ?

thx

Pierluigi