OpenVZ Forum


Home » General » Support » Errors Displayed in strace Output
Errors Displayed in strace Output [message #38830] Mon, 08 February 2010 03:56 Go to next message
n9xcr is currently offline  n9xcr
Messages: 2
Registered: February 2010
Location: Silver Lake, WI USA
Junior Member
I was looking for a solution to that dreaded "Unable to open pty: No such file or directory", and one of the solutions was to run strace and look for a particular string of text. While I didn't find that string, I saw an awful lot of other things I wanted to get an opinion on.

[root@serenity cache]# strace -ff vzctl enter
execve("/usr/sbin/vzctl", ["vzctl", "enter"], [/* 21 vars */]) = 0
brk(0)                                  = 0xe2d4000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ad46b042000
uname({sys="Linux", node="serenity.serverbelongsto.us", ...}) = 0
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=32621, ...}) = 0
mmap(NULL, 32621, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2ad46b043000
close(3)                                = 0
open("/lib64/tls/x86_64/libvzctl-0.0.2.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/lib64/tls/x86_64", 0x7fffc70a8430) = -1 ENOENT (No such file or directory)
open("/lib64/tls/libvzctl-0.0.2.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/lib64/tls", 0x7fffc70a8430)      = -1 ENOENT (No such file or directory)
open("/lib64/x86_64/libvzctl-0.0.2.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/lib64/x86_64", 0x7fffc70a8430)   = -1 ENOENT (No such file or directory)
open("/lib64/libvzctl-0.0.2.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/lib64", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib64/tls/x86_64/libvzctl-0.0.2.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/tls/x86_64", 0x7fffc70a8430) = -1 ENOENT (No such file or directory)
open("/usr/lib64/tls/libvzctl-0.0.2.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/tls", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib64/x86_64/libvzctl-0.0.2.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/x86_64", 0x7fffc70a8430) = -1 ENOENT (No such file or directory)
open("/usr/lib64/libvzctl-0.0.2.so", 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\220}\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=520594, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ad46b04b000
mmap(NULL, 1202600, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ad46b04c000
mprotect(0x2ad46b070000, 1044480, PROT_NONE) = 0
mmap(0x2ad46b16f000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23000) = 0x2ad46b16f000
close(3)                                = 0
open("/lib64/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\20\16\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=20424, ...}) = 0
mmap(NULL, 2109696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ad46b243000
mprotect(0x2ad46b245000, 2097152, PROT_NONE) = 0
mmap(0x2ad46b445000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x2ad46b445000
close(3)                                = 0
open("/lib64/libutil.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\0\200\16\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=15280, ...}) = 0
mmap(NULL, 2105616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ad46b447000
mprotect(0x2ad46b449000, 2093056, PROT_NONE) = 0
mmap(0x2ad46b648000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x2ad46b648000
close(3)                                = 0
open("/lib64/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\220\332\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1712216, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ad46b64a000
mmap(NULL, 3498328, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ad46b64b000
mprotect(0x2ad46b798000, 2097152, PROT_NONE) = 0
mmap(0x2ad46b998000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14d000) = 0x2ad46b998000
mmap(0x2ad46b99d000, 16728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ad46b99d000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ad46b9a2000
arch_prctl(ARCH_SET_FS, 0x2ad46b9a26e0) = 0
mprotect(0x2ad46b998000, 16384, PROT_READ) = 0
mprotect(0x2ad46b648000, 4096, PROT_READ) = 0
mprotect(0x2ad46b445000, 4096, PROT_READ) = 0
mprotect(0x2ad46b241000, 4096, PROT_READ) = 0
munmap(0x2ad46b043000, 32621)           = 0
brk(0)                                  = 0xe2d4000
brk(0xe2f5000)                          = 0xe2f5000
rt_sigaction(SIGPIPE, {0x1, [], SA_RESTORER, 0x2ad46b67b2d0}, NULL, 8) = 0
write(2, "CT ID missing\n", 14CT ID missing
)         = 14
exit_group(21)                          = ?
[root@serenity cache]#


Thank you,
Chris
Re: Errors Displayed in strace Output [message #38854 is a reply to message #38830] Sat, 13 February 2010 09:17 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Please,

pay attention to the last string

Quote:

write(2, "CT ID missing\n", 14CT ID missing




you have to specify CT ID e.g.

# vzctl enter 101
Re: Errors Displayed in strace Output [message #38867 is a reply to message #38854] Sat, 13 February 2010 15:28 Go to previous message
n9xcr is currently offline  n9xcr
Messages: 2
Registered: February 2010
Location: Silver Lake, WI USA
Junior Member
Oops. Rolling Eyes Thank you!

Chris
Previous Topic: Error while using vzpkgcache (maybe understanding-problem)
Next Topic: Multicast Join Group does not work from VE on Bridged Interface
Goto Forum:
  


Current Time: Fri Aug 02 21:22:10 GMT 2024

Total time taken to generate the page: 0.03607 seconds