Bug 986325

Summary: Boxes freez at startup
Product: [Fedora] Fedora Reporter: Branislav Blaškovič <bblaskov>
Component: boxesAssignee: Jakub Hrozek <jhrozek>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 19CC: jhrozek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-19 12:28:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Branislav Blaškovič 2013-07-19 12:16:40 UTC
Description of problem:
  Boxes does not start because it's frozen at read() syscall.

Version-Release number of selected component (if applicable):
boxes-1.1-12.fc19.x86_64
fedora-release-19-2.noarch

Steps to Reproduce:

$ strace boxes
execve("/usr/bin/boxes", ["boxes"], [/* 53 vars */]) = 0
brk(0)                                  = 0x2291000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9d69edc000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=116988, ...}) = 0
mmap(NULL, 116988, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9d69ebf000
close(3)                                = 0
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\34\342\0108\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2104376, ...}) = 0
mmap(0x3808e00000, 3928640, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3808e00000
mprotect(0x3808fb5000, 2097152, PROT_NONE) = 0
mmap(0x38091b5000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b5000) = 0x38091b5000
mmap(0x38091bb000, 16960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x38091bb000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9d69ebe000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9d69ebc000
arch_prctl(ARCH_SET_FS, 0x7f9d69ebc740) = 0
mprotect(0x38091b5000, 16384, PROT_READ) = 0
mprotect(0x612000, 4096, PROT_READ)     = 0
mprotect(0x3808c20000, 4096, PROT_READ) = 0
munmap(0x7f9d69ebf000, 116988)          = 0
chdir("/home/bblaskov")                 = 0
brk(0)                                  = 0x2291000
brk(0x22b2000)                          = 0x22b2000
brk(0)                                  = 0x22b2000
open(".boxes", O_RDONLY)                = -1 ENOENT (No such file or directory)
open("/usr/share/boxes/boxes", O_RDONLY) = 3
stat("/usr/share/boxes/boxes", {st_mode=S_IFREG|0644, st_size=44030, ...}) = 0
stat("/usr/share/boxes/boxes", {st_mode=S_IFREG|0644, st_size=44030, ...}) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=44030, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9d69edb000
read(3, "#\n#   File:           boxes-conf"..., 8192) = 8192
fstat(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 11), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9d69eda000
read(0,

And it's frozen here. 

Please note that I am not using Gnome.

Comment 1 Jakub Hrozek 2013-07-19 12:28:08 UTC
(In reply to Branislav Blaškovič from comment #0)
> read(0,
> 
> And it's frozen here. 

0 == stdin

That's standard UNIX behaviour any decent utility should follow. Read from stdin, write to stdout. Please see the man page.

Comment 2 Branislav Blaškovič 2013-07-22 09:17:30 UTC
Oh, I've run boxes instead of gnome-boxes. My bad. :(