FreeSWITCH crashed on signal 11
Hi, I have an FS machine running on FreeBSD system with Digium 8-span PRI card. PRI line is plugged only on span 1. Everything was running fine until all the channels got alarms suddenly and mod_ftdm attempted to restart them. But while restarting FS crashed. /var/log/messages show: *Jun 14 12:36:03 ivrfr kernel: pid 759 (freeswitch), uid 0: exited on signal 11 (core dumped)* * * I am attaching the messages file herewith. Please throw some light on what might have happened. -- Ashish Gautam Nucleus Microsystems (Pvt.) Ltd. Ph. 011 47574758
Its a segfault as dump shows: *Program terminated with signal 11, Segmentation fault.* *#0 0x0000000801996204 in ?? ()* * * what happened and how to avoid it in future. On Fri, Jun 14, 2013 at 1:20 PM, Ashish gautam <ashish@nms.co.in> wrote:
Hi,
I have an FS machine running on FreeBSD system with Digium 8-span PRI card. PRI line is plugged only on span 1.
Everything was running fine until all the channels got alarms suddenly and mod_ftdm attempted to restart them. But while restarting FS crashed. /var/log/messages show:
*Jun 14 12:36:03 ivrfr kernel: pid 759 (freeswitch), uid 0: exited on signal 11 (core dumped)* * * I am attaching the messages file herewith. Please throw some light on what might have happened.
-- Ashish Gautam
Nucleus Microsystems (Pvt.) Ltd.
Ph. 011 47574758
-- Ashish Gautam Nucleus Microsystems (Pvt.) Ltd. Ph. 011 47574758
First of all, make sure you are using latest stable branch, or latest master. If the problem still exists, submit a report to Jira. A crash is always a bug - and bugs must always be reported to Jira, this is to help the developers track the issues. However, first of all you'll need to make sure it happened in the current version of the code. If you need to submit to Jira, make sure to attach a backtrace when in happened. /Peter 2013/6/14 Ashish gautam <ashish@nms.co.in>
Its a segfault as dump shows:
*Program terminated with signal 11, Segmentation fault.* *#0 0x0000000801996204 in ?? ()* * * what happened and how to avoid it in future.
On Fri, Jun 14, 2013 at 1:20 PM, Ashish gautam <ashish@nms.co.in> wrote:
Hi,
I have an FS machine running on FreeBSD system with Digium 8-span PRI card. PRI line is plugged only on span 1.
Everything was running fine until all the channels got alarms suddenly and mod_ftdm attempted to restart them. But while restarting FS crashed. /var/log/messages show:
*Jun 14 12:36:03 ivrfr kernel: pid 759 (freeswitch), uid 0: exited on signal 11 (core dumped)* * * I am attaching the messages file herewith. Please throw some light on what might have happened.
-- Ashish Gautam
Nucleus Microsystems (Pvt.) Ltd.
Ph. 011 47574758
-- Ashish Gautam
Nucleus Microsystems (Pvt.) Ltd.
Ph. 011 47574758
_________________________________________________________________________ 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
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
This is a segmentation fault, a crash due to a bug. Please upgrade to the latest git HEAD and reproduce the issue there (in case it is something already resolved). If you can reproduce it collect a backtrace from the coredump file and file a Jira with the backtrace attached. See the instructions at http://wiki.freeswitch.org/wiki/Reporting_Bugs#Creating_A_Backtrace_With_gdb.... That backtrace will show the developers where and why the crash happened. -Steve On 14 June 2013 14:50, Ashish gautam <ashish@nms.co.in> wrote:
Hi,
I have an FS machine running on FreeBSD system with Digium 8-span PRI card. PRI line is plugged only on span 1.
Everything was running fine until all the channels got alarms suddenly and mod_ftdm attempted to restart them. But while restarting FS crashed. /var/log/messages show:
*Jun 14 12:36:03 ivrfr kernel: pid 759 (freeswitch), uid 0: exited on signal 11 (core dumped)* * * I am attaching the messages file herewith. Please throw some light on what might have happened.
-- Ashish Gautam
Nucleus Microsystems (Pvt.) Ltd.
Ph. 011 47574758
_________________________________________________________________________ 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
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
*uid 0*
Also are you running FreeSWITCH as root? If so that's a *very* bad idea (generally for any server software). You should be running it as a dedicated user (freeswitch would be a good name). Otherwise any security hole found could be exploited to give full access to your server. -Steve On 14 June 2013 14:50, Ashish gautam <ashish@nms.co.in> wrote:
Hi,
I have an FS machine running on FreeBSD system with Digium 8-span PRI card. PRI line is plugged only on span 1.
Everything was running fine until all the channels got alarms suddenly and mod_ftdm attempted to restart them. But while restarting FS crashed. /var/log/messages show:
*Jun 14 12:36:03 ivrfr kernel: pid 759 (freeswitch), uid 0: exited on signal 11 (core dumped)* * * I am attaching the messages file herewith. Please throw some light on what might have happened.
-- Ashish Gautam
Nucleus Microsystems (Pvt.) Ltd.
Ph. 011 47574758
_________________________________________________________________________ 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
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 Steven, This is not a production server but just a testing server. Thanks for your suggestion, ofcourse I will run it with some different user on production. The freeswitch version I am using is 1.2 ( I have installed it through ports in FreeBSD). Can this crash/segfault somewhere be related to the OS platform I am using(not centOS) ? On Fri, Jun 14, 2013 at 1:32 PM, Steven Ayre <steveayre@gmail.com> wrote:
*uid 0*
Also are you running FreeSWITCH as root? If so that's a *very* bad idea (generally for any server software). You should be running it as a dedicated user (freeswitch would be a good name). Otherwise any security hole found could be exploited to give full access to your server.
-Steve
On 14 June 2013 14:50, Ashish gautam <ashish@nms.co.in> wrote:
Hi,
I have an FS machine running on FreeBSD system with Digium 8-span PRI card. PRI line is plugged only on span 1.
Everything was running fine until all the channels got alarms suddenly and mod_ftdm attempted to restart them. But while restarting FS crashed. /var/log/messages show:
*Jun 14 12:36:03 ivrfr kernel: pid 759 (freeswitch), uid 0: exited on signal 11 (core dumped)* * * I am attaching the messages file herewith. Please throw some light on what might have happened.
-- Ashish Gautam
Nucleus Microsystems (Pvt.) Ltd.
Ph. 011 47574758
_________________________________________________________________________ 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
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
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
-- Ashish Gautam Nucleus Microsystems (Pvt.) Ltd. Ph. 011 47574758
Ashish, What version of FreeBSD are you using? If you're using FreeBSD 9.0 you will need to apply a patch to the threading for the kernel otherwise you can get signal 11 core dumps. If you need it, I'll send it - this issue doesn't affect <= 8.3 (as far as I'm aware) or >= 9.1 (I can confirm it's fine for 9.1). This issue can affect other processes as well so it's best to apply it. If that isn't the case it could be faulty memory, usually compiling a few ports will lead to failures if it's bad memory though. Both of these happened to us recently! According to FreshPorts, FreeSwitch is version 1.0.6 (http://www.freshports.org/net/freeswitch-core/). I highly advise you don't use the one in the ports, but instead build it from source via GIT and install the dependencies via the ports (after a "portsnap fetch update"). Again, I can send you the ports needed to install to build it. Perhaps I should create a FreeBSD specific wiki for how to install FreeSwitch? The one on there now isn't very good. Could also include the kernel patch... FreeSwitch works perfectly under FreeBSD and I also have it running under a non-root account in a production environment. P.S. I apologise in advance for my signature which is required by our company policy in this e-mail. I've converted to plain-text to try and help. From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Ashish gautam Sent: 14 June 2013 12:47 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] FreeSWITCH crashed on signal 11 Thanks Steven, This is not a production server but just a testing server. Thanks for your suggestion, ofcourse I will run it with some different user on production. The freeswitch version I am using is 1.2 ( I have installed it through ports in FreeBSD). Can this crash/segfault somewhere be related to the OS platform I am using(not centOS) ? On Fri, Jun 14, 2013 at 1:32 PM, Steven Ayre <steveayre@gmail.com> wrote: uid 0 Also are you running FreeSWITCH as root? If so that's a very bad idea (generally for any server software). You should be running it as a dedicated user (freeswitch would be a good name). Otherwise any security hole found could be exploited to give full access to your server. -Steve On 14 June 2013 14:50, Ashish gautam <ashish@nms.co.in> wrote: Hi, I have an FS machine running on FreeBSD system with Digium 8-span PRI card. PRI line is plugged only on span 1. Everything was running fine until all the channels got alarms suddenly and mod_ftdm attempted to restart them. But while restarting FS crashed. /var/log/messages show: Jun 14 12:36:03 ivrfr kernel: pid 759 (freeswitch), uid 0: exited on signal 11 (core dumped) I am attaching the messages file herewith. Please throw some light on what might have happened. -- Ashish Gautam Nucleus Microsystems (Pvt.) Ltd. Ph. 011 47574758 Daniel Knaggs Software Developer Reality Solutions Ltd 1 Global Business Park Hamburg Road Kingston upon Hull East Yorkshire, HU7 0AE Tel: 01482 373104 Mobile: 07932 408313 Email: mailto:Daniel.Knaggs@realitysolutions.co.uk http:// _________________________________________________________________________ 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 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 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 -- Ashish Gautam Nucleus Microsystems (Pvt.) Ltd. Ph. 011 47574758
Daniel, I am using FreeBSD 9.1 Release so probably we are not having threading problems. Also we have downloaded and built the latest source from GIT. On Fri, Jun 14, 2013 at 5:59 PM, Daniel Knaggs < Daniel.Knaggs@realitysolutions.co.uk> wrote:
Ashish,
What version of FreeBSD are you using? If you're using FreeBSD 9.0 you will need to apply a patch to the threading for the kernel otherwise you can get signal 11 core dumps. If you need it, I'll send it - this issue doesn't affect <= 8.3 (as far as I'm aware) or >= 9.1 (I can confirm it's fine for 9.1). This issue can affect other processes as well so it's best to apply it. If that isn't the case it could be faulty memory, usually compiling a few ports will lead to failures if it's bad memory though. Both of these happened to us recently!
According to FreshPorts, FreeSwitch is version 1.0.6 ( http://www.freshports.org/net/freeswitch-core/). I highly advise you don't use the one in the ports, but instead build it from source via GIT and install the dependencies via the ports (after a "portsnap fetch update"). Again, I can send you the ports needed to install to build it. Perhaps I should create a FreeBSD specific wiki for how to install FreeSwitch? The one on there now isn't very good. Could also include the kernel patch...
FreeSwitch works perfectly under FreeBSD and I also have it running under a non-root account in a production environment.
P.S. I apologise in advance for my signature which is required by our company policy in this e-mail. I've converted to plain-text to try and help.
From: freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Ashish gautam Sent: 14 June 2013 12:47 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] FreeSWITCH crashed on signal 11
Thanks Steven,
This is not a production server but just a testing server. Thanks for your suggestion, ofcourse I will run it with some different user on production. The freeswitch version I am using is 1.2 ( I have installed it through ports in FreeBSD).
Can this crash/segfault somewhere be related to the OS platform I am using(not centOS) ?
On Fri, Jun 14, 2013 at 1:32 PM, Steven Ayre <steveayre@gmail.com> wrote: uid 0
Also are you running FreeSWITCH as root? If so that's a very bad idea (generally for any server software). You should be running it as a dedicated user (freeswitch would be a good name). Otherwise any security hole found could be exploited to give full access to your server.
-Steve
On 14 June 2013 14:50, Ashish gautam <ashish@nms.co.in> wrote: Hi,
I have an FS machine running on FreeBSD system with Digium 8-span PRI card. PRI line is plugged only on span 1.
Everything was running fine until all the channels got alarms suddenly and mod_ftdm attempted to restart them. But while restarting FS crashed. /var/log/messages show:
Jun 14 12:36:03 ivrfr kernel: pid 759 (freeswitch), uid 0: exited on signal 11 (core dumped)
I am attaching the messages file herewith. Please throw some light on what might have happened.
-- Ashish Gautam
Nucleus Microsystems (Pvt.) Ltd.
Ph. 011 47574758
Daniel Knaggs Software Developer
Reality Solutions Ltd 1 Global Business Park Hamburg Road Kingston upon Hull East Yorkshire, HU7 0AE
Tel: 01482 373104 Mobile: 07932 408313 Email: mailto:Daniel.Knaggs@realitysolutions.co.uk http://
_________________________________________________________________________ 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
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
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
-- Ashish Gautam
Nucleus Microsystems (Pvt.) Ltd.
Ph. 011 47574758
_________________________________________________________________________ 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
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
-- Ashish Gautam Nucleus Microsystems (Pvt.) Ltd. Ph. 011 47574758
Ashish, Very odd, I'm using FreeSwitch (v1.2.9) with FreeBSD 9.0 (with the patch) and 9.1 (doesn't require it as the patch is already present in the source) - both are amd64. Are you using x86 or amd64 version of FreeBSD? Does FreeSwitch even startup? If so, issue a "version" command into the CLI and report the build version. Did you update your ports before building the dependencies? Regards, From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Ashish gautam Sent: 14 June 2013 13:38 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] FreeSWITCH crashed on signal 11 Daniel, I am using FreeBSD 9.1 Release so probably we are not having threading problems. Also we have downloaded and built the latest source from GIT. On Fri, Jun 14, 2013 at 5:59 PM, Daniel Knaggs <Daniel.Knaggs@realitysolutions.co.uk> wrote: Ashish, What version of FreeBSD are you using? If you're using FreeBSD 9.0 you will need to apply a patch to the threading for the kernel otherwise you can get signal 11 core dumps. If you need it, I'll send it - this issue doesn't affect <= 8.3 (as far as I'm aware) or >= 9.1 (I can confirm it's fine for 9.1). This issue can affect other processes as well so it's best to apply it. If that isn't the case it could be faulty memory, usually compiling a few ports will lead to failures if it's bad memory though. Both of these happened to us recently! According to FreshPorts, FreeSwitch is version 1.0.6 (http://www.freshports.org/net/freeswitch-core/). I highly advise you don't use the one in the ports, but instead build it from source via GIT and install the dependencies via the ports (after a "portsnap fetch update"). Again, I can send you the ports needed to install to build it. Perhaps I should create a FreeBSD specific wiki for how to install FreeSwitch? The one on there now isn't very good. Could also include the kernel patch... FreeSwitch works perfectly under FreeBSD and I also have it running under a non-root account in a production environment. P.S. I apologise in advance for my signature which is required by our company policy in this e-mail. I've converted to plain-text to try and help. From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Ashish gautam Sent: 14 June 2013 12:47 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] FreeSWITCH crashed on signal 11 Thanks Steven, This is not a production server but just a testing server. Thanks for your suggestion, ofcourse I will run it with some different user on production. The freeswitch version I am using is 1.2 ( I have installed it through ports in FreeBSD). Can this crash/segfault somewhere be related to the OS platform I am using(not centOS) ? On Fri, Jun 14, 2013 at 1:32 PM, Steven Ayre <steveayre@gmail.com> wrote: uid 0 Also are you running FreeSWITCH as root? If so that's a very bad idea (generally for any server software). You should be running it as a dedicated user (freeswitch would be a good name). Otherwise any security hole found could be exploited to give full access to your server. -Steve On 14 June 2013 14:50, Ashish gautam <ashish@nms.co.in> wrote: Hi, I have an FS machine running on FreeBSD system with Digium 8-span PRI card. PRI line is plugged only on span 1. Everything was running fine until all the channels got alarms suddenly and mod_ftdm attempted to restart them. But while restarting FS crashed. /var/log/messages show: Jun 14 12:36:03 ivrfr kernel: pid 759 (freeswitch), uid 0: exited on signal 11 (core dumped) I am attaching the messages file herewith. Please throw some light on what might have happened. -- Ashish Gautam Nucleus Microsystems (Pvt.) Ltd. Ph. 011 47574758 Daniel Knaggs Software Developer Reality Solutions Ltd 1 Global Business Park Hamburg Road Kingston upon Hull East Yorkshire, HU7 0AE Tel: 01482 373104 Mobile: 07932 408313 Email: mailto:Daniel.Knaggs@realitysolutions.co.uk http:// _________________________________________________________________________ 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 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 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 -- Ashish Gautam Nucleus Microsystems (Pvt.) Ltd. Ph. 011 47574758 _________________________________________________________________________ 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 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 -- Ashish Gautam Nucleus Microsystems (Pvt.) Ltd. Ph. 011 47574758
Dan, FS version is "FreeSWITCH Version 1.5.1". Yeah I installed dependencies from latest ports (latest updated one). This segfault could be a bug in freeswitch which might not be related the OS platform (as all the conditions suggest). It could probably be verified by reproducing the same testing conditions in which the segfault occurred. Also It will be really appreciable if you write a wiki about how to make freeswitch up and running on FreeBSD platform as many other people also might be waiting for. On Fri, Jun 14, 2013 at 6:32 PM, Daniel Knaggs < Daniel.Knaggs@realitysolutions.co.uk> wrote:
Ashish,
Very odd, I'm using FreeSwitch (v1.2.9) with FreeBSD 9.0 (with the patch) and 9.1 (doesn't require it as the patch is already present in the source) - both are amd64.
Are you using x86 or amd64 version of FreeBSD? Does FreeSwitch even startup? If so, issue a "version" command into the CLI and report the build version. Did you update your ports before building the dependencies?
Regards,
From: freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Ashish gautam Sent: 14 June 2013 13:38 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] FreeSWITCH crashed on signal 11
Daniel,
I am using FreeBSD 9.1 Release so probably we are not having threading problems. Also we have downloaded and built the latest source from GIT. On Fri, Jun 14, 2013 at 5:59 PM, Daniel Knaggs < Daniel.Knaggs@realitysolutions.co.uk> wrote: Ashish,
What version of FreeBSD are you using? If you're using FreeBSD 9.0 you will need to apply a patch to the threading for the kernel otherwise you can get signal 11 core dumps. If you need it, I'll send it - this issue doesn't affect <= 8.3 (as far as I'm aware) or >= 9.1 (I can confirm it's fine for 9.1). This issue can affect other processes as well so it's best to apply it. If that isn't the case it could be faulty memory, usually compiling a few ports will lead to failures if it's bad memory though. Both of these happened to us recently!
According to FreshPorts, FreeSwitch is version 1.0.6 ( http://www.freshports.org/net/freeswitch-core/). I highly advise you don't use the one in the ports, but instead build it from source via GIT and install the dependencies via the ports (after a "portsnap fetch update"). Again, I can send you the ports needed to install to build it. Perhaps I should create a FreeBSD specific wiki for how to install FreeSwitch? The one on there now isn't very good. Could also include the kernel patch...
FreeSwitch works perfectly under FreeBSD and I also have it running under a non-root account in a production environment.
P.S. I apologise in advance for my signature which is required by our company policy in this e-mail. I've converted to plain-text to try and help.
From: freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Ashish gautam Sent: 14 June 2013 12:47 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] FreeSWITCH crashed on signal 11
Thanks Steven,
This is not a production server but just a testing server. Thanks for your suggestion, ofcourse I will run it with some different user on production. The freeswitch version I am using is 1.2 ( I have installed it through ports in FreeBSD).
Can this crash/segfault somewhere be related to the OS platform I am using(not centOS) ?
On Fri, Jun 14, 2013 at 1:32 PM, Steven Ayre <steveayre@gmail.com> wrote: uid 0
Also are you running FreeSWITCH as root? If so that's a very bad idea (generally for any server software). You should be running it as a dedicated user (freeswitch would be a good name). Otherwise any security hole found could be exploited to give full access to your server.
-Steve
On 14 June 2013 14:50, Ashish gautam <ashish@nms.co.in> wrote: Hi,
I have an FS machine running on FreeBSD system with Digium 8-span PRI card. PRI line is plugged only on span 1.
Everything was running fine until all the channels got alarms suddenly and mod_ftdm attempted to restart them. But while restarting FS crashed. /var/log/messages show:
Jun 14 12:36:03 ivrfr kernel: pid 759 (freeswitch), uid 0: exited on signal 11 (core dumped)
I am attaching the messages file herewith. Please throw some light on what might have happened.
-- Ashish Gautam
Nucleus Microsystems (Pvt.) Ltd.
Ph. 011 47574758
Daniel Knaggs Software Developer
Reality Solutions Ltd 1 Global Business Park Hamburg Road Kingston upon Hull East Yorkshire, HU7 0AE
Tel: 01482 373104 Mobile: 07932 408313 Email: mailto:Daniel.Knaggs@realitysolutions.co.uk http://
_________________________________________________________________________ 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
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
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
-- Ashish Gautam
Nucleus Microsystems (Pvt.) Ltd.
Ph. 011 47574758
_________________________________________________________________________ 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
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
-- Ashish Gautam
Nucleus Microsystems (Pvt.) Ltd.
Ph. 011 47574758
_________________________________________________________________________ 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
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
-- Ashish Gautam Nucleus Microsystems (Pvt.) Ltd. Ph. 011 47574758
Perhaps I should create a FreeBSD specific wiki for how to install FreeSwitch? The one on there now isn't very good. Could also include the kernel patch...
FreeSwitch works perfectly under FreeBSD and I also have it running under a non-root account in a production environment.
That would be highly appreciated. Even though I feel much more comfortable with FreeBSD I have just opted to base our deployments on CentOS. If FreeBSD had a higher visibility and it was more clear what issues to expect on the platform we would certainly consider strongly to change platform. Not by any means meant as a bashing of CentOS. We just selected it as the least likely platform to have problems with Freeswitch when FreeBSD did not seem viable. Any move to make FreeBSD a more viable platform is for the better. Kind Regards, Claus Andersen
Claus, I'll try to pull together all my notes this weekend, will include how to install from clean and upgrading an existing installation. Watch this space! Dan. Daniel Knaggs Software Developer Reality Solutions Ltd 1 Global Business Park Hamburg Road Kingston upon Hull East Yorkshire, HU7 0AE Tel: 01482 373104 Mobile: 07932 408313 Email: mailto:Daniel.Knaggs@realitysolutions.co.uk http:// -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Claus Andersen Sent: 14 June 2013 14:35 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] FreeSWITCH crashed on signal 11
Perhaps I should create a FreeBSD specific wiki for how to install FreeSwitch? The one on there now isn't very good. Could also include the kernel patch...
FreeSwitch works perfectly under FreeBSD and I also have it running under a non-root account in a production environment.
That would be highly appreciated. Even though I feel much more comfortable with FreeBSD I have just opted to base our deployments on CentOS. If FreeBSD had a higher visibility and it was more clear what issues to expect on the platform we would certainly consider strongly to change platform. Not by any means meant as a bashing of CentOS. We just selected it as the least likely platform to have problems with Freeswitch when FreeBSD did not seem viable. Any move to make FreeBSD a more viable platform is for the better. Kind Regards, Claus Andersen _________________________________________________________________________ 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 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
participants (5)
-
Ashish gautam
-
Claus Andersen
-
Daniel Knaggs
-
Peter Olsson
-
Steven Ayre