On 2009-03-24 20:35, Ralf Wildenhues wrote:
>> I just straced the program when it works, and it picks the .so from
>> .libs, not from '.', so it definetely already
>> searches the place  I want, its just that it searches it after /usr/lib:
>>
>> open("/home/edwin/.local/lib/libclamunrar_iface.la", O_RDONLY) = -1 ENOENT 
>> (No such file or directory)
>> open("/lib/libclamunrar_iface.la", O_RDONLY) = -1 ENOENT (No such file or 
>> directory)
>> open("/usr/lib/libclamunrar_iface.la", O_RDONLY) = -1 ENOENT (No such file 
>> or directory)
>> open("/usr/local/lib/libclamunrar_iface.la", O_RDONLY) = -1 ENOENT (No such 
>> file or directory)
>> open("/lib/x86_64-linux-gnu/libclamunrar_iface.la", O_RDONLY) = -1 ENOENT 
>> (No such file or directory)
>> open("/usr/lib/x86_64-linux-gnu/libclamunrar_iface.la", O_RDONLY) = -1 
>> ENOENT (No such file or directory)
>> open("libclamunrar_iface.la", O_RDONLY) = -1 ENOENT (No such file or 
>> directory)
>> access("/home/edwin/.local/lib/libclamunrar_iface.so", R_OK) = -1 ENOENT (No 
>> such file or directory)
>> access("/lib/libclamunrar_iface.so", R_OK) = -1 ENOENT (No such file or 
>> directory)
>> access("/usr/lib/libclamunrar_iface.so", R_OK) = -1 ENOENT (No such file or 
>> directory)
>> access("/usr/local/lib/libclamunrar_iface.so", R_OK) = -1 ENOENT (No such 
>> file or directory)
>> access("/lib/x86_64-linux-gnu/libclamunrar_iface.so", R_OK) = -1 ENOENT (No 
>> such file or directory)
>> access("/usr/lib/x86_64-linux-gnu/libclamunrar_iface.so", R_OK) = -1 ENOENT 
>> (No such file or directory)
>>
>> open("/home/edwin/clam/git/builds/default/libclamav/.libs/libclamunrar_iface.so",
>>  O_RDONLY) = 3
>>     
>
> I need more details to understand this.  What is the current directory
> in this case, where are any uninstalled and installed files named
> libclamunrar_iface.la located at, and what are all their contents?
>   

Current directory = /home/edwin/clam/git/builds/default
clamscan/clamscan  = libtool wrapper script
$ ldd clamscan/.libs/lt-clamscan
...
libclamav.so.6 =>
/home/edwin/clam/git/builds/default/libclamav/.libs/libclamav.so.6
(0x00007f6ae76cb000)
...

libclamav.so.6 is the library that calls
lt_dlopenext("libclamunrar_iface") to load libclamunrar_iface.
The location of these files:
libclamav/.libs/libclamav.so.6.0.1
....
libclamav/.libs/libclamunrar_iface.a
libclamav/.libs/libclamunrar_iface.la
libclamav/.libs/libclamunrar_iface.lai
libclamav/.libs/libclamunrar_iface.so
libclamav/.libs/libclamunrar_iface.so.6
libclamav/.libs/libclamunrar_iface.so.6.0.1
....

Scenario1 where everything works (my strace above):
There is no libclam* in /usr/lib or /usr/local/lib, in this case
libclamunrar_iface.so is loaded from
libclamav/.libs/libclamunrar_iface.so, all good.
In this case ltdl finds no libclamunrar_iface.la, but it does find
libclamunrar_iface.so (which is a symlink to libclamunrar_iface.so.6.0.1)
I attached the output of:
./libtool --mode=execute strace clamscan/clamscan -dtest.hdb
test/clam-v2.rar 2>log_usr_loadsok

