On 10/7/13 22:32 , Alexander Pyhalov wrote:
> Hello.
> While working on rtorrent OpenIndiana component I've seen stange
> sporadic application hangs. Application becomes unresponsive and can't
> be killed without reboot.
> 
> After some debugging I've found that it actively uses mmap/munmap
> functions and sometimes hangs in munmap system call.
> 
> It enters in munmap() with m_ptr=FD213000 m_end=FD413800 and never
> leaves it.
> Dtracing also showed that in this case munmap::entry probe is hitted,
> but munmap::return is never reached. How can I debug this further?

There are a few things to do, but the first case is to simply use mdb to
get a sense of where the threads in question are. As a privileged user
you'll want to run 'mdb -k'. Figure out the process id that you care
about and at the prompt you'll want to run the following:

> 0t<pid>::pid2proc | ::walk thread | ::findstack -v
... output ...
> $q


That itself should show you where the processes threads are. With that
you should see where the thread stuck in munmap is. Based on that
information, it'll be easier to figure out what the next place to look
at is.

Robert


-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to