[asterisk-users] How to debug this specific issue?
Steve Davies
davies147 at gmail.com
Tue Aug 24 08:34:01 CDT 2010
On 24 August 2010 08:07, Stefan Schmidt <sst at sil.at> wrote:
> Steve Davies schrieb:
>> On 23 August 2010 18:32, Stefan Schmidt <sst at sil.at> wrote:
>>
>>> hello,
>>>
>>> have you allready tried strace ?
>>> you could just easily start asterisk with this command:
>>>
>>> strace asterisk -vvvvdddd
>>>
>>
>> Yes, I tried this. Output just stops along with everything else and
>> there are no clues.
>>
> if you know in which function this happens you could also patch some
> ast_verbose rows into this function to see where it happens.
>
> another thing you could try is using gprof to see which functions waste
> much time. for this you need to compile asterisk like this:
> make ASTCFLAGS="-pg" ASTLDFLAGS="-pg"
> make install
>
> after this you will see a gmon.out file in the directory from where you
> have started asterisk (your home) and then you could use gprof with this
> gmon.out file.
>
> maybe you will find something with this.
I found that doing a build with debug symbols included and running
under gdb slowed down asterisk enough for me to get debug output.
Thanks for the pointers. I'll start a separate thread on working out
what the hell is going on :)
Cheers,
Steve
More information about the asterisk-users
mailing list