[Freeswitch-users] FS 1.0.2 Crash and burn

Nik Middleton nik.middleton at noblesolutions.co.uk
Wed Feb 11 11:35:25 PST 2009


I was running in a screen session, so going back to the console it shows
it's a seg fault

 

2009-02-11 19:27:53 [NOTICE] sofia.c:3090 sofia_handle_sip_i_state()
Hangup sofia/internal/1001 at 192.168.3.206 [CS_EXECUTE] [NORMAL_CLEARING]

Segmentation fault (core dumped)

 

Seg fault occurs on hangup

 

What seems to be causing the problem is an insert statement.

 

Note I'm using the protected call function to trap on any sql error
(script will abort on error otherwise) but even calling it unprotected,
the result is the same.

 

function updatecall()

            query = "INSERT INTO CONTACT  phonenum, group values
0771111111111, " .. CALLER ;

            freeswitch.consoleLog("info", query.."\n");

            res = assert (con:execute(query));

            if unexpected_condition then error() end

 

end

 

 

if type == "dtmf" and obj['digit'] == '9'  then

        CALL_STATUS = "ORDER";

        pcall(updateDNC);

      session:streamFile("wait48.wav");

     return "break";

end

 

 

function myHangupHook(s, status, arg)

            freeswitch.consoleLog("info", " : They hung up on US!!!\n");

            con:close()

            env:close() 

            

end

 

 

________________________________

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
Brian West
Sent: 11 February 2009 19:18
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] FS 1.0.2 Crash and burn

 

Can you show us what you're doing?

 

/b

 

On Feb 11, 2009, at 1:15 PM, Nik Middleton wrote:





I have a situation where FS aborts

 

I'm running an lua script with mysql statements

 

First time it runs, on hangup I get

 

[CONSOLE] switch_core_memory.c:374 switch_core_memory_reclaim()
Returning 4 recycled memory pool(s)

 

If I run it again, FS exits.

 

Should there be an error log somewhere that explains why FS dies?

 

Regards,

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090211/ceb3bc31/attachment.html 


More information about the Freeswitch-users mailing list