On Tue, 14 Apr 2009 18:53:27 -0700 (PDT)
Tom Chen <[email protected]> wrote:

> Hello,
> 
> A crash happened when our driver when calling ddi_dma_mem_free to free
> dma access handle. I had added some debug code in the driver to print
> the handles when they are allocated and when they are freed. Now I am
> able to verify that the handles are valid and what is being freed is
> the same address that was allocated; the driver is not corrupting the
> handles.
> 
> Our driver runs on a Sparc server with OpenSolaris nv107. Here is the
> crash dump, can someone shed some lights why crash happened and how we
> should debug further? 

For starters, add this line to /etc/system and reboot:

set kmem_flags=0xf


That will enable you to run ::findleaks when you investigating
the core further.


James
--
Senior Kernel Software Engineer, Solaris
Sun Microsystems
http://blogs.sun.com/jmcp       http://www.jmcp.homeunix.com/blog
Kernel Conference Australia -
http://au.sun.com/sunnews/events/2009/kernel
_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to