FreeSWITCH dying with no core file
Hi all, I use FreeSWITCH exclusively for high-volume fax, both sending and receiving, and I've been running into a sporadic issue where the FreeSWITCH process will die with nothing in the logs to indicate an issue and no core file anywhere on the system. I'm setting "ulimit -c unlimited" in my init script, so I would expect to see a core file. Version: FreeSWITCH Version 1.2.0-rc2+git~20120713T162602Z~0afd7318bd+unclean~20120713T182401Z is where I've seen this occur most frequently. I would update to latest git and retry, but as I said, this issue is sporadic and by the time it happens again I'll have yet *another* git to update to. Right now I'm just trying to collect more information, as all I can tell is that crashes occur when there are dozens-to-hundreds of sending faxes, which is almost all the time during business hours. I was running a version from February, 2012 for months and months and I can't ever remember seeing this happen. Is there a way of obtaining more crash information I'm overlooking? Is my only option running gcore and crossing my fingers? Many thanks, Adam Johnston
Hi all, i have setup a voicechat. The extension name is: dorf. my Domain: telco01.blindi.net I like to call: dorf@telco01.blindi.net from outside for all unregistered users. then i call this extension, Fs bring the errormessage: 2012-07-27 21:46:09.295221 [DEBUG] sofia.c:8069 IP 188.193.24.39 Rejected by acl "domains". Falling back to Digest auth. 2012-07-27 21:46:09.295221 [WARNING] sofia_reg.c:1474 SIP auth challenge (INVITE ) on sofia profile 'internal' for [dorf@telco01.blindi.net] from ip 188.193.24.3 9 2012-07-27 21:46:09.329205 [DEBUG] sofia.c:8069 IP 188.193.24.39 Rejected by acl "domains". Falling back to Digest auth. 2012-07-27 21:46:09.329205 [WARNING] sofia_reg.c:2442 Can't find user [699@telco01.blindi.net] You must define a domain called 'telco01.blindi.net' in your directory and add a user with the id="699" attribute and you must configure your device to use the proper domain in it's authenticati on credentials. 2012-07-27 21:46:09.329205 [WARNING] sofia_reg.c:1419 SIP auth failure (INVITE) on sofia profile 'internal' for [dorf@telco01.blindi.net] from ip 188.193.24.39 Fail2ban block my Ip. How can i setup these extension for public inbound correctly please? thanks. --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
Hi Guy, the problem is: for example: i have e ivr extension 1020 my outboundextension is: 1000 i dial from 1000 to 1001 the firstprompt is hacked "welcome to ivr". the secondprompt playd correctly. I have the last git. The System is a core i7, 24mb ram. debian squeeze amd64. I think this is a timing problem. I don.t no. the voice play very slowly, clearly, and hacked. Can you help please? thanks. --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
Hi guys, i have setup a fs. my extension is 1000 This extension is accessible by registered users. But unfortunately, not from outside. I call the extension from the world: 1000@telco01.blindi.net The errormessage is: 2012-07-29 14:43:52.261937 [DEBUG] sofia.c:8071 IP 84.200.210.158 Rejected by ac l "domains". Falling back to Digest auth. 2012-07-29 14:43:52.261937 [WARNING] sofia_reg.c:1474 SIP auth challenge (INVITE ) on sofia profile 'internal' for [1000@telco01.blindi.net] from ip 84.200.210.1 58 What cahn i do please? I like to reach my extension 1000 from any. Thanks. --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
Seems like you need to edit your acl list to allow direct contact from that ip address. On Sun, Jul 29, 2012 at 8:49 AM, Thomas Hoellriegel <admin@blindi.net>wrote:
Hi guys, i have setup a fs. my extension is 1000 This extension is accessible by registered users. But unfortunately, not from outside. I call the extension from the world: 1000@telco01.blindi.net The errormessage is: 2012-07-29 14:43:52.261937 [DEBUG] sofia.c:8071 IP 84.200.210.158 Rejected by ac l "domains". Falling back to Digest auth. 2012-07-29 14:43:52.261937 [WARNING] sofia_reg.c:1474 SIP auth challenge (INVITE ) on sofia profile 'internal' for [1000@telco01.blindi.net] from ip 84.200.210.1 58
What cahn i do please? I like to reach my extension 1000 from any. Thanks.
--------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/**listinfo/blinde-misc<http://www.blindi.net/mailman/listinfo/blinde-misc>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
To receive inbound calls to internal profile (port 5060) you need to use acl for incoming ip address (auth-call=true, apply-inbound-acl=domains) or better way to use external profile (port 5080, auth-calls=false) to receive inbound calls. Just edit public context to match 1000 destination number. 2012/7/29 BookBag <asaad2@gmail.com>
Seems like you need to edit your acl list to allow direct contact from that ip address.
On Sun, Jul 29, 2012 at 8:49 AM, Thomas Hoellriegel <admin@blindi.net>wrote:
Hi guys, i have setup a fs. my extension is 1000 This extension is accessible by registered users. But unfortunately, not from outside. I call the extension from the world: 1000@telco01.blindi.net The errormessage is: 2012-07-29 14:43:52.261937 [DEBUG] sofia.c:8071 IP 84.200.210.158 Rejected by ac l "domains". Falling back to Digest auth. 2012-07-29 14:43:52.261937 [WARNING] sofia_reg.c:1474 SIP auth challenge (INVITE ) on sofia profile 'internal' for [1000@telco01.blindi.net] from ip 84.200.210.1 58
What cahn i do please? I like to reach my extension 1000 from any. Thanks.
--------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/**listinfo/blinde-misc<http://www.blindi.net/mailman/listinfo/blinde-misc>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi guys, I like to import variables from xml dialplan in lua. I found: session:getVariable. the problem: i can only get variables from the lua wiki page. But different variables for example: strftime or from: vars.xml : sound_prefix can.t be get. Or timeconditions don.t working in lua. Can your help please? thanks --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
try variable_sound_prefix http://wiki.freeswitch.org/wiki/Channel_Variables On Monday, July 30, 2012 at 3:22 PM, Thomas Hoellriegel wrote:
Hi guys, I like to import variables from xml dialplan in lua. I found: session:getVariable. the problem: i can only get variables from the lua wiki page. But different variables for example: strftime or from: vars.xml : sound_prefix can.t be get.
Or timeconditions don.t working in lua.
Can your help please? thanks
--------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org (mailto:consulting@freeswitch.org) http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org (mailto:FreeSWITCH-users@lists.freeswitch.org) http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi Seven, Thanks! its works --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
Hi Seven, thanks for you nice help. I have set the variables from the xml dialplan. tnaks! --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
The following code worked for me: myvar = session:getVariable('sound_prefix') freeswitch.consoleLog('WARNING',"The sound_prefix variable contains '" .. myvar .. "'\n") with dialplan: <extension name="Lua vars test"> <condition field="destination_number" expression="^(9906)$"> <action application="answer"/> <action application="lua" data="vars.lua"/> <action application="hangup"/> </condition> </extension> -MC On Mon, Jul 30, 2012 at 12:22 AM, Thomas Hoellriegel <admin@blindi.net>wrote:
Hi guys, I like to import variables from xml dialplan in lua. I found: session:getVariable. the problem: i can only get variables from the lua wiki page. But different variables for example: strftime or from: vars.xml : sound_prefix can.t be get.
Or timeconditions don.t working in lua.
Can your help please? thanks
--------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/**listinfo/blinde-misc<http://www.blindi.net/mailman/listinfo/blinde-misc>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
Hi Michael, thanks for you nice help. The script work perfect. --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
Hi BookBag Thanks for your help, the extension works --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07/27/12 21:34, Adam Johnston wrote:
I use FreeSWITCH exclusively for high-volume fax, both sending and receiving, and I've been running into a sporadic issue where the FreeSWITCH process will die with nothing in the logs to indicate an issue and no core file anywhere on the system. I'm setting "ulimit -c unlimited" in my init script, so I would expect to see a core file. Version: FreeSWITCH Version 1.2.0-rc2+git~20120713T162602Z~0afd7318bd+unclean~20120713T182401Z
You need to set /proc/sys/fs/suid_dumpable to a non-zero value (see man 5 proc), to enable core dumping for processes that switch their UID on startup (such as freeswitch with -u option). By default, the freeswitch process will try to put the core file into the CWD (current work directory), so make sure the UID it is running as can write there (or "cd" into a different directory before starting it). You might also want to check out man 5 core, for all the other options (e.g. piping core dumps into a custom handler, with core_pattern). -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlATASwACgkQjiIIAK4rYUrjvQCgh1grtcBfPVhbZNw8tdQpsyda 614Amwb1pKDFL93dU33cy2wj1FNYYnzJ =0Xqk -----END PGP SIGNATURE-----
I'll also give that a go as I have similar random restarts. On 27 July 2012 21:59, Stefan Knoblich <stkn@freeswitch.org> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 07/27/12 21:34, Adam Johnston wrote:
I use FreeSWITCH exclusively for high-volume fax, both sending and receiving, and I've been running into a sporadic issue where the FreeSWITCH process will die with nothing in the logs to indicate an issue and no core file anywhere on the system. I'm setting "ulimit -c unlimited" in my init script, so I would expect to see a core file. Version: FreeSWITCH Version 1.2.0-rc2+git~20120713T162602Z~0afd7318bd+unclean~20120713T182401Z
You need to set /proc/sys/fs/suid_dumpable to a non-zero value (see man 5 proc), to enable core dumping for processes that switch their UID on startup (such as freeswitch with -u option).
By default, the freeswitch process will try to put the core file into the CWD (current work directory), so make sure the UID it is running as can write there (or "cd" into a different directory before starting it). You might also want to check out man 5 core, for all the other options (e.g. piping core dumps into a custom handler, with core_pattern).
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlATASwACgkQjiIIAK4rYUrjvQCgh1grtcBfPVhbZNw8tdQpsyda 614Amwb1pKDFL93dU33cy2wj1FNYYnzJ =0Xqk -----END PGP SIGNATURE-----
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director *T <info@cassidywebservices.co.uk> *03300 100 960 *F<info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
Andrew Cassidy <andrew@cassidywebservices.co.uk> wrote:
I'll also give that a go as I have similar random restarts.
On 27 July 2012 21:59, Stefan Knoblich <stkn@freeswitch.org> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 07/27/12 21:34, Adam Johnston wrote:
I use FreeSWITCH exclusively for high-volume fax, both sending and receiving, and I've been running into a sporadic issue where the FreeSWITCH process will die with nothing in the logs to indicate an issue and no core file anywhere on the system. I'm setting "ulimit -c unlimited" in my init script, so I would expect to see a core file. Version: FreeSWITCH Version 1.2.0-rc2+git~20120713T162602Z~0afd7318bd+unclean~20120713T182401Z
You need to set /proc/sys/fs/suid_dumpable to a non-zero value (see man 5 proc), to enable core dumping for processes that switch their UID on startup (such as freeswitch with -u option).
By default, the freeswitch process will try to put the core file into the CWD (current work directory), so make sure the UID it is running as can write there (or "cd" into a different directory before starting it). You might also want to check out man 5 core, for all the other options (e.g. piping core dumps into a custom handler, with core_pattern).
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlATASwACgkQjiIIAK4rYUrjvQCgh1grtcBfPVhbZNw8tdQpsyda 614Amwb1pKDFL93dU33cy2wj1FNYYnzJ =0Xqk -----END PGP SIGNATURE-----
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thanks much for that tip -- I had never heard of that parameter, maybe it should be in the wiki in the section about getting a backtrace. -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com
Thanks much for that tip -- I had never heard of that parameter, maybe it should be in the wiki in the section about getting a backtrace.
Crude but effective: http://wiki.freeswitch.org/wiki/Reporting_Bugs#Important_Note
That did it. My sporadic crash happened again and, sure enough, there's a core file. Thanks again, Adam Johnston On Fri, Jul 27, 2012 at 4:59 PM, Stefan Knoblich <stkn@freeswitch.org>wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 07/27/12 21:34, Adam Johnston wrote:
I use FreeSWITCH exclusively for high-volume fax, both sending and receiving, and I've been running into a sporadic issue where the FreeSWITCH process will die with nothing in the logs to indicate an issue and no core file anywhere on the system. I'm setting "ulimit -c unlimited" in my init script, so I would expect to see a core file. Version: FreeSWITCH Version 1.2.0-rc2+git~20120713T162602Z~0afd7318bd+unclean~20120713T182401Z
You need to set /proc/sys/fs/suid_dumpable to a non-zero value (see man 5 proc), to enable core dumping for processes that switch their UID on startup (such as freeswitch with -u option).
By default, the freeswitch process will try to put the core file into the CWD (current work directory), so make sure the UID it is running as can write there (or "cd" into a different directory before starting it). You might also want to check out man 5 core, for all the other options (e.g. piping core dumps into a custom handler, with core_pattern).
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlATASwACgkQjiIIAK4rYUrjvQCgh1grtcBfPVhbZNw8tdQpsyda 614Amwb1pKDFL93dU33cy2wj1FNYYnzJ =0Xqk -----END PGP SIGNATURE-----
Hi, what have you done with the core file? On 31 July 2012 21:16, Adam Johnston <ajohnston@blimessaging.com> wrote:
That did it. My sporadic crash happened again and, sure enough, there's a core file.
Thanks again, Adam Johnston
On Fri, Jul 27, 2012 at 4:59 PM, Stefan Knoblich <stkn@freeswitch.org>wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 07/27/12 21:34, Adam Johnston wrote:
I use FreeSWITCH exclusively for high-volume fax, both sending and receiving, and I've been running into a sporadic issue where the FreeSWITCH process will die with nothing in the logs to indicate an issue and no core file anywhere on the system. I'm setting "ulimit -c unlimited" in my init script, so I would expect to see a core file. Version: FreeSWITCH Version 1.2.0-rc2+git~20120713T162602Z~0afd7318bd+unclean~20120713T182401Z
You need to set /proc/sys/fs/suid_dumpable to a non-zero value (see man 5 proc), to enable core dumping for processes that switch their UID on startup (such as freeswitch with -u option).
By default, the freeswitch process will try to put the core file into the CWD (current work directory), so make sure the UID it is running as can write there (or "cd" into a different directory before starting it). You might also want to check out man 5 core, for all the other options (e.g. piping core dumps into a custom handler, with core_pattern).
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlATASwACgkQjiIIAK4rYUrjvQCgh1grtcBfPVhbZNw8tdQpsyda 614Amwb1pKDFL93dU33cy2wj1FNYYnzJ =0Xqk -----END PGP SIGNATURE-----
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director *T <info@cassidywebservices.co.uk> *03300 100 960 *F<info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
Andrew, I loaded the core file into gdb and looked at the backtrace. It turns out that the problem was not in the FreeSWITCH code but rather in LuaSocket, and the error was thrown while I was caching fax results in a key-value store using a Lua script. My issue was very similar to this Jira: http://jira.freeswitch.org/browse/FS-2893. I recompiled LuaSocket with the FreeSWITCH includes and am hoping that fixes things. Adam On Wed, Aug 1, 2012 at 11:27 AM, Andrew Cassidy < andrew@cassidywebservices.co.uk> wrote:
Hi, what have you done with the core file?
On 31 July 2012 21:16, Adam Johnston <ajohnston@blimessaging.com> wrote:
That did it. My sporadic crash happened again and, sure enough, there's a core file.
Thanks again, Adam Johnston
On Fri, Jul 27, 2012 at 4:59 PM, Stefan Knoblich <stkn@freeswitch.org>wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 07/27/12 21:34, Adam Johnston wrote:
I use FreeSWITCH exclusively for high-volume fax, both sending and receiving, and I've been running into a sporadic issue where the FreeSWITCH process will die with nothing in the logs to indicate an issue and no core file anywhere on the system. I'm setting "ulimit -c unlimited" in my init script, so I would expect to see a core file. Version: FreeSWITCH Version 1.2.0-rc2+git~20120713T162602Z~0afd7318bd+unclean~20120713T182401Z
You need to set /proc/sys/fs/suid_dumpable to a non-zero value (see man 5 proc), to enable core dumping for processes that switch their UID on startup (such as freeswitch with -u option).
By default, the freeswitch process will try to put the core file into the CWD (current work directory), so make sure the UID it is running as can write there (or "cd" into a different directory before starting it). You might also want to check out man 5 core, for all the other options (e.g. piping core dumps into a custom handler, with core_pattern).
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlATASwACgkQjiIIAK4rYUrjvQCgh1grtcBfPVhbZNw8tdQpsyda 614Amwb1pKDFL93dU33cy2wj1FNYYnzJ =0Xqk -----END PGP SIGNATURE-----
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
*T <info@cassidywebservices.co.uk> *03300 100 960 *F<info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thanks. Ok it doesn't sound related to my problem unfortunately :( I'll have to persevere! On 1 August 2012 17:04, Adam Johnston <ajohnston@blimessaging.com> wrote:
Andrew,
I loaded the core file into gdb and looked at the backtrace. It turns out that the problem was not in the FreeSWITCH code but rather in LuaSocket, and the error was thrown while I was caching fax results in a key-value store using a Lua script. My issue was very similar to this Jira: http://jira.freeswitch.org/browse/FS-2893. I recompiled LuaSocket with the FreeSWITCH includes and am hoping that fixes things.
Adam
On Wed, Aug 1, 2012 at 11:27 AM, Andrew Cassidy < andrew@cassidywebservices.co.uk> wrote:
Hi, what have you done with the core file?
On 31 July 2012 21:16, Adam Johnston <ajohnston@blimessaging.com> wrote:
That did it. My sporadic crash happened again and, sure enough, there's a core file.
Thanks again, Adam Johnston
On Fri, Jul 27, 2012 at 4:59 PM, Stefan Knoblich <stkn@freeswitch.org>wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 07/27/12 21:34, Adam Johnston wrote:
I use FreeSWITCH exclusively for high-volume fax, both sending and receiving, and I've been running into a sporadic issue where the FreeSWITCH process will die with nothing in the logs to indicate an issue and no core file anywhere on the system. I'm setting "ulimit -c unlimited" in my init script, so I would expect to see a core file. Version: FreeSWITCH Version 1.2.0-rc2+git~20120713T162602Z~0afd7318bd+unclean~20120713T182401Z
You need to set /proc/sys/fs/suid_dumpable to a non-zero value (see man 5 proc), to enable core dumping for processes that switch their UID on startup (such as freeswitch with -u option).
By default, the freeswitch process will try to put the core file into the CWD (current work directory), so make sure the UID it is running as can write there (or "cd" into a different directory before starting it). You might also want to check out man 5 core, for all the other options (e.g. piping core dumps into a custom handler, with core_pattern).
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlATASwACgkQjiIIAK4rYUrjvQCgh1grtcBfPVhbZNw8tdQpsyda 614Amwb1pKDFL93dU33cy2wj1FNYYnzJ =0Xqk -----END PGP SIGNATURE-----
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
*T <info@cassidywebservices.co.uk> *03300 100 960 *F<info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director *T <info@cassidywebservices.co.uk> *03300 100 960 *F<info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
participants (9)
-
Adam Johnston
-
Andrew Cassidy
-
Anton Kvashenkin
-
BookBag
-
covici@ccs.covici.com
-
Michael Collins
-
Seven Du
-
Stefan Knoblich
-
Thomas Hoellriegel