qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Mark Glines <mark@glines.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] emulated lance device crashes in debian-sparc32
Date: Sat, 19 May 2007 07:16:56 -0700	[thread overview]
Message-ID: <20070519071656.74105a87@chirp> (raw)

Hi,

I've been trying to get Debian installed on a virtual sparc box,
running on a x86 Linux host.  I get a reproducible crash early in the
installation process, when the sparc kernel tries to load the lance
driver.

I have configured qemu with:

./configure --prefix=/usr --enable-slirp --enable-adlib
--disable-linux-user --enable-system --enable-sdl --enable-kqemu
--disable-alsa

The sparc32 CD image I am booting from is:

http://cdimage.debian.org/debian-cd/4.0_r0/sparc/iso-cd/debian-40r0-sparc-netinst.iso

The command line I am using is:

qemu-system-sparc -no-reboot -hda ~/qemu-debian-sparc.hda -net user
-cdrom ~/debian-40r0-sparc-netinst.iso -boot d

To reproduce, just run the above commandline and hit enter a few times.
(The -hda image is empty, and probably not necessary for reproduction.)

Hit enter at the SILO boot-prompt, hit enter to accept the default
language (English), default country (United States), default keymap
(American English).

Crash occurs on the detecting network hardware screen.  I've verified
this crash occurs in the 0.9.0 release, and in a fresh cvs checkout.
(In other words, the recent openbios-sparc32 checkin did not affect
this issue.)

Crash details:

Program received signal SIGSEGV, Segmentation fault.
pcnet_h_reset (opaque=0x0)
at /home/paranoid/workspace/qemu/hw/pcnet.c:1565
1565        memcpy(s->prom, s->nd->macaddr, 6);
(gdb) print s
$1 = (PCNetState *) 0x0
(gdb) bt
#0  pcnet_h_reset (opaque=0x0) at /home/paranoid/workspace/qemu/hw/pcnet.c:1565
#1  0x0808ca20 in dma_mem_writel (opaque=0x9b5d460, addr=2017460240, val=128)
    at /home/paranoid/workspace/qemu/hw/sparc32_dma.c:199
#2  0x080ad29c in __stl_mmu (addr=4244701200, val=128, is_user=0)
    at ../softmmu_template.h:197
#3  0x095f9a81 in code_gen_buffer ()
#4  0x00000000 in ?? ()
(gdb)

The weird thing is, when I add "-net nic,model=lance" to my command line
right before "-net user", the crash does not occur.  I kinda assumed from
the above backtrace that the lance driver was selected on sparc32 by
default...

Please let me know if there's anything else I can do to help debug this.

Mark

             reply	other threads:[~2007-05-19 14:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-19 14:16 Mark Glines [this message]
2007-05-19 17:03 ` [Qemu-devel] emulated lance device crashes in debian-sparc32 Blue Swirl
2007-05-19 19:08   ` Blue Swirl
2007-05-19 22:08     ` Mark Glines
2007-05-20  7:10       ` Blue Swirl
2007-05-20  9:11         ` Mark Glines
2007-05-20 10:25           ` Paul Brook
2007-05-20 13:15             ` Mark Glines
2007-05-20 13:51               ` Paul Brook
2007-05-20 15:45             ` Blue Swirl
2007-05-20 19:45               ` Blue Swirl

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=20070519071656.74105a87@chirp \
    --to=mark@glines.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).