Perl background script crashes FreeSWITCH...
Hi, I'm currently testing the newest trunk of FS with Ubuntu 10.04. I have a perl background script that will be started through FS (perl.conf.xml). This script uses Perl-DBI with sqlite. And when adding this script to perl.conf.xml freeswitch will immediately crash when this script starts. On my old FS installation (somewhere between 1.0.4 and 1.0.6) it works fine. It also works fine when started standalone. Any ideas? Here's the backtrace: (gdb) bt #0 0x00007ffa2e64bbac in sqlite_st_execute () from /usr/lib/perl5/auto/DBD/SQLite/SQLite.so #1 0x00007ffa2e641f7f in XS_DBD__SQLite__st_execute () from /usr/lib/perl5/auto/DBD/SQLite/SQLite.so #2 0x00007ffa2f1a8a37 in XS_DBI_dispatch () from /usr/lib/perl5/auto/DBI/DBI.so #3 0x00007ffa3564f045 in Perl_pp_entersub () from /usr/lib/libperl.so.5.10 #4 0x00007ffa3564d336 in Perl_runops_standard () from /usr/lib/libperl.so.5.10 #5 0x00007ffa355f4548 in Perl_call_sv () from /usr/lib/libperl.so.5.10 #6 0x00007ffa2f1a6d1a in XS_DBI_dispatch () from /usr/lib/perl5/auto/DBI/DBI.so #7 0x00007ffa3564f045 in Perl_pp_entersub () from /usr/lib/libperl.so.5.10 #8 0x00007ffa3564d336 in Perl_runops_standard () from /usr/lib/libperl.so.5.10 #9 0x00007ffa355f0df7 in Perl_eval_sv () from /usr/lib/libperl.so.5.10 #10 0x00007ffa355f11b0 in Perl_eval_pv () from /usr/lib/libperl.so.5.10 #11 0x00007ffa35916dc3 in Perl_safe_eval (my_perl=0x1e8b950, string=0x0) at /usr/src/freeswitch/src/mod/languages/mod_perl/mod_perl.c:69 #12 0x00007ffa35917c80 in perl_parse_and_execute (my_perl=<value optimized out>, input_code=<value optimized out>, setup_code=<value optimized out>) at /usr/src/freeswitch/src/mod/languages/mod_perl/mod_perl.c:138 #13 0x00007ffa35917f70 in perl_thread_run (thread=<value optimized out>, obj=0x19b5bf0) at /usr/src/freeswitch/src/mod/languages/mod_perl/mod_perl.c:275 #14 0x00007ffa498159ca in start_thread () from /lib/libpthread.so.0 #15 0x00007ffa48d4d6fd in clone () from /lib/libc.so.6 #16 0x0000000000000000 in ?? () Thanks, Klaus
it's probably a namespace collision from the sqlite in perl on disk and the sqlite inside FS do you mean you are running it in mod_perl? does it work on a less than latest ubuntu? On Fri, Sep 24, 2010 at 12:49 PM, Klaus Hochlehnert <Mailings@kh-dev.de> wrote:
Hi,
I’m currently testing the newest trunk of FS with Ubuntu 10.04.
I have a perl background script that will be started through FS (perl.conf.xml). This script uses Perl-DBI with sqlite.
And when adding this script to perl.conf.xml freeswitch will immediately crash when this script starts.
On my old FS installation (somewhere between 1.0.4 and 1.0.6) it works fine.
It also works fine when started standalone.
Any ideas?
Here’s the backtrace:
(gdb) bt
#0 0x00007ffa2e64bbac in sqlite_st_execute () from /usr/lib/perl5/auto/DBD/SQLite/SQLite.so
#1 0x00007ffa2e641f7f in XS_DBD__SQLite__st_execute () from /usr/lib/perl5/auto/DBD/SQLite/SQLite.so
#2 0x00007ffa2f1a8a37 in XS_DBI_dispatch () from /usr/lib/perl5/auto/DBI/DBI.so
#3 0x00007ffa3564f045 in Perl_pp_entersub () from /usr/lib/libperl.so.5.10
#4 0x00007ffa3564d336 in Perl_runops_standard () from /usr/lib/libperl.so.5.10
#5 0x00007ffa355f4548 in Perl_call_sv () from /usr/lib/libperl.so.5.10
#6 0x00007ffa2f1a6d1a in XS_DBI_dispatch () from /usr/lib/perl5/auto/DBI/DBI.so
#7 0x00007ffa3564f045 in Perl_pp_entersub () from /usr/lib/libperl.so.5.10
#8 0x00007ffa3564d336 in Perl_runops_standard () from /usr/lib/libperl.so.5.10
#9 0x00007ffa355f0df7 in Perl_eval_sv () from /usr/lib/libperl.so.5.10
#10 0x00007ffa355f11b0 in Perl_eval_pv () from /usr/lib/libperl.so.5.10
#11 0x00007ffa35916dc3 in Perl_safe_eval (my_perl=0x1e8b950, string=0x0) at /usr/src/freeswitch/src/mod/languages/mod_perl/mod_perl.c:69
#12 0x00007ffa35917c80 in perl_parse_and_execute (my_perl=<value optimized out>, input_code=<value optimized out>,
setup_code=<value optimized out>) at /usr/src/freeswitch/src/mod/languages/mod_perl/mod_perl.c:138
#13 0x00007ffa35917f70 in perl_thread_run (thread=<value optimized out>, obj=0x19b5bf0)
at /usr/src/freeswitch/src/mod/languages/mod_perl/mod_perl.c:275
#14 0x00007ffa498159ca in start_thread () from /lib/libpthread.so.0
#15 0x00007ffa48d4d6fd in clone () from /lib/libc.so.6
#16 0x0000000000000000 in ?? ()
Thanks, Klaus
_______________________________________________ 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 GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Hi Anthony, I've install a new Ubuntu 8.04 and compiled the newest trunk. The same script is working there without problems. It's added as startup script in the perl config: <param name="startup-script" value="my_script.pl"/> Thanks, Klaus -----Ursprüngliche Nachricht----- Von: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Im Auftrag von Anthony Minessale Gesendet: Freitag, 24. September 2010 23:11 An: FreeSWITCH Users Help Betreff: Re: [Freeswitch-users] Perl background script crashes FreeSWITCH... it's probably a namespace collision from the sqlite in perl on disk and the sqlite inside FS do you mean you are running it in mod_perl? does it work on a less than latest ubuntu? On Fri, Sep 24, 2010 at 12:49 PM, Klaus Hochlehnert <Mailings@kh-dev.de> wrote:
Hi,
I'm currently testing the newest trunk of FS with Ubuntu 10.04.
I have a perl background script that will be started through FS (perl.conf.xml). This script uses Perl-DBI with sqlite.
And when adding this script to perl.conf.xml freeswitch will immediately crash when this script starts.
On my old FS installation (somewhere between 1.0.4 and 1.0.6) it works fine.
It also works fine when started standalone.
Any ideas?
Here's the backtrace:
(gdb) bt
#0 0x00007ffa2e64bbac in sqlite_st_execute () from /usr/lib/perl5/auto/DBD/SQLite/SQLite.so
#1 0x00007ffa2e641f7f in XS_DBD__SQLite__st_execute () from /usr/lib/perl5/auto/DBD/SQLite/SQLite.so
#2 0x00007ffa2f1a8a37 in XS_DBI_dispatch () from /usr/lib/perl5/auto/DBI/DBI.so
#3 0x00007ffa3564f045 in Perl_pp_entersub () from /usr/lib/libperl.so.5.10
#4 0x00007ffa3564d336 in Perl_runops_standard () from /usr/lib/libperl.so.5.10
#5 0x00007ffa355f4548 in Perl_call_sv () from /usr/lib/libperl.so.5.10
#6 0x00007ffa2f1a6d1a in XS_DBI_dispatch () from /usr/lib/perl5/auto/DBI/DBI.so
#7 0x00007ffa3564f045 in Perl_pp_entersub () from /usr/lib/libperl.so.5.10
#8 0x00007ffa3564d336 in Perl_runops_standard () from /usr/lib/libperl.so.5.10
#9 0x00007ffa355f0df7 in Perl_eval_sv () from /usr/lib/libperl.so.5.10
#10 0x00007ffa355f11b0 in Perl_eval_pv () from /usr/lib/libperl.so.5.10
#11 0x00007ffa35916dc3 in Perl_safe_eval (my_perl=0x1e8b950, string=0x0) at /usr/src/freeswitch/src/mod/languages/mod_perl/mod_perl.c:69
#12 0x00007ffa35917c80 in perl_parse_and_execute (my_perl=<value optimized out>, input_code=<value optimized out>,
setup_code=<value optimized out>) at /usr/src/freeswitch/src/mod/languages/mod_perl/mod_perl.c:138
#13 0x00007ffa35917f70 in perl_thread_run (thread=<value optimized out>, obj=0x19b5bf0)
at /usr/src/freeswitch/src/mod/languages/mod_perl/mod_perl.c:275
#14 0x00007ffa498159ca in start_thread () from /lib/libpthread.so.0
#15 0x00007ffa48d4d6fd in clone () from /lib/libc.so.6
#16 0x0000000000000000 in ?? ()
Thanks, Klaus
_______________________________________________ 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-use rs 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 GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@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
participants (2)
-
Anthony Minessale
-
Klaus Hochlehnert