Article ID: 119775, created on Jan 23, 2014, last review on May 2, 2014

  • Applies to:
  • Virtuozzo containers for Linux

Symptoms

vzuncache command fails for containers based on VZFS3:

# vzuncache -a -f 12
Removing stale lock file /vz/lock/12.lck
vzquota : (warning) Quota is running for id 12 already
Failed to turn quota on for Container 12
Optimizing private area for Container 12 Done.
...
...
Unable to stat file in vzcache!
*** glibc detected *** vzuncache: double free or corruption (!prev):
0x0000000001016b30 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3b04c716af]
/lib64/libc.so.6(cfree+0x4b)[0x3b04c758db]
vzuncache(__strtol_internal+0x78c)[0x401f84]
vzuncache(vfprintf+0xb63)[0x40216b]
vzuncache(vfprintf+0xc61)[0x402269]
vzuncache(__strtol_internal+0x4e5)[0x401cdd]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x3b04c1d9c4]
vzuncache(system+0x62)[0x4019ea]
======= Memory map: ========
00400000-0040a000 r-xp 00000000 08:01 1231308                           
 /usr/sbin/vzuncache
00509000-0050d000 rw-p 00009000 08:01 1231308                           
 /usr/sbin/vzuncache
0050d000-0050f000 rw-p 00000000 00:00 0
0060c000-0060d000 rw-p 0000c000 08:01 1231308                           
 /usr/sbin/vzuncache
0100d000-0102e000 rw-p 00000000 00:00 0                                 
 [heap]
3b04800000-3b0481c000 r-xp 00000000 08:01 819377                        
 /lib64/ld-2.5.so
3b04a1c000-3b04a1d000 r--p 0001c000 08:01 819377                        
 /lib64/ld-2.5.so
3b04a1d000-3b04a1e000 rw-p 0001d000 08:01 819377                        
 /lib64/ld-2.5.so
3b04c00000-3b04d4f000 r-xp 00000000 08:01 819379                        
 /lib64/libc-2.5.so
3b04d4f000-3b04f4f000 ---p 0014f000 08:01 819379                        
 /lib64/libc-2.5.so
3b04f4f000-3b04f53000 r--p 0014f000 08:01 819379                        
 /lib64/libc-2.5.so
3b04f53000-3b04f54000 rw-p 00153000 08:01 819379                        
 /lib64/libc-2.5.so
3b04f54000-3b04f59000 rw-p 00000000 00:00 0
3b07400000-3b0740d000 r-xp 00000000 08:01 819395                        
 /lib64/libgcc_s-4.1.2-20080825.so.1
3b0740d000-3b0760d000 ---p 0000d000 08:01 819395                        
 /lib64/libgcc_s-4.1.2-20080825.so.1
3b0760d000-3b0760e000 rw-p 0000d000 08:01 819395                        
 /lib64/libgcc_s-4.1.2-20080825.so.1
7f8e558ee000-7f8e558f0000 rw-p 00000000 00:00 0
7f8e558fd000-7f8e558ff000 rw-p 00000000 00:00 0
7fff01d3b000-7fff01d50000 rw-p 00000000 00:00 0                         
 [stack]
7fff01dfe000-7fff01e00000 r-xp 00000000 00:00 0                         
 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                 
 [vsyscall]
Aborted


# ls -la /vz/private/12/VERSION
lrwxrwxrwx 1 root root 7 Mar 27  2007 /vz/private/12/VERSION -> 005.003

Cause

The problem is caused by corrupted cache: some files are missing from the cache area.

Resolution

An internal request with id PCLIN-32297 has been submitted to make sure that vzuncache will still handle such cases, a fix will be included in one of the future updates.

(Please, note that the fixed binary will just ignore the missing files and force the uncache procedure. The missing files cannot be recovered, so the container's functionality may be impaired).

Search Words

Unable to stat file in vzcache

double free or corruption

*** glibc detected ***

vzuncache not working

e8e50b42231236b82df27684e7ec0beb 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f

Email subscription for changes to this article
Save as PDF