Subject: Re: Is restarting xend supposed to panic the system?
To: None <port-xen@NetBSD.org>
From: Jed Davis <jdev@panix.com>
List: port-xen
Date: 06/23/2005 23:41:22
In article <d9fdub$7mb$1@sea.gmane.org>, Jed Davis <jdev@panix.com> wrote:
> In article <d9f3je$c21$1@sea.gmane.org>, Jed Davis <jdev@panix.com> wrote:
> > 
> > My dom0 kernel is from the netbsd-3 branch (either with or without my
> > xbdback patch from the other thread; the same thing happens either way),
> > with xentools-2.0.6nb1.
> 
> Right, and then I leave out the important part: this is on a Pentium
> 4 with HyperThreading, which Xen appears to see as two CPUs.  I can't
> reproduce the problem on another system, which has a much slower
> (single) P3 but also a number of other differences.  I'll see if I can
> test the failing system with HT disabled; booting Xen with "nosmp" just
> caused the machine to lock up when I ran "xm create".

Oh.  Actually, the difference is that the other machine was running a
kernel without DIAGNOSTIC/DEBUG.  (They were also slightly different
revisions of the sources, originally, but that wasn't a factor.)

This time it's stopped in init instead of a python, FWIW:

  panic: kernel diagnostic assertion "pmap->pm_obj.uo_npages == 0" failed: file "../../../../arch/xen/i386/pmap.c"
  , line 2091
  Stopped in pid 1.1 (init) at    netbsd:cpu_Debugger+0x4:        leave
  cpu_Debugger(c04004a4,42bb47f9,4a0b2,c6889688,0) at netbsd:cpu_Debugger+0x4
  panic(c03f21a0,c03a0e34,c03ae507,c03dd7a0,82b) at netbsd:panic+0x121
  __main(c03a0e34,c03dd7a0,82b,c03ae507,c04a6000) at netbsd:__main
  pmap_destroy(c6889688,0,c745bf08,c02be29a,c02315e9) at netbsd:pmap_destroy+0x8b
  pmap_load(c0231531,c745bf2c,bfbfee90,4,100) at netbsd:pmap_load+0x2d9
  copyout(c688b000,c745bf64,c745bf5c,0,c02c5ea9) at netbsd:copyout+0xe
  syscall_plain() at netbsd:syscall_plain+0x18f
  --- syscall (number 7) ---
  0xbdb3384f:
  ds          0x11
  es          0x11
  fs          0x31
  gs          0x11
  edi         0x1
  esi         0x100
  ebp         0xc745be68
  ebx         0x1
  edx         0
  ecx         0xfffffffe
  eax         0x2068
  eip         0xc02b6c68  cpu_Debugger+0x4
  cs          0x9
  eflags      0x1202
  esp         0xc745be68
  ss          0x11
  netbsd:cpu_Debugger+0x4:        leave
  Stopped in pid 1.1 (init) at    netbsd:cpu_Debugger+0x4:        leave


-- 
(let ((C call-with-current-continuation)) (apply (lambda (x y) (x y)) (map
((lambda (r) ((C C) (lambda (s) (r (lambda l (apply (s s) l))))))  (lambda
(f) (lambda (l) (if (null? l) C (lambda (k) (display (car l)) ((f (cdr l))
(C k)))))))    '((#\J #\d #\D #\v #\s) (#\e #\space #\a #\i #\newline)))))