outbound socket problem / fs_ivrd general protection, segfault
hello list recently i have problems with outbound socket scripts (written in php) dialplan looks like this <condition field="destination_number" expression="^(\d+)$" break="on-true"> <action application="set" data="ivr_path=/opt/freeswitch/scripts/script1.php"/> <action application="socket" data="127.0.0.1:8084 full"/> ... do something ... <action application="set" data="ivr_path=/opt/freeswitch/scripts/script2.php"/> <action application="socket" data="127.0.0.1:8084 full"/> <action application="hangup"/> </condition> script1.php is executed script2.php fails (see syslog msg) syslog says fs_ivrd[11971] general protection ip:7f2f7b94bbf5 sp:7fffffffa148 error:0 in libpthread-2.7.so[7f2f7b942000+16000] or fs_ivrd[12037]: segfault at a006c6c7576 ip 7f2f7b94bbf5 sp 7fffffffa148 error 4 in libpthread-2.7.so[7f2f7b942000+16000] uname -a Linux vts02.vie.xpirio.net 2.6.26-2-amd64 #1 SMP Tue Mar 9 22:29:32 UTC 2010 x86_64 GNU/Linux version FreeSWITCH Version 1.0.6 (svn-exported) does anybody have similar problems? br -- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
Hi Christian, If it's segfaulting, then there is a bug somewhere. Firstly, make sure you're on the very latest version from Git. See if you can reproduce the error on that version. If you're on an old version then there's a possibility the bug has already been fixed. If you still have segfault problems collect a core dump file (which may require running 'ulimit -c unlimited' before starting fs_ivrd) for the process and report it with the backtrace from gdb on Jira ( http://jira.freeswitch.org/). Load the core file into gdb with the command 'gdb fs_ivrd core', and post the output for the commands 'bt full' and 'thread apply all bt full'. See http://wiki.freeswitch.org/wiki/Reporting_Bugs -Steve 2010/6/4 Christian Löschenkohl <christian.loeschenkohl@xpirio.com>
hello list
recently i have problems with outbound socket scripts (written in php)
dialplan looks like this
<condition field="destination_number" expression="^(\d+)$" break="on-true"> <action application="set" data="ivr_path=/opt/freeswitch/scripts/script1.php"/> <action application="socket" data="127.0.0.1:8084 full"/> ... do something ... <action application="set" data="ivr_path=/opt/freeswitch/scripts/script2.php"/> <action application="socket" data="127.0.0.1:8084 full"/> <action application="hangup"/> </condition>
script1.php is executed script2.php fails (see syslog msg)
syslog says fs_ivrd[11971] general protection ip:7f2f7b94bbf5 sp:7fffffffa148 error:0 in libpthread-2.7.so[7f2f7b942000+16000] or fs_ivrd[12037]: segfault at a006c6c7576 ip 7f2f7b94bbf5 sp 7fffffffa148 error 4 in libpthread-2.7.so[7f2f7b942000+16000]
uname -a Linux vts02.vie.xpirio.net 2.6.26-2-amd64 #1 SMP Tue Mar 9 22:29:32 UTC 2010 x86_64 GNU/Linux
version FreeSWITCH Version 1.0.6 (svn-exported)
does anybody have similar problems?
br
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP
xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria
T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.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
hi thank you - i use a very up-to-date version - see version output 1.0.6 the ivrd hasn't changed from 1.0.6 to the current trunk - i don't know how to debug with gdb here freeswitch dumps it's core as a core file but fs_ivrd doesn't could you provide a command that does the job? strace also syslog says the kernel logs this Jun 4 14:23:43 vts02 kernel: [2321314.877379] fs_ivrd[18070] general protection ip:7f2f7b94bbf5 sp:7fffffffa148 error:0 in libpthread-2.7.so[7f2f7b942000+16000] or Jun 4 14:47:53 vts02 kernel: [2323898.324458] fs_ivrd[19023]: segfault at a006c6c85 ip 7f0429f43bf5 sp 7fffffffab68 error 4 in libpthread-2.7.so[7f0429f3a000+16000] fs_ivrd doesn't break and it does not need a restart br On 2010-06-04 14:13, Steven Ayre wrote:
Hi Christian,
If it's segfaulting, then there is a bug somewhere.
Firstly, make sure you're on the very latest version from Git. See if you can reproduce the error on that version. If you're on an old version then there's a possibility the bug has already been fixed.
If you still have segfault problems collect a core dump file (which may require running 'ulimit -c unlimited' before starting fs_ivrd) for the process and report it with the backtrace from gdb on Jira (http://jira.freeswitch.org/). Load the core file into gdb with the command 'gdb fs_ivrd core', and post the output for the commands 'bt full' and 'thread apply all bt full'.
See http://wiki.freeswitch.org/wiki/Reporting_Bugs
-Steve
2010/6/4 Christian Löschenkohl <christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com>>
hello list
recently i have problems with outbound socket scripts (written in php)
dialplan looks like this
<condition field="destination_number" expression="^(\d+)$" break="on-true"> <action application="set" data="ivr_path=/opt/freeswitch/scripts/script1.php"/> <action application="socket" data="127.0.0.1:8084 <http://127.0.0.1:8084> full"/> ... do something ... <action application="set" data="ivr_path=/opt/freeswitch/scripts/script2.php"/> <action application="socket" data="127.0.0.1:8084 <http://127.0.0.1:8084> full"/> <action application="hangup"/> </condition>
script1.php is executed script2.php fails (see syslog msg)
syslog says fs_ivrd[11971] general protection ip:7f2f7b94bbf5 sp:7fffffffa148 error:0 in libpthread-2.7.so <http://libpthread-2.7.so>[7f2f7b942000+16000] or fs_ivrd[12037]: segfault at a006c6c7576 ip 7f2f7b94bbf5 sp 7fffffffa148 error 4 in libpthread-2.7.so <http://libpthread-2.7.so>[7f2f7b942000+16000]
uname -a Linux vts02.vie.xpirio.net <http://vts02.vie.xpirio.net> 2.6.26-2-amd64 #1 SMP Tue Mar 9 22:29:32 UTC 2010 x86_64 GNU/Linux
version FreeSWITCH Version 1.0.6 (svn-exported)
does anybody have similar problems?
br
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP
xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria
T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com>
_______________________________________________ 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
_______________________________________________ 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
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
Are you using GIT to pull the src? /b On Jun 4, 2010, at 9:39 AM, Christian Löschenkohl wrote:
hi
thank you
- i use a very up-to-date version - see version output 1.0.6 the ivrd hasn't changed from 1.0.6 to the current trunk
- i don't know how to debug with gdb here freeswitch dumps it's core as a core file but fs_ivrd doesn't could you provide a command that does the job? strace
also syslog says the kernel logs this Jun 4 14:23:43 vts02 kernel: [2321314.877379] fs_ivrd[18070] general protection ip:7f2f7b94bbf5 sp:7fffffffa148 error:0 in libpthread-2.7.so[7f2f7b942000+16000] or Jun 4 14:47:53 vts02 kernel: [2323898.324458] fs_ivrd[19023]: segfault at a006c6c85 ip 7f0429f43bf5 sp 7fffffffab68 error 4 in libpthread-2.7.so[7f0429f3a000+16000]
fs_ivrd doesn't break and it does not need a restart
br
hello the running version is http://files.freeswitch.org/freeswitch-1.0.6.tar.bz2 i compared the ivrd source with the version i did get with git clone git://git.freeswitch.org/freeswitch.git br On 2010-06-04 16:44, Brian West wrote:
Are you using GIT to pull the src?
/b
On Jun 4, 2010, at 9:39 AM, Christian Löschenkohl wrote:
hi
thank you
- i use a very up-to-date version - see version output 1.0.6 the ivrd hasn't changed from 1.0.6 to the current trunk
- i don't know how to debug with gdb here freeswitch dumps it's core as a core file but fs_ivrd doesn't could you provide a command that does the job? strace
also syslog says the kernel logs this Jun 4 14:23:43 vts02 kernel: [2321314.877379] fs_ivrd[18070] general protection ip:7f2f7b94bbf5 sp:7fffffffa148 error:0 in libpthread-2.7.so[7f2f7b942000+16000] or Jun 4 14:47:53 vts02 kernel: [2323898.324458] fs_ivrd[19023]: segfault at a006c6c85 ip 7f0429f43bf5 sp 7fffffffab68 error 4 in libpthread-2.7.so[7f0429f3a000+16000]
fs_ivrd doesn't break and it does not need a restart
br
_______________________________________________ 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
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
Can you create a small test case that someone like myself could have to demonstrate this issue? /b On Jun 4, 2010, at 10:04 AM, Christian Löschenkohl wrote:
hello
the running version is http://files.freeswitch.org/freeswitch-1.0.6.tar.bz2
i compared the ivrd source with the version i did get with git clone git://git.freeswitch.org/freeswitch.git
br
it's not just about ivrd its about the whole esl library and everything that uses it. Every time you update FS you must also update all of the ESL and ESL modules 2010/6/4 Christian Löschenkohl <christian.loeschenkohl@xpirio.com>
hello
the running version is http://files.freeswitch.org/freeswitch-1.0.6.tar.bz2
i compared the ivrd source with the version i did get with git clone git://git.freeswitch.org/freeswitch.git
br
On 2010-06-04 16:44, Brian West wrote:
Are you using GIT to pull the src?
/b
On Jun 4, 2010, at 9:39 AM, Christian Löschenkohl wrote:
hi
thank you
- i use a very up-to-date version - see version output 1.0.6 the ivrd hasn't changed from 1.0.6 to the current trunk
- i don't know how to debug with gdb here freeswitch dumps it's core as a core file but fs_ivrd doesn't could you provide a command that does the job? strace
also syslog says the kernel logs this Jun 4 14:23:43 vts02 kernel: [2321314.877379] fs_ivrd[18070] general protection ip:7f2f7b94bbf5 sp:7fffffffa148 error:0 in libpthread-2.7.so [7f2f7b942000+16000] or Jun 4 14:47:53 vts02 kernel: [2323898.324458] fs_ivrd[19023]: segfault at a006c6c85 ip 7f0429f43bf5 sp 7fffffffab68 error 4 in libpthread-2.7.so [7f0429f3a000+16000]
fs_ivrd doesn't break and it does not need a restart
br
_______________________________________________ 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
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP
xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria
T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
thank you very much updating to the latest version did cure all my problems i will stay on trunk from now on sorry that i didn't try this as first step br On 2010-06-04 17:18, Anthony Minessale wrote:
it's not just about ivrd
its about the whole esl library and everything that uses it.
Every time you update FS you must also update all of the ESL and ESL modules
2010/6/4 Christian Löschenkohl <christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com>>
hello
the running version is http://files.freeswitch.org/freeswitch-1.0.6.tar.bz2
i compared the ivrd source with the version i did get with git clone git://git.freeswitch.org/freeswitch.git <http://git.freeswitch.org/freeswitch.git>
br
On 2010-06-04 16:44, Brian West wrote:
> Are you using GIT to pull the src? > > /b > > On Jun 4, 2010, at 9:39 AM, Christian Löschenkohl wrote: > >> hi >> >> thank you >> >> - i use a very up-to-date version - see version output 1.0.6 >> the ivrd hasn't changed from 1.0.6 to the current trunk >> >> - i don't know how to debug with gdb here >> freeswitch dumps it's core as a core file but fs_ivrd doesn't >> could you provide a command that does the job? >> strace >> >> also syslog says the kernel logs this >> Jun 4 14:23:43 vts02 kernel: [2321314.877379] fs_ivrd[18070] general protection ip:7f2f7b94bbf5 sp:7fffffffa148 error:0 in libpthread-2.7.so <http://libpthread-2.7.so>[7f2f7b942000+16000] >> or >> Jun 4 14:47:53 vts02 kernel: [2323898.324458] fs_ivrd[19023]: segfault at a006c6c85 ip 7f0429f43bf5 sp 7fffffffab68 error 4 in libpthread-2.7.so <http://libpthread-2.7.so>[7f0429f3a000+16000] >> >> fs_ivrd doesn't break and it does not need a restart >> >> br > > > _______________________________________________ > 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
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP
xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria
T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com>
_______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
_______________________________________________ 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
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
2010/6/4 Christian Löschenkohl <christian.loeschenkohl@xpirio.com>
thank you very much
updating to the latest version did cure all my problems i will stay on trunk from now on
sorry that i didn't try this as first step
br
FYI, I use this shell script on a few test boxes. I keep it in the root of the src tree and run it whenever I want to update to the latest, which is usually each morning when I arrive at my desk. <9>:cat rebuild-freeswitch.sh #!/bin/sh freeswitch -stop make current cd libs/esl make make perlmod cd ../.. sleep 10 freeswitch -nc -nonat Be sure to build all the ESL-ish mods that you use. -MC
participants (5)
-
Anthony Minessale
-
Brian West
-
Christian Löschenkohl
-
Michael Collins
-
Steven Ayre