Scenario2 where the wrong library is loaded
(https://wwws.clamav.net/bugzilla/show_bug.cgi?id=1491#c10)
There is a libclamunrar_iface.la in /usr/lib, and
libclamunrar_iface.so.5 in /usr/lib (ClamAV was configured with
--prefix=/usr)
There is also libclamav.so.5 in /usr/lib but that doesn't matter, the
correct libclamav.so.6 is loaded from libclamav/.libs/
In this case ltdl finds a libclamunrar_iface.la in /usr/lib which
belongs to the older version (.so.5), and its all over at this point:
it reads the .la file which tells it to load libclamunrar_iface.so.5.

I've attached the output of:
./libtool --mode=execute strace clamscan/clamscan -dtest.hdb
test/clam-v2.rar 2>log_usr_loadswrong

I've also attached the installed libclamunrar_iface.la from ClamAV
0.94.2 (renamed to so5_libclamunrar_iface.la),
and the one from the ClamAV 0.95 (uninstalled, in build dir) renamed to
so6_libclamunrar_iface.la

If you need further information please ask.

TBH I'd prefer not to load the library at all in scenario2 (there is a
warning message shown to the user in that case), than
loading the wrong version of the library (which silently succeeds, but
doesn't work as expected).

> In the trace, is there stuff happening between the last two lines?
>   

I've only omitted this line:
futex(0x7fafee25a0ec, FUTEX_WAKE_PRIVATE, 2147483647) = 0

Best regards,
--Edwin
execve("/home/edwin/clam/clamav-0.95/clamscan/.libs/lt-clamscan", 
["/home/edwin/clam/clamav-0.95/cla"..., "-dtest.hdb", "test/clam-v2.rar"], [/* 
37 vars */]) = 0
brk(0)                                  = 0x1ce1000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f292b60e000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f292b60c000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/tls/x86_64/libclamav.so.6", 
O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/home/edwin/clam/clamav-0.95/libclamav/.libs/tls/x86_64", 0x7fff3360efe0) 
= -1 ENOENT (No such file or directory)
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/tls/libclamav.so.6", 
O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/home/edwin/clam/clamav-0.95/libclamav/.libs/tls", 0x7fff3360efe0) = -1 
ENOENT (No such file or directory)
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/x86_64/libclamav.so.6", 
O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/home/edwin/clam/clamav-0.95/libclamav/.libs/x86_64", 0x7fff3360efe0) = 
-1 ENOENT (No such file or directory)
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/libclamav.so.6", O_RDONLY) = 
3
read(3, 
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\250\1\0\0\0\0\0"..., 832) = 
832
fstat(3, {st_mode=S_IFREG|0755, st_size=2505303, ...}) = 0
mmap(NULL, 2962232, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7f292b11f000
mprotect(0x7f292b1df000, 2093056, PROT_NONE) = 0
mmap(0x7f292b3de000, 86016, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xbf000) = 0x7f292b3de000
close(3)                                = 0
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/libltdl.so.7", O_RDONLY) = 
-1 ENOENT (No such file or directory)
open("/home/edwin/.local/lib/tls/x86_64/libltdl.so.7", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat("/home/edwin/.local/lib/tls/x86_64", 0x7fff3360efb0) = -1 ENOENT (No such 
file or directory)
open("/home/edwin/.local/lib/tls/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat("/home/edwin/.local/lib/tls", 0x7fff3360efb0) = -1 ENOENT (No such file or 
directory)
open("/home/edwin/.local/lib/x86_64/libltdl.so.7", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat("/home/edwin/.local/lib/x86_64", 0x7fff3360efb0) = -1 ENOENT (No such file 
or directory)
open("/home/edwin/.local/lib/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat("/home/edwin/.local/lib", 0x7fff3360efb0) = -1 ENOENT (No such file or 
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=134701, ...}) = 0
mmap(NULL, 134701, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f292b5eb000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/libltdl.so.7", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200%\0\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=36376, ...}) = 0
mmap(NULL, 2131760, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7f292af16000
mprotect(0x7f292af1f000, 2093056, PROT_NONE) = 0
mmap(0x7f292b11e000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0x7f292b11e000
close(3)                                = 0
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/libbz2.so.1.0", O_RDONLY) = 
-1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libbz2.so.1.0", O_RDONLY)    = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \27\0\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=66320, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f292b5ea000
mmap(NULL, 2161616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7f292ad06000
mprotect(0x7f292ad15000, 2093056, PROT_NONE) = 0
mmap(0x7f292af14000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) = 0x7f292af14000
close(3)                                = 0
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/libz.so.1", O_RDONLY) = -1 
ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/libz.so.1", O_RDONLY)    = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\...@!\0\326>\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=95896, ...}) = 0
mmap(0x3ed6000000, 2188616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
0) = 0x3ed6000000
mprotect(0x3ed6016000, 2097152, PROT_NONE) = 0
mmap(0x3ed6216000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x3ed6216000
close(3)                                = 0
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/libdl.so.2", O_RDONLY) = -1 
ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\r\0\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14608, ...}) = 0
mmap(NULL, 2109696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7f292ab02000
mprotect(0x7f292ab04000, 2097152, PROT_NONE) = 0
mmap(0x7f292ad04000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f292ad04000
close(3)                                = 0
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/libpthread.so.0", O_RDONLY) 
= -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libpthread.so.0", O_RDONLY)  = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300W\0\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=125836, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f292b5e9000
mmap(NULL, 2204512, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7f292a8e7000
mprotect(0x7f292a8fd000, 2093056, PROT_NONE) = 0
mmap(0x7f292aafc000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7f292aafc000
mmap(0x7f292aafe000, 13152, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f292aafe000
close(3)                                = 0
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/libc.so.6", O_RDONLY) = -1 
ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, 
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\346\1\0\0\0\0\0"..., 832) = 
832
fstat(3, {st_mode=S_IFREG|0755, st_size=1375536, ...}) = 0
mmap(NULL, 3482264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7f292a594000
mprotect(0x7f292a6dd000, 2097152, PROT_NONE) = 0
mmap(0x7f292a8dd000, 20480, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x149000) = 0x7f292a8dd000
mmap(0x7f292a8e2000, 17048, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f292a8e2000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f292b5e8000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f292b5e7000
arch_prctl(ARCH_SET_FS, 0x7f292b5e76f0) = 0
open("/dev/urandom", O_RDONLY)          = 3
read(3, "\304\310`\330}\231\213#", 8)   = 8
close(3)                                = 0
mprotect(0x7f292a8dd000, 16384, PROT_READ) = 0
mprotect(0x7f292aafc000, 4096, PROT_READ) = 0
mprotect(0x7f292ad04000, 4096, PROT_READ) = 0
mprotect(0x7f292b60f000, 4096, PROT_READ) = 0
munmap(0x7f292b5eb000, 134701)          = 0
set_tid_address(0x7f292b5e7780)         = 18154
set_robust_list(0x7f292b5e7790, 0x18)   = 0
futex(0x7fff3360f8dc, FUTEX_WAKE_PRIVATE, 1) = 0
rt_sigaction(SIGRTMIN, {0x7f292a8ec650, [], SA_RESTORER|SA_SIGINFO, 
0x7f292a8f57b0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7f292a8ec6e0, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 
0x7f292a8f57b0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
rt_sigprocmask(SIG_SETMASK, [XFSZ], NULL, 8) = 0
brk(0)                                  = 0x1ce1000
brk(0x1d02000)                          = 0x1d02000
open("/home/edwin/.local/lib/libclamunrar_iface.la", O_RDONLY) = -1 ENOENT (No 
such file or directory)
open("/lib/libclamunrar_iface.la", O_RDONLY) = -1 ENOENT (No such file or 
directory)
open("/usr/lib/libclamunrar_iface.la", O_RDONLY) = -1 ENOENT (No such file or 
directory)
open("/usr/local/lib/libclamunrar_iface.la", O_RDONLY) = -1 ENOENT (No such 
file or directory)
open("/lib/x86_64-linux-gnu/libclamunrar_iface.la", O_RDONLY) = -1 ENOENT (No 
such file or directory)
open("/usr/lib/x86_64-linux-gnu/libclamunrar_iface.la", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("libclamunrar_iface.la", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/home/edwin/.local/lib/libclamunrar_iface.so", R_OK) = -1 ENOENT (No 
such file or directory)
access("/lib/libclamunrar_iface.so", R_OK) = -1 ENOENT (No such file or 
directory)
access("/usr/lib/libclamunrar_iface.so", R_OK) = -1 ENOENT (No such file or 
directory)
access("/usr/local/lib/libclamunrar_iface.so", R_OK) = -1 ENOENT (No such file 
or directory)
access("/lib/x86_64-linux-gnu/libclamunrar_iface.so", R_OK) = -1 ENOENT (No 
such file or directory)
access("/usr/lib/x86_64-linux-gnu/libclamunrar_iface.so", R_OK) = -1 ENOENT (No 
such file or directory)
futex(0x7f292ad050ec, FUTEX_WAKE_PRIVATE, 2147483647) = 0
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/libclamunrar_iface.so", 
O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\...@\n\0\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=30471, ...}) = 0
mmap(NULL, 2104088, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7f292a392000
mprotect(0x7f292a394000, 2093056, PROT_NONE) = 0
mmap(0x7f292a593000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7f292a593000
close(3)                                = 0
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/libclamunrar.so.6", 
O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\10\0\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=178896, ...}) = 0
mmap(NULL, 2141040, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7f292a187000
mprotect(0x7f292a192000, 2093056, PROT_NONE) = 0
mmap(0x7f292a391000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7f292a391000
close(3)                                = 0
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f292b5a7000
stat("test.hdb", {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
open("test.hdb", O_RDONLY)              = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f292b60b000
read(3, "aa15bcf478d165efd2065190eb473bcb"..., 4096) = 54
mmap(NULL, 512000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f292b52a000
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f292b60b000, 4096)            = 0
mmap(NULL, 512000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f292b4ad000
mmap(NULL, 512000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f292b430000
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f292a147000
munmap(0x7f292a154000, 208896)          = 0
munmap(0x7f292b4ad000, 0)               = -1 EINVAL (Invalid argument)
munmap(0x7f292b52a000, 0)               = -1 EINVAL (Invalid argument)
munmap(0x7f292b5a7000, 0)               = -1 EINVAL (Invalid argument)
getrlimit(RLIMIT_FSIZE, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
stat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
stat("test/clam-v2.rar", {st_mode=S_IFREG|0644, st_size=350, ...}) = 0
stat("test/clam-v2.rar", {st_mode=S_IFREG|0644, st_size=350, ...}) = 0
stat("test/clam-v2.rar", {st_mode=S_IFREG|0644, st_size=350, ...}) = 0
geteuid()                               = 1000
geteuid()                               = 1000
access("test/clam-v2.rar", R_OK)        = 0
open("test/clam-v2.rar", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=350, ...}) = 0
lseek(3, 0, SEEK_SET)                   = 0
read(3, "Rar!\32\7\0\317\220s\0\0\r\0\0\0\0\0\0\0\221\0t\200\200(\0\"\1\0\0 
"..., 1024) = 350
read(3, "", 674)                        = 0
lseek(3, 0, SEEK_SET)                   = 0
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888086
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888086
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888087
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888088
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888089
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888090
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888090
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888091
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888092
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888093
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888094
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888094
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888095
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888096
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888097
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888098
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888098
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888099
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888100
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888101
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888102
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888102
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888103
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888104
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888105
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888106
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888106
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888107
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888108
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888109
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888110
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721888110
mkdir("/tmp/clamav-cbfd7bc5a4c00394fc43284b07059441", 0700) = 0
read(3, "Rar!\32\7\0", 7)               = 7
read(3, "\317\220s\0\0\r\0\0\0\0\0\0\0", 13) = 13
mkdir("/tmp/clamav-cbfd7bc5a4c00394fc43284b07059441/comments", 0700) = 0
mmap(NULL, 4268032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f2929d35000
lseek(3, 0, SEEK_CUR)                   = 20
read(3, "\221\0t\200\200(\0\"\1\0\0 
\2\0\0\3\375<\7\357\274\f&1\0243\10\0\244\201\0\0", 32) = 32
lseek(3, 0, SEEK_CUR)                   = 52
read(3, "clam.exe", 8)                  = 8
lseek(3, 60, SEEK_SET)                  = 60
open("/tmp/clamav-cbfd7bc5a4c00394fc43284b07059441/1.ura", 
O_RDWR|O_CREAT|O_TRUNC, 0600) = 4
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f2929cf4000
read(3, 
"\t\301YL\310\0\0\0\34\327\351\30P\265\255\263:.\n\335\34[\375\360\v%\254\311\355\247F\v"...,
 290) = 290
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
read(3, "", 0)                          = 0
write(4, 
"mzp\0\2\0\0\0\4\0\17\0\377\377\0\0\270\0\0\0!\0\...@\0\32\0\0\0\0\0"..., 544) 
= 544
lseek(3, 350, SEEK_SET)                 = 350
munmap(0x7f2929cf4000, 266240)          = 0
lseek(4, 0, SEEK_SET)                   = 0
fstat(4, {st_mode=S_IFREG|0600, st_size=544, ...}) = 0
lseek(4, 0, SEEK_SET)                   = 0
read(4, 
"mzp\0\2\0\0\0\4\0\17\0\377\377\0\0\270\0\0\0!\0\...@\0\32\0\0\0\0\0"..., 1024) 
= 544
read(4, "", 480)                        = 0
lseek(4, 0, SEEK_SET)                   = 0
lseek(4, 0, SEEK_SET)                   = 0
brk(0x1d26000)                          = 0x1d26000
read(4, 
"mzp\0\2\0\0\0\4\0\17\0\377\377\0\0\270\0\0\0!\0\...@\0\32\0\0\0\0\0"..., 
131072) = 544
read(4, "", 130528)                     = 0
read(4, "", 130528)                     = 0
close(4)                                = 0
unlink("/tmp/clamav-cbfd7bc5a4c00394fc43284b07059441/1.ura") = 0
open("/tmp/clamav-cbfd7bc5a4c00394fc43284b07059441/comments", 
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFDIR|0700, st_size=40, ...}) = 0
fcntl(4, F_GETFD)                       = 0x1 (flags FD_CLOEXEC)
getdents(4, /* 2 entries */, 4096)      = 48
getdents(4, /* 0 entries */, 4096)      = 0
close(4)                                = 0
munmap(0x7f2929d35000, 4268032)         = 0
chmod("/tmp/clamav-cbfd7bc5a4c00394fc43284b07059441", 0700) = 0
open("/tmp/clamav-cbfd7bc5a4c00394fc43284b07059441", 
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFDIR|0700, st_size=60, ...}) = 0
stat("/tmp/clamav-cbfd7bc5a4c00394fc43284b07059441", {st_mode=S_IFDIR|0700, 
st_size=60, ...}) = 0
rmdir("/tmp/clamav-cbfd7bc5a4c00394fc43284b07059441") = -1 ENOTEMPTY (Directory 
not empty)
getdents(4, /* 3 entries */, 4096)      = 80
lstat("/tmp/clamav-cbfd7bc5a4c00394fc43284b07059441/comments", 
{st_mode=S_IFDIR|0700, st_size=40, ...}) = 0
rmdir("/tmp/clamav-cbfd7bc5a4c00394fc43284b07059441/comments") = 0
getdents(4, /* 0 entries */, 4096)      = 0
lseek(4, 0, SEEK_SET)                   = 0
stat("/tmp/clamav-cbfd7bc5a4c00394fc43284b07059441", {st_mode=S_IFDIR|0700, 
st_size=40, ...}) = 0
rmdir("/tmp/clamav-cbfd7bc5a4c00394fc43284b07059441") = 0
close(4)                                = 0
fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 2), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f292a146000
write(1, "test/clam-v2.rar: ClamAV-Test-Fi"..., 52) = 52
close(3)                                = 0
munmap(0x7f292a147000, 53248)           = 0
munmap(0x7f292b430000, 512000)          = 0
munmap(0x7f292b4ad000, 512000)          = 0
munmap(0x7f292b52a000, 512000)          = 0
munmap(0x7f292b5a7000, 262144)          = 0
write(1, "\n----------- SCAN SUMMARY ------"..., 38) = 38
write(1, "Known viruses: 1\n", 17)      = 17
write(1, "Engine version: 0.95\n", 21)  = 21
write(1, "Scanned directories: 0\n", 23) = 23
write(1, "Scanned files: 1\n", 17)      = 17
write(1, "Infected files: 1\n", 18)     = 18
write(1, "Data scanned: 0.00 MB\n", 22) = 22
write(1, "Data read: 0.00 MB (ratio 0.00:1"..., 34) = 34
write(1, "Time: 1.367 sec (0 m 1 s)\n", 26) = 26
exit_group(1)                           = ?
execve("/home/edwin/clam/clamav-0.95/clamscan/.libs/lt-clamscan", 
["/home/edwin/clam/clamav-0.95/cla"..., "-dtest.hdb", "test/clam-v2.rar"], [/* 
37 vars */]) = 0
brk(0)                                  = 0x23fc000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f8210f3a000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f8210f38000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/tls/x86_64/libclamav.so.6", 
O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/home/edwin/clam/clamav-0.95/libclamav/.libs/tls/x86_64", 0x7fff18f39910) 
= -1 ENOENT (No such file or directory)
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/tls/libclamav.so.6", 
O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/home/edwin/clam/clamav-0.95/libclamav/.libs/tls", 0x7fff18f39910) = -1 
ENOENT (No such file or directory)
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/x86_64/libclamav.so.6", 
O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/home/edwin/clam/clamav-0.95/libclamav/.libs/x86_64", 0x7fff18f39910) = 
-1 ENOENT (No such file or directory)
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/libclamav.so.6", O_RDONLY) = 
3
read(3, 
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\250\1\0\0\0\0\0"..., 832) = 
832
fstat(3, {st_mode=S_IFREG|0755, st_size=2505303, ...}) = 0
mmap(NULL, 2962232, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7f8210a4b000
mprotect(0x7f8210b0b000, 2093056, PROT_NONE) = 0
mmap(0x7f8210d0a000, 86016, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xbf000) = 0x7f8210d0a000
close(3)                                = 0
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/libltdl.so.7", O_RDONLY) = 
-1 ENOENT (No such file or directory)
open("/home/edwin/.local/lib/tls/x86_64/libltdl.so.7", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat("/home/edwin/.local/lib/tls/x86_64", 0x7fff18f398e0) = -1 ENOENT (No such 
file or directory)
open("/home/edwin/.local/lib/tls/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat("/home/edwin/.local/lib/tls", 0x7fff18f398e0) = -1 ENOENT (No such file or 
directory)
open("/home/edwin/.local/lib/x86_64/libltdl.so.7", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat("/home/edwin/.local/lib/x86_64", 0x7fff18f398e0) = -1 ENOENT (No such file 
or directory)
open("/home/edwin/.local/lib/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat("/home/edwin/.local/lib", 0x7fff18f398e0) = -1 ENOENT (No such file or 
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=134701, ...}) = 0
mmap(NULL, 134701, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8210f17000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/libltdl.so.7", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200%\0\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=36376, ...}) = 0
mmap(NULL, 2131760, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7f8210842000
mprotect(0x7f821084b000, 2093056, PROT_NONE) = 0
mmap(0x7f8210a4a000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0x7f8210a4a000
close(3)                                = 0
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/libbz2.so.1.0", O_RDONLY) = 
-1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libbz2.so.1.0", O_RDONLY)    = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \27\0\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=66320, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f8210f16000
mmap(NULL, 2161616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7f8210632000
mprotect(0x7f8210641000, 2093056, PROT_NONE) = 0
mmap(0x7f8210840000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) = 0x7f8210840000
close(3)                                = 0
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/libz.so.1", O_RDONLY) = -1 
ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/libz.so.1", O_RDONLY)    = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\...@!\0\326>\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=95896, ...}) = 0
mmap(0x3ed6000000, 2188616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
0) = 0x3ed6000000
mprotect(0x3ed6016000, 2097152, PROT_NONE) = 0
mmap(0x3ed6216000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x3ed6216000
close(3)                                = 0
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/libdl.so.2", O_RDONLY) = -1 
ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\r\0\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14608, ...}) = 0
mmap(NULL, 2109696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7f821042e000
mprotect(0x7f8210430000, 2097152, PROT_NONE) = 0
mmap(0x7f8210630000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f8210630000
close(3)                                = 0
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/libpthread.so.0", O_RDONLY) 
= -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libpthread.so.0", O_RDONLY)  = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300W\0\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=125836, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f8210f15000
mmap(NULL, 2204512, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7f8210213000
mprotect(0x7f8210229000, 2093056, PROT_NONE) = 0
mmap(0x7f8210428000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7f8210428000
mmap(0x7f821042a000, 13152, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f821042a000
close(3)                                = 0
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/libc.so.6", O_RDONLY) = -1 
ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, 
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\346\1\0\0\0\0\0"..., 832) = 
832
fstat(3, {st_mode=S_IFREG|0755, st_size=1375536, ...}) = 0
mmap(NULL, 3482264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7f820fec0000
mprotect(0x7f8210009000, 2097152, PROT_NONE) = 0
mmap(0x7f8210209000, 20480, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x149000) = 0x7f8210209000
mmap(0x7f821020e000, 17048, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f821020e000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f8210f14000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f8210f13000
arch_prctl(ARCH_SET_FS, 0x7f8210f136f0) = 0
open("/dev/urandom", O_RDONLY)          = 3
read(3, "W\250\323\363C\304\326j", 8)   = 8
close(3)                                = 0
mprotect(0x7f8210209000, 16384, PROT_READ) = 0
mprotect(0x7f8210428000, 4096, PROT_READ) = 0
mprotect(0x7f8210630000, 4096, PROT_READ) = 0
mprotect(0x7f8210f3b000, 4096, PROT_READ) = 0
munmap(0x7f8210f17000, 134701)          = 0
set_tid_address(0x7f8210f13780)         = 18885
set_robust_list(0x7f8210f13790, 0x18)   = 0
futex(0x7fff18f3a20c, FUTEX_WAKE_PRIVATE, 1) = 0
rt_sigaction(SIGRTMIN, {0x7f8210218650, [], SA_RESTORER|SA_SIGINFO, 
0x7f82102217b0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7f82102186e0, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 
0x7f82102217b0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
rt_sigprocmask(SIG_SETMASK, [XFSZ], NULL, 8) = 0
brk(0)                                  = 0x23fc000
brk(0x241d000)                          = 0x241d000
open("/home/edwin/.local/lib/libclamunrar_iface.la", O_RDONLY) = -1 ENOENT (No 
such file or directory)
open("/lib/libclamunrar_iface.la", O_RDONLY) = -1 ENOENT (No such file or 
directory)
open("/usr/lib/libclamunrar_iface.la", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=1019, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f8210f37000
read(3, "# libclamunrar_iface.la - a libt"..., 4096) = 1019
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f8210f37000, 4096)            = 0
futex(0x7f82106310ec, FUTEX_WAKE_PRIVATE, 2147483647) = 0
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/libclamunrar_iface.a", 
O_RDONLY) = 3
read(3, "!<arch>\n/               12379206"..., 832) = 832
close(3)                                = 0
open("/usr/lib/libclamunrar_iface.so.5", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\t\0\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=29867, ...}) = 0
mmap(NULL, 2103880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7f820fcbe000
mprotect(0x7f820fcc0000, 2093056, PROT_NONE) = 0
mmap(0x7f820febf000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7f820febf000
close(3)                                = 0
open("/home/edwin/clam/clamav-0.95/libclamav/.libs/libclamunrar.so.5", 
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=134701, ...}) = 0
mmap(NULL, 134701, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8210f17000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/x86_64/libclamunrar.so.5", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat("/lib/tls/x86_64", 0x7fff18f36e50) = -1 ENOENT (No such file or directory)
open("/lib/tls/libclamunrar.so.5", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat("/lib/tls", 0x7fff18f36e50)        = -1 ENOENT (No such file or directory)
open("/lib/x86_64/libclamunrar.so.5", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat("/lib/x86_64", 0x7fff18f36e50)     = -1 ENOENT (No such file or directory)
open("/lib/libclamunrar.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/lib", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
open("/usr/lib/tls/x86_64/libclamunrar.so.5", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat("/usr/lib/tls/x86_64", 0x7fff18f36e50) = -1 ENOENT (No such file or 
directory)
open("/usr/lib/tls/libclamunrar.so.5", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat("/usr/lib/tls", {st_mode=S_IFDIR|0755, st_size=61, ...}) = 0
open("/usr/lib/x86_64/libclamunrar.so.5", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat("/usr/lib/x86_64", 0x7fff18f36e50) = -1 ENOENT (No such file or directory)
open("/usr/lib/libclamunrar.so.5", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\10\0\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=178464, ...}) = 0
mmap(NULL, 2140976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7f820fab3000
mprotect(0x7f820fabe000, 2093056, PROT_NONE) = 0
mmap(0x7f820fcbd000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7f820fcbd000
close(3)                                = 0
munmap(0x7f8210f17000, 134701)          = 0
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f8210ed3000
stat("test.hdb", {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
open("test.hdb", O_RDONLY)              = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f8210f37000
read(3, "aa15bcf478d165efd2065190eb473bcb"..., 4096) = 54
mmap(NULL, 512000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f8210e56000
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f8210f37000, 4096)            = 0
mmap(NULL, 512000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f8210dd9000
mmap(NULL, 512000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f8210d5c000
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f820fa73000
munmap(0x7f820fa80000, 208896)          = 0
munmap(0x7f8210dd9000, 0)               = -1 EINVAL (Invalid argument)
munmap(0x7f8210e56000, 0)               = -1 EINVAL (Invalid argument)
munmap(0x7f8210ed3000, 0)               = -1 EINVAL (Invalid argument)
getrlimit(RLIMIT_FSIZE, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
stat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
stat("test/clam-v2.rar", {st_mode=S_IFREG|0644, st_size=350, ...}) = 0
stat("test/clam-v2.rar", {st_mode=S_IFREG|0644, st_size=350, ...}) = 0
stat("test/clam-v2.rar", {st_mode=S_IFREG|0644, st_size=350, ...}) = 0
geteuid()                               = 1000
geteuid()                               = 1000
access("test/clam-v2.rar", R_OK)        = 0
open("test/clam-v2.rar", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=350, ...}) = 0
lseek(3, 0, SEEK_SET)                   = 0
read(3, "Rar!\32\7\0\317\220s\0\0\r\0\0\0\0\0\0\0\221\0t\200\200(\0\"\1\0\0 
"..., 1024) = 350
read(3, "", 674)                        = 0
lseek(3, 0, SEEK_SET)                   = 0
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890949
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890950
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890951
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890952
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890953
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890953
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890954
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890955
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890956
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890957
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890957
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890958
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890959
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890960
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890961
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890961
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890962
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890963
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890964
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890965
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890965
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890966
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890967
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890968
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890969
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890969
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890970
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890971
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890972
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890973
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890973
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721890974
mkdir("/tmp/clamav-9b9001e3f4748d2e62c01b2da9d589f9", 0700) = 0
read(3, "Rar!\32\7\0", 7)               = 7
read(3, "\317\220s\0\0\r\0\0\0\0\0\0\0", 13) = 13
mkdir("/tmp/clamav-9b9001e3f4748d2e62c01b2da9d589f9/comments", 0700) = 0
mmap(NULL, 4268032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f820f661000
lseek(3, 0, SEEK_CUR)                   = 20
read(3, "\221\0t\200\200(\0\"\1\0\0 
\2\0\0\3\375<\7\357\274\f&1\0243\10\0\244\201\0\0", 32) = 32
lseek(3, 0, SEEK_CUR)                   = 52
read(3, "clam.exe", 8)                  = 8
lseek(26214400, 60, SEEK_SET)           = -1 EBADF (Bad file descriptor)
open("/tmp/clamav-9b9001e3f4748d2e62c01b2da9d589f9/comments", 
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFDIR|0700, st_size=40, ...}) = 0
fcntl(4, F_GETFD)                       = 0x1 (flags FD_CLOEXEC)
getdents(4, /* 2 entries */, 4096)      = 48
getdents(4, /* 0 entries */, 4096)      = 0
close(4)                                = 0
munmap(0x7f820f661000, 4268032)         = 0
chmod("/tmp/clamav-9b9001e3f4748d2e62c01b2da9d589f9", 0700) = 0
open("/tmp/clamav-9b9001e3f4748d2e62c01b2da9d589f9", 
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFDIR|0700, st_size=60, ...}) = 0
stat("/tmp/clamav-9b9001e3f4748d2e62c01b2da9d589f9", {st_mode=S_IFDIR|0700, 
st_size=60, ...}) = 0
rmdir("/tmp/clamav-9b9001e3f4748d2e62c01b2da9d589f9") = -1 ENOTEMPTY (Directory 
not empty)
getdents(4, /* 3 entries */, 4096)      = 80
lstat("/tmp/clamav-9b9001e3f4748d2e62c01b2da9d589f9/comments", 
{st_mode=S_IFDIR|0700, st_size=40, ...}) = 0
rmdir("/tmp/clamav-9b9001e3f4748d2e62c01b2da9d589f9/comments") = 0
getdents(4, /* 0 entries */, 4096)      = 0
lseek(4, 0, SEEK_SET)                   = 0
stat("/tmp/clamav-9b9001e3f4748d2e62c01b2da9d589f9", {st_mode=S_IFDIR|0700, 
st_size=40, ...}) = 0
rmdir("/tmp/clamav-9b9001e3f4748d2e62c01b2da9d589f9") = 0
close(4)                                = 0
lseek(3, 0, SEEK_SET)                   = 0
brk(0x2441000)                          = 0x2441000
read(3, "Rar!\32\7\0\317\220s\0\0\r\0\0\0\0\0\0\0\221\0t\200\200(\0\"\1\0\0 
"..., 131072) = 350
read(3, "", 130722)                     = 0
read(3, "", 130722)                     = 0
lseek(3, 0, SEEK_SET)                   = 0
fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 2), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f8210f37000
write(1, "test/clam-v2.rar: OK\n", 21)  = 21
close(3)                                = 0
munmap(0x7f820fa73000, 53248)           = 0
munmap(0x7f8210d5c000, 512000)          = 0
munmap(0x7f8210dd9000, 512000)          = 0
munmap(0x7f8210e56000, 512000)          = 0
munmap(0x7f8210ed3000, 262144)          = 0
write(1, "\n----------- SCAN SUMMARY ------"..., 38) = 38
write(1, "Known viruses: 1\n", 17)      = 17
write(1, "Engine version: 0.95\n", 21)  = 21
write(1, "Scanned directories: 0\n", 23) = 23
write(1, "Scanned files: 1\n", 17)      = 17
write(1, "Infected files: 0\n", 18)     = 18
write(1, "Data scanned: 0.00 MB\n", 22) = 22
write(1, "Data read: 0.00 MB (ratio 0.00:1"..., 34) = 34
write(1, "Time: 1.247 sec (0 m 1 s)\n", 26) = 26
exit_group(0)                           = ?

Attachment: so5_libclamunrar_iface.la
Description: application/shared-library-la

Attachment: so6_libclamunrar_iface.la
Description: application/shared-library-la

Reply via email to