Current-Users archive

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

Re: panic: wapbl_register_deallocation: out of resources



On Fri Feb 18 2011 at 12:28:51 +0100, Juergen Hannken-Illjes wrote:
> 2) Backtraces from ddb are broken for a longer time.  For me this hack works:

Why is it a hack and what's keeping you from committing it?  A debugger
that can't debug is quite sad ...

> Index: sys/ddb/db_cpu.c
> ===================================================================
> RCS file: /cvsroot/src/sys/ddb/db_cpu.c,v
> retrieving revision 1.3
> diff -p -u -2 -r1.3 db_cpu.c
> --- db_cpu.c  9 Mar 2009 06:07:05 -0000       1.3
> +++ db_cpu.c  18 Feb 2011 11:27:59 -0000
> @@ -44,4 +44,5 @@ __KERNEL_RCSID(0, "$NetBSD: db_cpu.c,v 1
>  
>  static struct cpu_info       *head;
> +static void *head_addr;
>  
>  struct cpu_info *
> @@ -50,4 +51,5 @@ db_cpu_first(void)
>  
>       head = db_read_ptr("cpu_queue");
> +     (void) db_value_of_name("cpu_queue", (db_expr_t *)&head_addr);
>       return head;
>  }
> @@ -59,5 +61,5 @@ db_cpu_next(struct cpu_info *ci)
>       db_read_bytes((db_addr_t)&ci->ci_data.cpu_qchain.cqe_next,
>           sizeof(ci), (char *)&ci);
> -     if (ci == head) {
> +     if (ci == head_addr) {
>               ci = NULL;
>       }
> 
> -- 
> Juergen Hannken-Illjes - hannken%eis.cs.tu-bs.de@localhost - TU Braunschweig 
> (Germany)

-- 
älä karot toivorikkauttas, kyl rätei ja lumpui piisaa


Home | Main Index | Thread Index | Old Index