NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-xen/53074: Daily 8.99.12 DOMU panic



The following reply was made to PR port-xen/53074; it has been noted by GNATS.

From: coypu%sdf.org@localhost
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: port-xen/53074: Daily 8.99.12 DOMU panic
Date: Tue, 6 Mar 2018 01:49:26 +0000

 You can parse the backtrace like so (normally, it would report the
 functions, but that is a bug).
 
 gdb /my-netbsd-kernel
 info symbol 0xffffffff804f74b8
 
 and so on.
 
 To check the value of entry, I suspect this will do:
 
 Index: xengnt.c
 ===================================================================
 RCS file: /cvsroot/src/sys/arch/xen/xen/xengnt.c,v
 retrieving revision 1.25
 diff -u -r1.25 xengnt.c
 --- xengnt.c	24 Oct 2012 13:07:46 -0000	1.25
 +++ xengnt.c	6 Mar 2018 01:47:55 -0000
 @@ -261,7 +261,8 @@
  xengnt_free_entry(grant_ref_t entry)
  {
  	mutex_enter(&grant_lock);
 -	KASSERT(entry > NR_RESERVED_ENTRIES);
 +	KASSERTMSG(entry > NR_RESERVED_ENTRIES,
 +	    "entry > NR_RESERVED_ENTRIES and entry is %d", entry);
  	KASSERT(gnt_entries[last_gnt_entry] == XENGNT_NO_ENTRY);
  	KASSERT(last_gnt_entry >= 0);
  	KASSERT(last_gnt_entry <= gnt_max_grant_frames * NR_GRANT_ENTRIES_PER_PAGE);
 
 
 Write the above to a file, and use patch -p0 < /path/to/patch-file
 and rebuild a new kernel:
 cd src; ./build.sh -U -u -m amd64 -O ~/xen tools kernel=XEN3_DOMU
 


Home | Main Index | Thread Index | Old Index