[Asterisk-Users] Crash without "make valgrind"

Benjamin Lawetz blawetz at teliphone.ca
Wed Jul 6 14:31:02 MST 2005


Well without valgrind
Running asterisk from gdb (sorry a bit of a newbie with linux debugging)
When doing a backtrace on the crash I get the following:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 213005 (LWP 9886)]
0x08074ef0 in ast_extension_match ()
(gdb) bt
#0  0x08074ef0 in ast_extension_match ()
#1  0x08075ade in pbx_substitute_variables_helper ()
#2  0x08075d85 in pbx_substitute_variables_helper ()
#3  0x0807c4e3 in ast_context_verify_includes ()
#4  0x0807b346 in ast_spawn_extension ()
#5  0xb6b932b4 in key () from /usr/lib/asterisk/modules/app_macro.so
#6  0x0807455f in pbx_exec ()
#7  0x0807c65b in ast_context_verify_includes ()
#8  0x080765cb in ast_pbx_run ()
#9  0x0807ccb1 in ast_context_verify_includes ()
#10 0xb7f9618e in pthread_start_thread () from /lib/libpthread.so.0
#11 0xb7f96332 in pthread_start_thread_event () from /lib/libpthread.so.0
#12 0xb7e80fea in clone () from /lib/libc.so.6

Don't know how to get any further in the debugging though, any hints ?

Thanks for your help


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Brian West
Sent: July 6, 2005 2:43 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Crash without "make valgrind"

Well you could get a backtrace of the core to give us a little bit of clue
why its crashing!

/b
---
Anakin: "You're either with me, or you're my enemy."
Obi-Wan: "Only a Sith could be an absolutist."

On Jul 6, 2005, at 10:44 AM, Benjamin Lawetz wrote:

> I'm having a little problem. I have a dial-plan with a lot of SetVar's 
> and loops, and under certain circumstances (reproducible) it makes 
> asterisk crash. Wanting to debug this, I compiled using "make 
> valgrind". But doing so, I eliminated the crashes and the dial-plan 
> works perfectly.
>
> Now from what I understand, valgrind removes compiler optimisation to 
> ease debugging. What kind of optimisation does it remove? Anybody know 
> what could be happening to have a crashwith a standard make and not 
> have it with valgrind?
>
> My original setup was a asterisk-1.0.7 emerged on gentoo. Tried 
> updating to the 1.0.8 ebuild, and then tried the tarball for 1.0.9 on 
> a 2.6.11 kernel.
>
> Thanks for your help
>
> --
> Benjamin
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users






More information about the asterisk-users mailing list