[Asterisk-Dev] Segmentation fault (core dumped)

Fabrício Zimmerer Murta avenger at buynet.com.br
Tue Dec 14 19:14:39 MST 2004


   As it looks like * don't goes down after the SIGSEGV, it may an module or
related to the H323 implementation you built for use with *.
   Well, try running everything (asterisk, any h323 daemon if so) with
strace, so you can see what might be causing the SIGSEGV to the module or
whatever it is.
   I get random SIGSEGVs on linux boxes mainly when physical memory or mobo
are not Okay... Perhaps when your module is loaded (or cleaned up) it may be
using a certain part of the memory which causes it to crash (it may be lured
to the same bad place of memory if it's need for memory allocation is way
big).

- Fabrício

----- Original Message ----- 
From: "Michael Manousos" <manousos at inaccessnetworks.com>
To: "Asterisk Developers Mailing List" <asterisk-dev at lists.digium.com>
Sent: Tuesday, December 14, 2004 8:42 AM
Subject: Re: [Asterisk-Dev] Segmentation fault (core dumped)


>
> For a start get a core backtrace with gdb.
>
> Michael.
>
>
> richard Coco wrote:
> > Hi all,
> >
> > here a thread that i posted in the users Mailinglist. Unfortunately
nobody answered. Hope somebody can help. If needed i can send a core dump
too (... but about 9M).
> >
> > thx in advance....
> >
> > Hi all,
> >
> > this is my actuel setup
> >
> > [SIP 2005]--[asterisk]--H.323 Trunk--[PBX]--[ext. 8900]
> >
> > Linux CentOS 3.3 (2.4.21-20.EL.c0)
> > asterisk-1.0.1
> > asterisk-oh323-0.6.3b
> > openh323_1.12.2
> > pwlib_1.5.2
> >
> > Calling from SIPphone to the extension 8900 works always.
> > Calling from 8900 to SIPphone works only sporadicly without any
recognizeable pattern.
> > Find below the output of the debug command:  asterisk -vvvcdg
> >
> > *CLI> Dec 13 12:36:19 DEBUG[-1220658256]: chan_oh323.c:3218
cleanup_h323_connection: ENTER cleanup_h323_connection.
> > Dec 13 12:36:19 WARNING[-1220658256]: chan_oh323.c:3232
cleanup_h323_connection: Call ip$192.168.204.130:2024/26923 not found.
> > Dec 13 12:36:19 WARNING[-1220658256]: chan_oh323.c:3232
cleanup_h323_connection: Call ip$192.168.204.130:2024/26923 not found.
> > Dec 13 12:36:19 DEBUG[-1220658256]: chan_oh323.c:3234
cleanup_h323_connection: LEAVE cleanup_h323_connection.
> > Segmentation fault (core dumped)
> >
> > *CLI>   0:59.372            H225 Answer:997cc90 PWLib   Assertion fail:
Null pointer reference, file /usr/src/openh323/src/h225_1.cxx, line 360,
Error=22
> > <A>bort, <C>ore dump, <I>gnore?
> >
> >
> > and here a debug output from a successfull call setup
> >
> > *CLI> Dec 13 13:13:05 DEBUG[-1275274320]: chan_oh323.c:3381
init_h323_connection: ENTER init_h323_connection.
> > Dec 13 13:13:05 DEBUG[-1275274320]: chan_oh323.c:2201 new_oh323: Player
fds 32,33 - Recorder fds 34,35 - Event pipe 36,37.
> > Dec 13 13:13:05 DEBUG[-1275274320]: chan_oh323.c:3445
init_h323_connection: Created new call in 0.
> > Dec 13 13:13:05 DEBUG[-1275274320]: chan_oh323.c:2678
copy_call_details: --- CALL DETAILS ---
> > Dec 13 13:13:05 DEBUG[-1275274320]: chan_oh323.c:2679 copy_call_details:
call_token = 'ip$192.168.204.130:2206/27015'
> > Dec 13 13:13:05 DEBUG[-1275274320]: chan_oh323.c:2680 copy_call_details:
call_source_alias = 'ܨÜ
> >
, 9205,0721*8 []'
> > Dec 13 13:13:05 DEBUG[-1275274320]: chan_oh323.c:2681 copy_call_details:
call_dest_alias = '2005        '
> > Dec 13 13:13:05 DEBUG[-1275274320]: chan_oh323.c:2682 copy_call_details:
call_source_e164 = '8900'
> > Dec 13 13:13:05 DEBUG[-1275274320]: chan_oh323.c:2683 copy_call_details:
call_dest_e164 = '2005'
> > Dec 13 13:13:05 DEBUG[-1275274320]: chan_oh323.c:2684 copy_call_details:
remote_app = '         118.67/30593'
> > Dec 13 13:13:05 DEBUG[-1275274320]: chan_oh323.c:2685 copy_call_details:
remote_addr = '192.168.204.130'
> > Dec 13 13:13:05 DEBUG[-1275274320]: chan_oh323.c:2686 copy_call_details:
local_addr = '192.168.204.223'
> > Dec 13 13:13:05 DEBUG[-1275274320]: chan_oh323.c:2334 ast_oh323_new:
OH323/R27015: Raw format set to ALAW.
> > Dec 13 13:13:05 DEBUG[-1275274320]: chan_oh323.c:2423 ast_oh323_new:
Context is 'voip-h323', extension is '2005'.
> > Dec 13 13:13:05 DEBUG[-1275274320]: chan_oh323.c:2426 ast_oh323_new:
CallerID/ANI is '"ܨÜ
> >
, 9205,0721*8 " <8900>'.
> > Dec 13 13:13:05 DEBUG[-1296254032]: pbx.c:1260 pbx_extension_helper:
Launching 'Dial'
> > Dec 13 13:13:05 DEBUG[-1296254032]: app_dial.c:490 dial_exec: SIMPLE
DIAL (NO URL)
> > Dec 13 13:13:05 DEBUG[-1296254032]: chan_sip.c:2395 sip_alloc:
Allocating new SIP call for (null)
> > Dec 13 13:13:05 DEBUG[-1296254032]: chan_sip.c:1295 create_addr: Setting
NAT on RTP to 0
> > Urgent handler
> > Dec 13 13:13:05 DEBUG[-1296254032]: chan_sip.c:1536 sip_call: Outgoing
Call for 2005
> > Dec 13 13:13:05 DEBUG[-1296254032]: chan_sip.c:1669 update_user_counter:
Call from user '2005' is 1 out of 0
> >     -- Called 2005
> > Urgent handler
> > Dec 13 13:13:05 DEBUG[-1296254032]: chan_oh323.c:1136 oh323_indicate:
OH323/R27015: Indicating condition 3.
> > Dec 13 13:13:05 DEBUG[-1275274320]: chan_oh323.c:3460
init_h323_connection: OH323/R27015: Channel created and attached.
> > Dec 13 13:13:05 DEBUG[-1275274320]: chan_oh323.c:3462
init_h323_connection: NEW STATE: NULL --> RING
> > Dec 13 13:13:05 DEBUG[-1275274320]: chan_oh323.c:3492
init_h323_connection: LEAVE init_h323_connection.
> > Dec 13 13:13:05 DEBUG[-1285764176]: chan_oh323.c:3027
setup_h323_connection: ENTER setup_h323_connection.
> > Dec 13 13:13:05 DEBUG[-1285764176]: chan_oh323.c:3034
setup_h323_connection: PLAYER.
> > Dec 13 13:13:05 DEBUG[-1285764176]: chan_oh323.c:3078
setup_h323_connection: Request to open an existing channel 0 with no
established direction.
> > Dec 13 13:13:05 DEBUG[-1285764176]: chan_oh323.c:2678
copy_call_details: --- CALL DETAILS ---
> > Dec 13 13:13:05 DEBUG[-1285764176]: chan_oh323.c:2679 copy_call_details:
call_token = 'ip$192.168.204.130:2206/27015'
> > Dec 13 13:13:05 DEBUG[-1285764176]: chan_oh323.c:2680 copy_call_details:
call_source_alias = 'ܨÜ
> >
, 9205,0721*8 []'
> > Dec 13 13:13:05 DEBUG[-1285764176]: chan_oh323.c:2681 copy_call_details:
call_dest_alias = '2005        '
> > Dec 13 13:13:05 DEBUG[-1285764176]: chan_oh323.c:2682 copy_call_details:
call_source_e164 = '8900'
> > Dec 13 13:13:05 DEBUG[-1285764176]: chan_oh323.c:2683 copy_call_details:
call_dest_e164 = '2005'
> > Dec 13 13:13:05 DEBUG[-1285764176]: chan_oh323.c:2684 copy_call_details:
remote_app = '         118.67/30593'
> > Dec 13 13:13:05 DEBUG[-1285764176]: chan_oh323.c:2685 copy_call_details:
remote_addr = '192.168.204.130'
> > Dec 13 13:13:05 DEBUG[-1285764176]: chan_oh323.c:2686 copy_call_details:
local_addr = '192.168.204.223'
> > Dec 13 13:13:05 DEBUG[-1285764176]: chan_oh323.c:3090
setup_h323_connection: Player fd 33 sent.
> > Dec 13 13:13:05 DEBUG[-1285764176]: chan_oh323.c:3111
setup_h323_connection: Setting channel's native format to ALAW!
> >
> > any ideas?
> > Thanx
> >
> > extensions.conf
> > exten => 2005,1,NoOp( call for  ${EXTEN})
> > exten => 2005,1,Dial(SIP/${EXTEN},60,tr)
> > exten => 2005,3,Congestion
> >
> > exten => _8XXX,1,Dial,OH323/h323:${EXTEN}@192.168.204.130,tr
> >
> > [voip-h323]
> > include => default
> >
> _______________________________________________
> 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