[Asterisk-Dev] deadlock / can't debug

Brian West brian at bkw.org
Mon Jan 31 14:22:22 MST 2005


If I recall RH uses/backported NPTL threads which can be a bitch to debug on
some systems if not setup correctly...

export KERNEL_ASSUME=2.4.20

start asterisk

Then try to deadlock it... that should cause your system to use
linux-threads instead of NPTL.

bkw

----- Original Message ----- 
From: "Matthew Boehm" <mboehm at cytelcom.com>
To: <asterisk-dev at lists.digium.com>
Sent: Monday, January 31, 2005 2:45 PM
Subject: [Asterisk-Dev] deadlock / can't debug


>I reached a point again with chan_agent and app_queue where agents are not
> able to login/logoff and channels just get created and never destroyed.
> "soft hangup <channel>" doesn't do anything at all.
>
> So I did this:
>
> [root at asterisk cytrex]# gdb /usr/sbin/asterisk 5658
> GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
> Copyright 2003 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you 
> are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for 
> details.
> This GDB was configured as "i386-redhat-linux-gnu"...
> Attaching to program: /usr/sbin/asterisk, process 5658
> thread apply all bt
>
>
> Never got anything back from gdb. Didn't even get gdb's cli.
>
> any other methods for debuging?
>
> -Matthew
>
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev 




More information about the asterisk-dev mailing list