From: Struan Bartlett <struan@praguespringpeople.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: Re: Nothing happens
Date: Fri, 20 May 2005 01:30:17 +0200 [thread overview]
Message-ID: <428D2189.3020501@praguespringpeople.org> (raw)
In-Reply-To: <d6hllp$kf6$1@sea.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 10896 bytes --]
I'm at a bit of a loss to explain this. My strace output is quite
different. I'm running the 2005-05-18 snapshot of qemu 0.7.0.
I think it's time to start inserting fprintf(stderr, "OK1\n");
statements into your code, recompiling, to trace the error origin (or
use gdb).
In detail...
Yours:
$ grep ^open /tmp/qemu.log
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/libdl.so.2", O_RDONLY) = 3
open("/lib/libc.so.6", O_RDONLY) = 3
open("/dev/urandom", O_RDONLY) = 3
open("/dev/tty", O_RDWR|O_NONBLOCK) = 3
open("/etc/mtab", O_RDONLY) = 3
open("/proc/meminfo", O_RDONLY) = 3
open("./run", O_RDONLY) = 3
Mine:
$ grep ^open /tmp/q.log
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/tls/libm.so.6", O_RDONLY) = 3
open("/usr/lib/libz.so.1", O_RDONLY) = 3
open("/usr/lib/libSDL-1.2.so.0", O_RDONLY) = 3
open("/lib/tls/libpthread.so.0", O_RDONLY) = 3
open("/lib/tls/libutil.so.1", O_RDONLY) = 3
open("/lib/tls/libc.so.6", O_RDONLY) = 3
open("/usr/X11R6/lib/libX11.so.6", O_RDONLY) = 3
open("/usr/X11R6/lib/libXext.so.6", O_RDONLY) = 3
open("/usr/lib/libasound.so.2", O_RDONLY) = 3
open("/lib/tls/libdl.so.2", O_RDONLY) = 3
open("/dev/net/tun", O_RDWR|O_LARGEFILE) = 3
open("/dev/shm/qemuybaeub", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = 4
open("/dev/shm/qemuybaeub", O_RDWR|O_CREAT|O_TRUNC|O_LARGEFILE, 0600) = 5
open("c.img", O_RDONLY|O_LARGEFILE) = 6
open("c.img", O_RDWR|O_LARGEFILE) = 6
open("/dev/kqemu", O_RDWR|O_LARGEFILE) = 7
open("/home/struan/.Xauthority", O_RDONLY) = 9
open("/home/struan/.Xauthority", O_RDONLY) = 9
open("/home/struan/.Xauthority", O_RDONLY) = 10
open("/etc/ld.so.cache", O_RDONLY) = 10
open("/usr/lib/libXcursor.so.1", O_RDONLY) = 10
open("/usr/lib/libXrender.so.1", O_RDONLY) = 10
open("/usr/X11R6/lib/X11/locale/locale.alias", O_RDONLY) = 10
open("/usr/X11R6/lib/X11/locale/locale.dir", O_RDONLY) = 10
open("/usr/X11R6/lib/X11/locale/C/XI18N_OBJS", O_RDONLY) = 10
open("/usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2", O_RDONLY) = 10
open("/usr/X11R6/lib/X11/locale/locale.alias", O_RDONLY) = 10
open("/usr/X11R6/lib/X11/locale/locale.dir", O_RDONLY) = 10
open("/usr/X11R6/lib/X11/locale/C/XLC_LOCALE", O_RDONLY) = 10
open("/home/struan/.Xdefaults-xebedee", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/proc/stat", O_RDONLY) = 10
open("/usr/local/share/qemu/bios.bin", O_RDONLY|O_LARGEFILE) = 10
open("/usr/local/share/qemu/bios.bin", O_RDONLY|O_LARGEFILE) = 10
open("/usr/local/share/qemu/vgabios-cirrus.bin", O_RDONLY|O_LARGEFILE) = 10
open("/etc/localtime", O_RDONLY) = 10
Rudi Lippert wrote:
>well, nothing really means nothing. the guest window does not come up, and
>the console window does not show anything, even with -monitor stdio. the
>thread just goes to sleep.
>strace may be interesting, and 5kb are not too much, i think, so here it
>comes.
>thanks for now,
>
>Rudi
>
>
>Struan Bartlett wrote:
>
>
>
>>How do you mean 'nothing'? Can you be more precise?
>>
>>Does it display the network interface configuration? open the guest
>>window? Or really is does it just hang immediately? With the '-monitor
>>stdio' option does it give you a monitor prompt?
>>
>>Have you tried running qemu with:
>>
>>strace qemu <your normal options> 2>/tmp/qemu.log
>>
>>On Wed, 18 May 2005, Rudi Lippert wrote:
>>
>>
>>
>>>My OS:
>>>GNU/Linux (Gentoo)
>>>QEMU Version:
>>>0.7.0, compiled using the standard ebuild; no kqemu or qvm86
>>>I'd include the exact build options, but they're rather lengthy.
>>>
>>>I've experienced the same problem with 0.6.1 and CVS somewhere in between
>>>0.6.1 and 0.7.0.
>>>
>>>Cheers,
>>>Rudi
>>>
>>>Hetz Ben Hamo wrote:
>>>
>>>
>>>
>>>>How about starting with trivial details such as:
>>>>
>>>>* Which host OS do you use?
>>>>* Which QEMU version?
>>>>* binaries downloaded or did you compile it?
>>>>
>>>>Thanks,
>>>>Hetz
>>>>
>>>>On 5/18/05, Rudi Lippert <Rudi@lyrikpage.de> wrote:
>>>>
>>>>
>>>>>Hi!
>>>>>I keep wondering why QEMU does not do anything when I start it.
>>>>>First of all: yes, I know how to use QEMU. When I use it on my other
>>>>>PC, it works like a charm.
>>>>>The major difference between the two systems is, that this one is an
>>>>>AMD64. And here is what happens when I start QEMU:
>>>>>Nothing. No output, no CPU activity.
>>>>>I know that this is not a whole lot of information, but I will provide
>>>>>any further information that is requested.
>>>>>Thanks in advance!
>>>>>
>>>>>Rudi Lippert (Herzogenaurach, Germany)
>>>>>
>>>>>
>>>>>
>>>>>------------------------------------------------------------------------
>>>>>
>>>>>execve("./run", ["./run", "-monitor", "stdio"], [/* 57 vars */]) = 0
>>>>>uname({sys="Linux", node="rudi", ...}) = 0
>>>>>brk(0) = 0x5ba000
>>>>>mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9556b000
>>>>>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=100748, ...}) = 0
>>>>>mmap(NULL, 100748, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a9556c000
>>>>>close(3) = 0
>>>>>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\340\17\0"..., 640) = 640
>>>>>lseek(3, 624, SEEK_SET) = 624
>>>>>read(3, "\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\2\0\0\0\4\0\0\0"..., 32) = 32
>>>>>fstat(3, {st_mode=S_IFREG|0755, st_size=11480, ...}) = 0
>>>>>mmap(NULL, 1056984, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2a9566c000
>>>>>mprotect(0x2a9566e000, 1048792, PROT_NONE) = 0
>>>>>mmap(0x2a9576c000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x2a9576c000
>>>>>close(3) = 0
>>>>>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\260\316"..., 640) = 640
>>>>>lseek(3, 624, SEEK_SET) = 624
>>>>>read(3, "\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\2\0\0\0\4\0\0\0"..., 32) = 32
>>>>>fstat(3, {st_mode=S_IFREG|0755, st_size=1270528, ...}) = 0
>>>>>mmap(NULL, 2250248, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2a9576f000
>>>>>mprotect(0x2a9588b000, 1086984, PROT_NONE) = 0
>>>>>mmap(0x2a9596f000, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x100000) = 0x2a9596f000
>>>>>mmap(0x2a95990000, 17928, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2a95990000
>>>>>close(3) = 0
>>>>>mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95995000
>>>>>mprotect(0x2a9598a000, 12288, PROT_READ) = 0
>>>>>munmap(0x2a9556c000, 100748) = 0
>>>>>open("/dev/urandom", O_RDONLY) = 3
>>>>>read(3, "\211\377\260-\276\3508\247", 8) = 8
>>>>>close(3) = 0
>>>>>rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
>>>>>open("/dev/tty", O_RDWR|O_NONBLOCK) = 3
>>>>>close(3) = 0
>>>>>brk(0) = 0x5ba000
>>>>>brk(0x5db000) = 0x5db000
>>>>>getuid() = 1000
>>>>>getgid() = 100
>>>>>geteuid() = 1000
>>>>>getegid() = 100
>>>>>rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
>>>>>open("/etc/mtab", O_RDONLY) = 3
>>>>>fstat(3, {st_mode=S_IFREG|0644, st_size=694, ...}) = 0
>>>>>mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9556c000
>>>>>read(3, "/dev/hdc3 / ext3 rw,noatime 0 0\n"..., 4096) = 694
>>>>>close(3) = 0
>>>>>munmap(0x2a9556c000, 4096) = 0
>>>>>open("/proc/meminfo", O_RDONLY) = 3
>>>>>fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
>>>>>mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9556c000
>>>>>read(3, "MemTotal: 1026832 kB\nMemFre"..., 1024) = 600
>>>>>close(3) = 0
>>>>>munmap(0x2a9556c000, 4096) = 0
>>>>>rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
>>>>>rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
>>>>>rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
>>>>>rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
>>>>>rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
>>>>>rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
>>>>>rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
>>>>>rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0
>>>>>uname({sys="Linux", node="rudi", ...}) = 0
>>>>>stat("/vms/w2k", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
>>>>>stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
>>>>>getpid() = 11960
>>>>>getppid() = 11959
>>>>>getpgrp() = 11959
>>>>>rt_sigaction(SIGCHLD, {0x431290, [], SA_RESTORER, 0x2a9579eba0}, {SIG_DFL}, 8) = 0
>>>>>rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
>>>>>open("./run", O_RDONLY) = 3
>>>>>ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fbfffefe0) = -1 ENOTTY (Inappropriate ioctl for device)
>>>>>lseek(3, 0, SEEK_CUR) = 0
>>>>>read(3, "#!/bin/bash\n/usr/local/bin/qemu "..., 80) = 76
>>>>>lseek(3, 0, SEEK_SET) = 0
>>>>>getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
>>>>>dup2(3, 255) = 255
>>>>>close(3) = 0
>>>>>fcntl(255, F_SETFD, FD_CLOEXEC) = 0
>>>>>fcntl(255, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
>>>>>fstat(255, {st_mode=S_IFREG|0755, st_size=76, ...}) = 0
>>>>>lseek(255, 0, SEEK_CUR) = 0
>>>>>rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
>>>>>read(255, "#!/bin/bash\n/usr/local/bin/qemu "..., 76) = 76
>>>>>rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
>>>>>rt_sigprocmask(SIG_BLOCK, [INT CHLD], [RTMIN], 8) = 0
>>>>>fork() = 11961
>>>>>rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0
>>>>>rt_sigprocmask(SIG_BLOCK, [CHLD], [RTMIN], 8) = 0
>>>>>rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0
>>>>>rt_sigprocmask(SIG_BLOCK, [CHLD], [RTMIN], 8) = 0
>>>>>rt_sigaction(SIGINT, {0x4300d0, [], SA_RESTORER, 0x2a9579eba0}, {SIG_DFL}, 8) = 0
>>>>>wait4(-1, <unfinished ...>
>>>>>
>>>>>
>>>>>------------------------------------------------------------------------
>>>>>
>>>>>_______________________________________________
>>>>>Qemu-devel mailing list
>>>>>Qemu-devel@nongnu.org
>>>>>http://lists.nongnu.org/mailman/listinfo/qemu-devel
>>>>>
>>>>>
[-- Attachment #2: Type: text/html, Size: 11240 bytes --]
next prev parent reply other threads:[~2005-05-19 23:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-18 19:17 [Qemu-devel] Nothing happens Rudi Lippert
2005-05-18 20:55 ` Hetz Ben Hamo
2005-05-18 21:32 ` [Qemu-devel] " Rudi Lippert
2005-05-18 21:57 ` Struan Bartlett
2005-05-19 9:23 ` [Qemu-devel] " Rudi Lippert
2005-05-19 23:30 ` Struan Bartlett [this message]
2005-05-20 8:12 ` Oliver Gerlich
2005-05-21 12:07 ` [Qemu-devel] " Per-Erik Kristensson
2005-05-21 16:26 ` Damien Mascord
2005-05-21 21:59 ` Jernej Simončič
-- strict thread matches above, loose matches on Subject: below --
2005-06-12 8:14 [Qemu-devel] Re: " Josef Moffett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=428D2189.3020501@praguespringpeople.org \
--to=struan@praguespringpeople.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.