Hello
I'd like to do some tests with the dialplan module, but Kamailio is crashing when it loads it. Actually the module is properly loaded if the table is empty, but it fails when a row is added; so I guess it's related with the way I've inserted the values. A core file is generated:
Core was generated by `./kamailio -f ../etc/kamailio/kamailio.cfg'. Program terminated with signal 11, Segmentation fault. #0 build_rule (values=0x0) at dp_db.c:439 439 new_rule->dpid = VAL_INT(values);
This is the relevant config:
#----- dialplan params --- modparam("dialplan", "db_url", "mysql://xxxx:yyyyy@localhost/db") modparam("dialplan", "table_name", "dialplan") modparam("dialplan", "dpid_col", "dpid") modparam("dialplan", "attrs_pvar", "$avp(s:dp_attrs)")
mysql> describe dialplan; +-----------+------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-----------+------------------+------+-----+---------+----------------+ | id | int(10) unsigned | NO | PRI | NULL | auto_increment | | dpid | int(11) | NO | | NULL | | | pr | int(11) | NO | | NULL | | | match_op | int(11) | NO | | NULL | | | match_exp | varchar(64) | NO | | NULL | | | match_len | int(11) | NO | | NULL | | | subst_exp | varchar(64) | NO | | NULL | | | repl_exp | varchar(32) | NO | | NULL | | | attrs | varchar(32) | NO | | NULL | | +-----------+------------------+------+-----+---------+----------------+ 9 rows in set (0.00 sec)
mysql> select * from dialplan; +----+------+----+----------+-----------+-----------+-----------+----------+-------+ | id | dpid | pr | match_op | match_exp | match_len | subst_exp | repl_exp | attrs | +----+------+----+----------+-----------+-----------+-----------+----------+-------+ | 1 | 1 | 1 | 1 | ^00 | 0 | ^00 | 011 | dp1 | +----+------+----+----------+-----------+-----------+-----------+----------+-------+ 1 row in set (0.00 sec)
I'm probably making some stupid mistake...any clue?
Thanks in advance
Javier
Hello,
On 11/22/10 5:32 PM, Javier Gallart wrote:
Hello
I'd like to do some tests with the dialplan module, but Kamailio is crashing when it loads it. Actually the module is properly loaded if the table is empty, but it fails when a row is added; so I guess it's related with the way I've inserted the values. A core file is generated:
Core was generated by `./kamailio -f ../etc/kamailio/kamailio.cfg'. Program terminated with signal 11, Segmentation fault. #0 build_rule (values=0x0) at dp_db.c:439 439new_rule->dpid=VAL_INT(values);
this looks a bit strange at first sight, 'values' parameter is NULL and should not happen. Besides that, in build_rule() functions there are other uses of 'values' before line 439, so the crash should have been earlier.
Please send full backtrace of the core, in gdb, run 'bt' command (or better 'bt full').
Also, if this reproducible, run:
./kamailio -f ../etc/kamailio/kamailio.cfg -E -dddd
and send the output.
Cheers, Daniel
This is the relevant config:
#----- dialplan params --- modparam("dialplan", "db_url", "mysql://xxxx:yyyyy@localhost/db") modparam("dialplan", "table_name", "dialplan") modparam("dialplan", "dpid_col", "dpid") modparam("dialplan", "attrs_pvar", "$avp(s:dp_attrs)")
mysql> describe dialplan; +-----------+------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-----------+------------------+------+-----+---------+----------------+ | id | int(10) unsigned | NO | PRI | NULL | auto_increment | | dpid | int(11) | NO | | NULL | | | pr | int(11) | NO | | NULL | | | match_op | int(11) | NO | | NULL | | | match_exp | varchar(64) | NO | | NULL | | | match_len | int(11) | NO | | NULL | | | subst_exp | varchar(64) | NO | | NULL | | | repl_exp | varchar(32) | NO | | NULL | | | attrs | varchar(32) | NO | | NULL | | +-----------+------------------+------+-----+---------+----------------+ 9 rows in set (0.00 sec)
mysql> select * from dialplan; +----+------+----+----------+-----------+-----------+-----------+----------+-------+ | id | dpid | pr | match_op | match_exp | match_len | subst_exp | repl_exp | attrs | +----+------+----+----------+-----------+-----------+-----------+----------+-------+ | 1 | 1 | 1 | 1 | ^00 | 0 | ^00 | 011 | dp1 | +----+------+----+----------+-----------+-----------+-----------+----------+-------+ 1 row in set (0.00 sec)
I'm probably making some stupid mistake...any clue?
Thanks in advance
Javier
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Thanks Daniel
you can find both the gdb and ./kamailio output at http://pastebin.ca/1999786
http://pastebin.ca/1999786Regards
Javier
On Mon, Nov 22, 2010 at 10:19 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
On 11/22/10 5:32 PM, Javier Gallart wrote:
Hello
I'd like to do some tests with the dialplan module, but Kamailio is crashing when it loads it. Actually the module is properly loaded if the table is empty, but it fails when a row is added; so I guess it's related with the way I've inserted the values. A core file is generated:
Core was generated by `./kamailio -f ../etc/kamailio/kamailio.cfg'. Program terminated with signal 11, Segmentation fault. #0 build_rule (values=0x0) at dp_db.c:439 439 new_rule->dpid = VAL_INT(values);
this looks a bit strange at first sight, 'values' parameter is NULL and should not happen. Besides that, in build_rule() functions there are other uses of 'values' before line 439, so the crash should have been earlier.
Please send full backtrace of the core, in gdb, run 'bt' command (or better 'bt full').
Also, if this reproducible, run:
./kamailio -f ../etc/kamailio/kamailio.cfg -E -dddd
and send the output.
Cheers, Daniel
This is the relevant config:
#----- dialplan params --- modparam("dialplan", "db_url", "mysql://xxxx:yyyyy@localhost/db") modparam("dialplan", "table_name", "dialplan") modparam("dialplan", "dpid_col", "dpid") modparam("dialplan", "attrs_pvar", "$avp(s:dp_attrs)")
mysql> describe dialplan; +-----------+------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-----------+------------------+------+-----+---------+----------------+ | id | int(10) unsigned | NO | PRI | NULL | auto_increment | | dpid | int(11) | NO | | NULL | | | pr | int(11) | NO | | NULL | | | match_op | int(11) | NO | | NULL | | | match_exp | varchar(64) | NO | | NULL | | | match_len | int(11) | NO | | NULL | | | subst_exp | varchar(64) | NO | | NULL | | | repl_exp | varchar(32) | NO | | NULL | | | attrs | varchar(32) | NO | | NULL | | +-----------+------------------+------+-----+---------+----------------+ 9 rows in set (0.00 sec)
mysql> select * from dialplan;
+----+------+----+----------+-----------+-----------+-----------+----------+-------+ | id | dpid | pr | match_op | match_exp | match_len | subst_exp | repl_exp | attrs |
+----+------+----+----------+-----------+-----------+-----------+----------+-------+ | 1 | 1 | 1 | 1 | ^00 | 0 | ^00 | 011 | dp1 |
+----+------+----+----------+-----------+-----------+-----------+----------+-------+ 1 row in set (0.00 sec)
I'm probably making some stupid mistake...any clue?
Thanks in advance
Javier
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
Thanks, I will look over it and try to reproduce in the lab, it may take a bit since I am pretty much time offline these days.
Can you add a second rule and see what happens? At the first sight of the debug messages, the result from database is ok, should not be a null value there.
Cheers, Daniel
On 11/23/10 10:38 AM, Javier Gallart wrote:
Thanks Daniel
you can find both the gdb and ./kamailio output at http://pastebin.ca/1999786
Regards
Javier
On Mon, Nov 22, 2010 at 10:19 PM, Daniel-Constantin Mierla <miconda@gmail.com mailto:miconda@gmail.com> wrote:
Hello, On 11/22/10 5:32 PM, Javier Gallart wrote:
Hello I'd like to do some tests with the dialplan module, but Kamailio is crashing when it loads it. Actually the module is properly loaded if the table is empty, but it fails when a row is added; so I guess it's related with the way I've inserted the values. A core file is generated: Core was generated by `./kamailio -f ../etc/kamailio/kamailio.cfg'. Program terminated with signal 11, Segmentation fault. #0 build_rule (values=0x0) at dp_db.c:439 439new_rule->dpid=VAL_INT(values);
this looks a bit strange at first sight, 'values' parameter is NULL and should not happen. Besides that, in build_rule() functions there are other uses of 'values' before line 439, so the crash should have been earlier. Please send full backtrace of the core, in gdb, run 'bt' command (or better 'bt full'). Also, if this reproducible, run: ./kamailio -f ../etc/kamailio/kamailio.cfg -E -dddd and send the output. Cheers, Daniel
This is the relevant config: #----- dialplan params --- modparam("dialplan", "db_url", "mysql://xxxx:yyyyy@localhost/db") modparam("dialplan", "table_name", "dialplan") modparam("dialplan", "dpid_col", "dpid") modparam("dialplan", "attrs_pvar", "$avp(s:dp_attrs)") mysql> describe dialplan; +-----------+------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-----------+------------------+------+-----+---------+----------------+ | id | int(10) unsigned | NO | PRI | NULL | auto_increment | | dpid | int(11) | NO | | NULL | | | pr | int(11) | NO | | NULL | | | match_op | int(11) | NO | | NULL | | | match_exp | varchar(64) | NO | | NULL | | | match_len | int(11) | NO | | NULL | | | subst_exp | varchar(64) | NO | | NULL | | | repl_exp | varchar(32) | NO | | NULL | | | attrs | varchar(32) | NO | | NULL | | +-----------+------------------+------+-----+---------+----------------+ 9 rows in set (0.00 sec) mysql> select * from dialplan; +----+------+----+----------+-----------+-----------+-----------+----------+-------+ | id | dpid | pr | match_op | match_exp | match_len | subst_exp | repl_exp | attrs | +----+------+----+----------+-----------+-----------+-----------+----------+-------+ | 1 | 1 | 1 | 1 | ^00 | 0 | ^00 | 011 | dp1 | +----+------+----+----------+-----------+-----------+-----------+----------+-------+ 1 row in set (0.00 sec) I'm probably making some stupid mistake...any clue? Thanks in advance Javier _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi,
same result after adding a second row in the table.
Regards
Javier
On Tue, Nov 23, 2010 at 11:17 AM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Thanks, I will look over it and try to reproduce in the lab, it may take a bit since I am pretty much time offline these days.
Can you add a second rule and see what happens? At the first sight of the debug messages, the result from database is ok, should not be a null value there.
Cheers, Daniel
On 11/23/10 10:38 AM, Javier Gallart wrote:
Thanks Daniel
you can find both the gdb and ./kamailio output at http://pastebin.ca/1999786
Regards
Javier
On Mon, Nov 22, 2010 at 10:19 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
On 11/22/10 5:32 PM, Javier Gallart wrote:
Hello
I'd like to do some tests with the dialplan module, but Kamailio is crashing when it loads it. Actually the module is properly loaded if the table is empty, but it fails when a row is added; so I guess it's related with the way I've inserted the values. A core file is generated:
Core was generated by `./kamailio -f ../etc/kamailio/kamailio.cfg'. Program terminated with signal 11, Segmentation fault. #0 build_rule (values=0x0) at dp_db.c:439 439 new_rule->dpid = VAL_INT(values);
this looks a bit strange at first sight, 'values' parameter is NULL and should not happen. Besides that, in build_rule() functions there are other uses of 'values' before line 439, so the crash should have been earlier.
Please send full backtrace of the core, in gdb, run 'bt' command (or better 'bt full').
Also, if this reproducible, run:
./kamailio -f ../etc/kamailio/kamailio.cfg -E -dddd
and send the output.
Cheers, Daniel
This is the relevant config:
#----- dialplan params --- modparam("dialplan", "db_url", "mysql://xxxx:yyyyy@localhost/db") modparam("dialplan", "table_name", "dialplan") modparam("dialplan", "dpid_col", "dpid") modparam("dialplan", "attrs_pvar", "$avp(s:dp_attrs)")
mysql> describe dialplan; +-----------+------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-----------+------------------+------+-----+---------+----------------+ | id | int(10) unsigned | NO | PRI | NULL | auto_increment | | dpid | int(11) | NO | | NULL | | | pr | int(11) | NO | | NULL | | | match_op | int(11) | NO | | NULL | | | match_exp | varchar(64) | NO | | NULL | | | match_len | int(11) | NO | | NULL | | | subst_exp | varchar(64) | NO | | NULL | | | repl_exp | varchar(32) | NO | | NULL | | | attrs | varchar(32) | NO | | NULL | | +-----------+------------------+------+-----+---------+----------------+ 9 rows in set (0.00 sec)
mysql> select * from dialplan;
+----+------+----+----------+-----------+-----------+-----------+----------+-------+ | id | dpid | pr | match_op | match_exp | match_len | subst_exp | repl_exp | attrs |
+----+------+----+----------+-----------+-----------+-----------+----------+-------+ | 1 | 1 | 1 | 1 | ^00 | 0 | ^00 | 011 | dp1 |
+----+------+----+----------+-----------+-----------+-----------+----------+-------+ 1 row in set (0.00 sec)
I'm probably making some stupid mistake...any clue?
Thanks in advance
Javier
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
Hello,
On 11/23/10 12:36 PM, Javier Gallart wrote:
Hi,
same result after adding a second row in the table.
I just did a configuration file with dialplan and a record like you showed and it started ok. My log messages are pasted next:
0(10267) DEBUG: db_mysql [km_res.c:136]: use DB1_STRING result type 0(10267) DEBUG: db_mysql [km_dbase.c:354]: converting row 0 of 1 count 1 0(10267) DEBUG: <core> [db_row.c:119]: allocate 160 bytes for row values at 0x82f53f4 0(10267) DEBUG: <core> [db_val.c:73]: converting INT [1] 0(10267) DEBUG: <core> [db_val.c:73]: converting INT [1] 0(10267) DEBUG: <core> [db_val.c:73]: converting INT [1] 0(10267) DEBUG: <core> [db_val.c:117]: converting STRING [^00] 0(10267) DEBUG: <core> [db_val.c:73]: converting INT [0] 0(10267) DEBUG: <core> [db_val.c:117]: converting STRING [^00] 0(10267) DEBUG: <core> [db_val.c:117]: converting STRING [011] 0(10267) DEBUG: <core> [db_val.c:117]: converting STRING [dp1] 0(10267) DEBUG: dialplan [dp_db.c:387]: build_rule 0(10267) DEBUG: dialplan [dp_db.c:447]: attrs are dp1 0(10267) DEBUG: dialplan [dp_db.c:493]: new dpl_id 1 0(10267) DEBUG: dialplan [dp_db.c:506]: new index , len 0 0(10267) DEBUG: dialplan [dp_db.c:542]: added the rule id 1 index 0 pr 1 next (nil) to the index with 0 len 0(10267) DEBUG: <core> [db_res.c:54]: freeing 1 rows
Is it a fresh installation or an update over an older installation? If is the second, can you doublecheck to see if all modules were compiled and installed at the same time and are no longer older versions?
Also, what is your operating system and architecture type?
I tried with both master/devel and 3.1 branches.
Thanks, Daniel
Regards
Javier
On Tue, Nov 23, 2010 at 11:17 AM, Daniel-Constantin Mierla <miconda@gmail.com mailto:miconda@gmail.com> wrote:
Thanks, I will look over it and try to reproduce in the lab, it may take a bit since I am pretty much time offline these days. Can you add a second rule and see what happens? At the first sight of the debug messages, the result from database is ok, should not be a null value there. Cheers, Daniel On 11/23/10 10:38 AM, Javier Gallart wrote:
Thanks Daniel you can find both the gdb and ./kamailio output at http://pastebin.ca/1999786 Regards Javier On Mon, Nov 22, 2010 at 10:19 PM, Daniel-Constantin Mierla <miconda@gmail.com <mailto:miconda@gmail.com>> wrote: Hello, On 11/22/10 5:32 PM, Javier Gallart wrote:
Hello I'd like to do some tests with the dialplan module, but Kamailio is crashing when it loads it. Actually the module is properly loaded if the table is empty, but it fails when a row is added; so I guess it's related with the way I've inserted the values. A core file is generated: Core was generated by `./kamailio -f ../etc/kamailio/kamailio.cfg'. Program terminated with signal 11, Segmentation fault. #0 build_rule (values=0x0) at dp_db.c:439 439new_rule->dpid=VAL_INT(values);
this looks a bit strange at first sight, 'values' parameter is NULL and should not happen. Besides that, in build_rule() functions there are other uses of 'values' before line 439, so the crash should have been earlier. Please send full backtrace of the core, in gdb, run 'bt' command (or better 'bt full'). Also, if this reproducible, run: ./kamailio -f ../etc/kamailio/kamailio.cfg -E -dddd and send the output. Cheers, Daniel
This is the relevant config: #----- dialplan params --- modparam("dialplan", "db_url", "mysql://xxxx:yyyyy@localhost/db") modparam("dialplan", "table_name", "dialplan") modparam("dialplan", "dpid_col", "dpid") modparam("dialplan", "attrs_pvar", "$avp(s:dp_attrs)") mysql> describe dialplan; +-----------+------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-----------+------------------+------+-----+---------+----------------+ | id | int(10) unsigned | NO | PRI | NULL | auto_increment | | dpid | int(11) | NO | | NULL | | | pr | int(11) | NO | | NULL | | | match_op | int(11) | NO | | NULL | | | match_exp | varchar(64) | NO | | NULL | | | match_len | int(11) | NO | | NULL | | | subst_exp | varchar(64) | NO | | NULL | | | repl_exp | varchar(32) | NO | | NULL | | | attrs | varchar(32) | NO | | NULL | | +-----------+------------------+------+-----+---------+----------------+ 9 rows in set (0.00 sec) mysql> select * from dialplan; +----+------+----+----------+-----------+-----------+-----------+----------+-------+ | id | dpid | pr | match_op | match_exp | match_len | subst_exp | repl_exp | attrs | +----+------+----+----------+-----------+-----------+-----------+----------+-------+ | 1 | 1 | 1 | 1 | ^00 | 0 | ^00 | 011 | dp1 | +----+------+----+----------+-----------+-----------+-----------+----------+-------+ 1 row in set (0.00 sec) I'm probably making some stupid mistake...any clue? Thanks in advance Javier _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi Daniel
I completely reinstalled the OS and installed the latest kamailio git, but the problem persists, although no core is generated now. Apparently it does not depend on the db engine, same thing happens for mysql and postgres. You can see the full log here: http://pastebin.ca/2002031 The architechture details are: Ubuntu 10.04.1 LTS \n \l Linux kam-test 2.6.32-24-server #39-Ubuntu SMP Wed Jul 28 06:21:40 UTC 2010 x86_64 GNU/Linux
Regards
Javi
On Wed, Nov 24, 2010 at 11:18 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
On 11/23/10 12:36 PM, Javier Gallart wrote:
Hi,
same result after adding a second row in the table.
I just did a configuration file with dialplan and a record like you showed and it started ok. My log messages are pasted next:
0(10267) DEBUG: db_mysql [km_res.c:136]: use DB1_STRING result type 0(10267) DEBUG: db_mysql [km_dbase.c:354]: converting row 0 of 1 count 1 0(10267) DEBUG: <core> [db_row.c:119]: allocate 160 bytes for row values at 0x82f53f4 0(10267) DEBUG: <core> [db_val.c:73]: converting INT [1] 0(10267) DEBUG: <core> [db_val.c:73]: converting INT [1] 0(10267) DEBUG: <core> [db_val.c:73]: converting INT [1] 0(10267) DEBUG: <core> [db_val.c:117]: converting STRING [^00] 0(10267) DEBUG: <core> [db_val.c:73]: converting INT [0] 0(10267) DEBUG: <core> [db_val.c:117]: converting STRING [^00] 0(10267) DEBUG: <core> [db_val.c:117]: converting STRING [011] 0(10267) DEBUG: <core> [db_val.c:117]: converting STRING [dp1] 0(10267) DEBUG: dialplan [dp_db.c:387]: build_rule 0(10267) DEBUG: dialplan [dp_db.c:447]: attrs are dp1 0(10267) DEBUG: dialplan [dp_db.c:493]: new dpl_id 1 0(10267) DEBUG: dialplan [dp_db.c:506]: new index , len 0 0(10267) DEBUG: dialplan [dp_db.c:542]: added the rule id 1 index 0 pr 1 next (nil) to the index with 0 len 0(10267) DEBUG: <core> [db_res.c:54]: freeing 1 rows
Is it a fresh installation or an update over an older installation? If is the second, can you doublecheck to see if all modules were compiled and installed at the same time and are no longer older versions?
Also, what is your operating system and architecture type?
I tried with both master/devel and 3.1 branches.
Thanks, Daniel
Regards
Javier
On Tue, Nov 23, 2010 at 11:17 AM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Thanks, I will look over it and try to reproduce in the lab, it may take a bit since I am pretty much time offline these days.
Can you add a second rule and see what happens? At the first sight of the debug messages, the result from database is ok, should not be a null value there.
Cheers, Daniel
On 11/23/10 10:38 AM, Javier Gallart wrote:
Thanks Daniel
you can find both the gdb and ./kamailio output at http://pastebin.ca/1999786
Regards
Javier
On Mon, Nov 22, 2010 at 10:19 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
On 11/22/10 5:32 PM, Javier Gallart wrote:
Hello
I'd like to do some tests with the dialplan module, but Kamailio is crashing when it loads it. Actually the module is properly loaded if the table is empty, but it fails when a row is added; so I guess it's related with the way I've inserted the values. A core file is generated:
Core was generated by `./kamailio -f ../etc/kamailio/kamailio.cfg'. Program terminated with signal 11, Segmentation fault. #0 build_rule (values=0x0) at dp_db.c:439 439 new_rule->dpid = VAL_INT(values);
this looks a bit strange at first sight, 'values' parameter is NULL and should not happen. Besides that, in build_rule() functions there are other uses of 'values' before line 439, so the crash should have been earlier.
Please send full backtrace of the core, in gdb, run 'bt' command (or better 'bt full').
Also, if this reproducible, run:
./kamailio -f ../etc/kamailio/kamailio.cfg -E -dddd
and send the output.
Cheers, Daniel
This is the relevant config:
#----- dialplan params --- modparam("dialplan", "db_url", "mysql://xxxx:yyyyy@localhost/db") modparam("dialplan", "table_name", "dialplan") modparam("dialplan", "dpid_col", "dpid") modparam("dialplan", "attrs_pvar", "$avp(s:dp_attrs)")
mysql> describe dialplan;
+-----------+------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-----------+------------------+------+-----+---------+----------------+ | id | int(10) unsigned | NO | PRI | NULL | auto_increment | | dpid | int(11) | NO | | NULL | | | pr | int(11) | NO | | NULL | | | match_op | int(11) | NO | | NULL | | | match_exp | varchar(64) | NO | | NULL | | | match_len | int(11) | NO | | NULL | | | subst_exp | varchar(64) | NO | | NULL | | | repl_exp | varchar(32) | NO | | NULL | | | attrs | varchar(32) | NO | | NULL | | +-----------+------------------+------+-----+---------+----------------+ 9 rows in set (0.00 sec)
mysql> select * from dialplan;
+----+------+----+----------+-----------+-----------+-----------+----------+-------+ | id | dpid | pr | match_op | match_exp | match_len | subst_exp | repl_exp | attrs |
+----+------+----+----------+-----------+-----------+-----------+----------+-------+ | 1 | 1 | 1 | 1 | ^00 | 0 | ^00 | 011 | dp1 |
+----+------+----+----------+-----------+-----------+-----------+----------+-------+ 1 row in set (0.00 sec)
I'm probably making some stupid mistake...any clue?
Thanks in advance
Javier
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
On 11/25/10 4:54 PM, Javier Gallart wrote:
Hi Daniel
I completely reinstalled the OS and installed the latest kamailio git, but the problem persists, although no core is generated now. Apparently it does not depend on the db engine, same thing happens for mysql and postgres. You can see the full log here: http://pastebin.ca/2002031 The architechture details are: Ubuntu 10.04.1 LTS \n \l Linux kam-test 2.6.32-24-server #39-Ubuntu SMP Wed Jul 28 06:21:40 UTC 2010 x86_64 GNU/Linux
can you send the following output of following commands in gdb?
# frame 1 # p rows # p *rows # p values # p *values
Thanks, Daniel
Hi Daniel
sorry but I'm deeply ignorant of gdb, this is what I get when I try to run it:
gdb --args ./kamailio -f ../etc/kamailio/kamailio.cfg GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /usr/local/kamailio/sbin/kamailio...done. (gdb) run Starting program: /usr/local/kamailio/sbin/kamailio -f ../etc/kamailio/kamailio.cfg loading modules under /usr/local/kamailio/lib/kamailio/modules_k/:/usr/local/kamailio/lib/kamailio/modules/ [Thread debugging using libthread_db enabled] Cannot find new threads: generic error
Regards
Javi On Thu, Nov 25, 2010 at 10:55 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
On 11/25/10 4:54 PM, Javier Gallart wrote:
Hi Daniel
I completely reinstalled the OS and installed the latest kamailio git, but the problem persists, although no core is generated now. Apparently it does not depend on the db engine, same thing happens for mysql and postgres. You can see the full log here: http://pastebin.ca/2002031 The architechture details are: Ubuntu 10.04.1 LTS \n \l Linux kam-test 2.6.32-24-server #39-Ubuntu SMP Wed Jul 28 06:21:40 UTC 2010 x86_64 GNU/Linux
can you send the following output of following commands in gdb?
# frame 1 # p rows # p *rows # p values # p *values
Thanks, Daniel
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com
Hello,
On 11/26/10 12:12 PM, Javier Gallart wrote:
Hi Daniel
sorry but I'm deeply ignorant of gdb, this is what I get when I try to run it:
use gdb for the core file:
gdb /path/to/kamailio /path/to/corefile
Then do the commands I sent.
Cheers, Daniel
gdb --args ./kamailio -f ../etc/kamailio/kamailio.cfg GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /usr/local/kamailio/sbin/kamailio...done. (gdb) run Starting program: /usr/local/kamailio/sbin/kamailio -f ../etc/kamailio/kamailio.cfg loading modules under /usr/local/kamailio/lib/kamailio/modules_k/:/usr/local/kamailio/lib/kamailio/modules/ [Thread debugging using libthread_db enabled] Cannot find new threads: generic error
Regards
Javi On Thu, Nov 25, 2010 at 10:55 PM, Daniel-Constantin Mierla <miconda@gmail.com mailto:miconda@gmail.com> wrote:
On 11/25/10 4:54 PM, Javier Gallart wrote: Hi Daniel I completely reinstalled the OS and installed the latest kamailio git, but the problem persists, although no core is generated now. Apparently it does not depend on the db engine, same thing happens for mysql and postgres. You can see the full log here: http://pastebin.ca/2002031 The architechture details are: Ubuntu 10.04.1 LTS \n \l Linux kam-test 2.6.32-24-server #39-Ubuntu SMP Wed Jul 28 06:21:40 UTC 2010 x86_64 GNU/Linux can you send the following output of following commands in gdb? # frame 1 # p rows # p *rows # p values # p *values Thanks, Daniel -- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi Daniel
no core files are generated after the last upgrade...
Javi
On Fri, Nov 26, 2010 at 12:32 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
On 11/26/10 12:12 PM, Javier Gallart wrote:
Hi Daniel
sorry but I'm deeply ignorant of gdb, this is what I get when I try to run it:
use gdb for the core file:
gdb /path/to/kamailio /path/to/corefile
Then do the commands I sent.
Cheers, Daniel
gdb --args ./kamailio -f ../etc/kamailio/kamailio.cfg GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later < http://gnu.org/licenses/gpl.html%3E This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /usr/local/kamailio/sbin/kamailio...done. (gdb) run Starting program: /usr/local/kamailio/sbin/kamailio -f ../etc/kamailio/kamailio.cfg loading modules under /usr/local/kamailio/lib/kamailio/modules_k/:/usr/local/kamailio/lib/kamailio/modules/ [Thread debugging using libthread_db enabled] Cannot find new threads: generic error
Regards
Javi On Thu, Nov 25, 2010 at 10:55 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
On 11/25/10 4:54 PM, Javier Gallart wrote:
Hi Daniel
I completely reinstalled the OS and installed the latest kamailio git, but the problem persists, although no core is generated now. Apparently it does not depend on the db engine, same thing happens for mysql and postgres. You can see the full log here: http://pastebin.ca/2002031 The architechture details are: Ubuntu 10.04.1 LTS \n \l Linux kam-test 2.6.32-24-server #39-Ubuntu SMP Wed Jul 28 06:21:40 UTC 2010 x86_64 GNU/Linux
can you send the following output of following commands in gdb?
# frame 1 # p rows # p *rows # p values # p *values
Thanks, Daniel
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
Hello,
On 11/26/10 4:30 PM, Javier Gallart wrote:
Hi Daniel
no core files are generated after the last upgrade...
so now is starting ok? Or still fails but no core are generated?
Cheers, DAniel
Javi
On Fri, Nov 26, 2010 at 12:32 PM, Daniel-Constantin Mierla <miconda@gmail.com mailto:miconda@gmail.com> wrote:
Hello, On 11/26/10 12:12 PM, Javier Gallart wrote:
Hi Daniel sorry but I'm deeply ignorant of gdb, this is what I get when I try to run it:
use gdb for the core file: gdb /path/to/kamailio /path/to/corefile Then do the commands I sent. Cheers, Daniel
gdb --args ./kamailio -f ../etc/kamailio/kamailio.cfg GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/local/kamailio/sbin/kamailio...done. (gdb) run Starting program: /usr/local/kamailio/sbin/kamailio -f ../etc/kamailio/kamailio.cfg loading modules under /usr/local/kamailio/lib/kamailio/modules_k/:/usr/local/kamailio/lib/kamailio/modules/ [Thread debugging using libthread_db enabled] Cannot find new threads: generic error Regards Javi On Thu, Nov 25, 2010 at 10:55 PM, Daniel-Constantin Mierla <miconda@gmail.com <mailto:miconda@gmail.com>> wrote: On 11/25/10 4:54 PM, Javier Gallart wrote: Hi Daniel I completely reinstalled the OS and installed the latest kamailio git, but the problem persists, although no core is generated now. Apparently it does not depend on the db engine, same thing happens for mysql and postgres. You can see the full log here: http://pastebin.ca/2002031 The architechture details are: Ubuntu 10.04.1 LTS \n \l Linux kam-test 2.6.32-24-server #39-Ubuntu SMP Wed Jul 28 06:21:40 UTC 2010 x86_64 GNU/Linux can you send the following output of following commands in gdb? # frame 1 # p rows # p *rows # p values # p *values Thanks, Daniel -- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi
sorry if i didn't make myself clear. It's not starting and no core files are generated either. The startup logs are at http://pastebin.ca/2002031
best regards
javi
On Fri, Nov 26, 2010 at 7:56 PM, Daniel-Constantin Mierla <miconda@gmail.com
wrote:
Hello,
On 11/26/10 4:30 PM, Javier Gallart wrote:
Hi Daniel
no core files are generated after the last upgrade...
so now is starting ok? Or still fails but no core are generated?
Cheers, DAniel
Javi
On Fri, Nov 26, 2010 at 12:32 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
On 11/26/10 12:12 PM, Javier Gallart wrote:
Hi Daniel
sorry but I'm deeply ignorant of gdb, this is what I get when I try to run it:
use gdb for the core file:
gdb /path/to/kamailio /path/to/corefile
Then do the commands I sent.
Cheers, Daniel
gdb --args ./kamailio -f ../etc/kamailio/kamailio.cfg GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later < http://gnu.org/licenses/gpl.html%3E This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /usr/local/kamailio/sbin/kamailio...done. (gdb) run Starting program: /usr/local/kamailio/sbin/kamailio -f ../etc/kamailio/kamailio.cfg loading modules under /usr/local/kamailio/lib/kamailio/modules_k/:/usr/local/kamailio/lib/kamailio/modules/ [Thread debugging using libthread_db enabled] Cannot find new threads: generic error
Regards
Javi On Thu, Nov 25, 2010 at 10:55 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
On 11/25/10 4:54 PM, Javier Gallart wrote:
Hi Daniel
I completely reinstalled the OS and installed the latest kamailio git, but the problem persists, although no core is generated now. Apparently it does not depend on the db engine, same thing happens for mysql and postgres. You can see the full log here: http://pastebin.ca/2002031 The architechture details are: Ubuntu 10.04.1 LTS \n \l Linux kam-test 2.6.32-24-server #39-Ubuntu SMP Wed Jul 28 06:21:40 UTC 2010 x86_64 GNU/Linux
can you send the following output of following commands in gdb?
# frame 1 # p rows # p *rows # p values # p *values
Thanks, Daniel
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
Helllo,
On 11/27/10 9:32 AM, Javier Gallart wrote:
Hi
sorry if i didn't make myself clear. It's not starting and no core files are generated either. The startup logs are at http://pastebin.ca/2002031
be sure you do:
ulimit -c unlimited
Then give -w parameter with a path where is writable for every user, e.g.:
/path/to/kamailio -w /tmp -f /path/to/config
Strange that I test as well ubuntu 10.04, but 32b, and all start fine with the same rule.
Thanks, Daniel
best regards
javi
On Fri, Nov 26, 2010 at 7:56 PM, Daniel-Constantin Mierla <miconda@gmail.com mailto:miconda@gmail.com> wrote:
Hello, On 11/26/10 4:30 PM, Javier Gallart wrote:
Hi Daniel no core files are generated after the last upgrade...
so now is starting ok? Or still fails but no core are generated? Cheers, DAniel
Javi On Fri, Nov 26, 2010 at 12:32 PM, Daniel-Constantin Mierla <miconda@gmail.com <mailto:miconda@gmail.com>> wrote: Hello, On 11/26/10 12:12 PM, Javier Gallart wrote:
Hi Daniel sorry but I'm deeply ignorant of gdb, this is what I get when I try to run it:
use gdb for the core file: gdb /path/to/kamailio /path/to/corefile Then do the commands I sent. Cheers, Daniel
gdb --args ./kamailio -f ../etc/kamailio/kamailio.cfg GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/local/kamailio/sbin/kamailio...done. (gdb) run Starting program: /usr/local/kamailio/sbin/kamailio -f ../etc/kamailio/kamailio.cfg loading modules under /usr/local/kamailio/lib/kamailio/modules_k/:/usr/local/kamailio/lib/kamailio/modules/ [Thread debugging using libthread_db enabled] Cannot find new threads: generic error Regards Javi On Thu, Nov 25, 2010 at 10:55 PM, Daniel-Constantin Mierla <miconda@gmail.com <mailto:miconda@gmail.com>> wrote: On 11/25/10 4:54 PM, Javier Gallart wrote: Hi Daniel I completely reinstalled the OS and installed the latest kamailio git, but the problem persists, although no core is generated now. Apparently it does not depend on the db engine, same thing happens for mysql and postgres. You can see the full log here: http://pastebin.ca/2002031 The architechture details are: Ubuntu 10.04.1 LTS \n \l Linux kam-test 2.6.32-24-server #39-Ubuntu SMP Wed Jul 28 06:21:40 UTC 2010 x86_64 GNU/Linux can you send the following output of following commands in gdb? # frame 1 # p rows # p *rows # p values # p *values Thanks, Daniel -- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi
as you say, it also works for me in a 32b architechture (same kamailio version,db drivers, insert command, configuration...). I've tried to load the same configuration in 2 different Ubuntu 10.04 64b and it fails in both.
I've applied the ulimit command and then Ive started kamailio with -w /tmp. root@kam-test:/tmp# ls -l core -rw------- 1 root root 40361984 2010-11-28 11:23 core
You will find the core file anasysis here: http://pastebin.ca/2004631
Thanks
Javi
On Sat, Nov 27, 2010 at 10:29 AM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Helllo,
On 11/27/10 9:32 AM, Javier Gallart wrote:
Hi
sorry if i didn't make myself clear. It's not starting and no core files are generated either. The startup logs are at http://pastebin.ca/2002031
be sure you do:
ulimit -c unlimited
Then give -w parameter with a path where is writable for every user, e.g.:
/path/to/kamailio -w /tmp -f /path/to/config
Strange that I test as well ubuntu 10.04, but 32b, and all start fine with the same rule.
Thanks, Daniel
best regards
javi
On Fri, Nov 26, 2010 at 7:56 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
On 11/26/10 4:30 PM, Javier Gallart wrote:
Hi Daniel
no core files are generated after the last upgrade...
so now is starting ok? Or still fails but no core are generated?
Cheers, DAniel
Javi
On Fri, Nov 26, 2010 at 12:32 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
On 11/26/10 12:12 PM, Javier Gallart wrote:
Hi Daniel
sorry but I'm deeply ignorant of gdb, this is what I get when I try to run it:
use gdb for the core file:
gdb /path/to/kamailio /path/to/corefile
Then do the commands I sent.
Cheers, Daniel
gdb --args ./kamailio -f ../etc/kamailio/kamailio.cfg GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later < http://gnu.org/licenses/gpl.html%3E This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /usr/local/kamailio/sbin/kamailio...done. (gdb) run Starting program: /usr/local/kamailio/sbin/kamailio -f ../etc/kamailio/kamailio.cfg loading modules under /usr/local/kamailio/lib/kamailio/modules_k/:/usr/local/kamailio/lib/kamailio/modules/ [Thread debugging using libthread_db enabled] Cannot find new threads: generic error
Regards
Javi On Thu, Nov 25, 2010 at 10:55 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
On 11/25/10 4:54 PM, Javier Gallart wrote:
Hi Daniel
I completely reinstalled the OS and installed the latest kamailio git, but the problem persists, although no core is generated now. Apparently it does not depend on the db engine, same thing happens for mysql and postgres. You can see the full log here: http://pastebin.ca/2002031 The architechture details are: Ubuntu 10.04.1 LTS \n \l Linux kam-test 2.6.32-24-server #39-Ubuntu SMP Wed Jul 28 06:21:40 UTC 2010 x86_64 GNU/Linux
can you send the following output of following commands in gdb?
# frame 1 # p rows # p *rows # p values # p *values
Thanks, Daniel
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
Hello
I haven't been able to fix this problem yet. Has anyone run into a similar issue?
Thanks
Javi
On Sun, Nov 28, 2010 at 5:39 PM, Javier Gallart jgallartm@gmail.com wrote:
Hi
as you say, it also works for me in a 32b architechture (same kamailio version,db drivers, insert command, configuration...). I've tried to load the same configuration in 2 different Ubuntu 10.04 64b and it fails in both.
I've applied the ulimit command and then Ive started kamailio with -w /tmp. root@kam-test:/tmp# ls -l core -rw------- 1 root root 40361984 2010-11-28 11:23 core
You will find the core file anasysis here: http://pastebin.ca/2004631
Thanks
Javi
On Sat, Nov 27, 2010 at 10:29 AM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Helllo,
On 11/27/10 9:32 AM, Javier Gallart wrote:
Hi
sorry if i didn't make myself clear. It's not starting and no core files are generated either. The startup logs are at http://pastebin.ca/2002031
be sure you do:
ulimit -c unlimited
Then give -w parameter with a path where is writable for every user, e.g.:
/path/to/kamailio -w /tmp -f /path/to/config
Strange that I test as well ubuntu 10.04, but 32b, and all start fine with the same rule.
Thanks, Daniel
best regards
javi
On Fri, Nov 26, 2010 at 7:56 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
On 11/26/10 4:30 PM, Javier Gallart wrote:
Hi Daniel
no core files are generated after the last upgrade...
so now is starting ok? Or still fails but no core are generated?
Cheers, DAniel
Javi
On Fri, Nov 26, 2010 at 12:32 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
On 11/26/10 12:12 PM, Javier Gallart wrote:
Hi Daniel
sorry but I'm deeply ignorant of gdb, this is what I get when I try to run it:
use gdb for the core file:
gdb /path/to/kamailio /path/to/corefile
Then do the commands I sent.
Cheers, Daniel
gdb --args ./kamailio -f ../etc/kamailio/kamailio.cfg GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later < http://gnu.org/licenses/gpl.html%3E This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /usr/local/kamailio/sbin/kamailio...done. (gdb) run Starting program: /usr/local/kamailio/sbin/kamailio -f ../etc/kamailio/kamailio.cfg loading modules under /usr/local/kamailio/lib/kamailio/modules_k/:/usr/local/kamailio/lib/kamailio/modules/ [Thread debugging using libthread_db enabled] Cannot find new threads: generic error
Regards
Javi On Thu, Nov 25, 2010 at 10:55 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
On 11/25/10 4:54 PM, Javier Gallart wrote:
Hi Daniel
I completely reinstalled the OS and installed the latest kamailio git, but the problem persists, although no core is generated now. Apparently it does not depend on the db engine, same thing happens for mysql and postgres. You can see the full log here: http://pastebin.ca/2002031 The architechture details are: Ubuntu 10.04.1 LTS \n \l Linux kam-test 2.6.32-24-server #39-Ubuntu SMP Wed Jul 28 06:21:40 UTC 2010 x86_64 GNU/Linux
can you send the following output of following commands in gdb?
# frame 1 # p rows # p *rows # p values # p *values
Thanks, Daniel
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
Hello,
On 12/6/10 11:08 AM, Javier Gallart wrote:
Hello
I haven't been able to fix this problem yet. Has anyone run into a similar issue?
is it a clean 64b install, or is a mixed 32b - 64b. I wonder if the modules are linked to a different version of the library.
I will try to get to a 64b for testing, although I was using dialplan on such arch many times with older releases.
Btw, can you paste the list of loaded modules in the config? Just to see which ones are using connection to db.
Cheers, Daniel
Thanks
Javi
On Sun, Nov 28, 2010 at 5:39 PM, Javier Gallart <jgallartm@gmail.com mailto:jgallartm@gmail.com> wrote:
Hi as you say, it also works for me in a 32b architechture (same kamailio version,db drivers, insert command, configuration...). I've tried to load the same configuration in 2 different Ubuntu 10.04 64b and it fails in both. I've applied the ulimit command and then Ive started kamailio with -w /tmp. root@kam-test:/tmp# ls -l core -rw------- 1 root root 40361984 2010-11-28 11:23 core You will find the core file anasysis here: http://pastebin.ca/2004631 Thanks Javi On Sat, Nov 27, 2010 at 10:29 AM, Daniel-Constantin Mierla <miconda@gmail.com <mailto:miconda@gmail.com>> wrote: Helllo, On 11/27/10 9:32 AM, Javier Gallart wrote:
Hi sorry if i didn't make myself clear. It's not starting and no core files are generated either. The startup logs are at http://pastebin.ca/2002031
be sure you do: ulimit -c unlimited Then give -w parameter with a path where is writable for every user, e.g.: /path/to/kamailio -w /tmp -f /path/to/config Strange that I test as well ubuntu 10.04, but 32b, and all start fine with the same rule. Thanks, Daniel
best regards javi On Fri, Nov 26, 2010 at 7:56 PM, Daniel-Constantin Mierla <miconda@gmail.com <mailto:miconda@gmail.com>> wrote: Hello, On 11/26/10 4:30 PM, Javier Gallart wrote:
Hi Daniel no core files are generated after the last upgrade...
so now is starting ok? Or still fails but no core are generated? Cheers, DAniel
Javi On Fri, Nov 26, 2010 at 12:32 PM, Daniel-Constantin Mierla <miconda@gmail.com <mailto:miconda@gmail.com>> wrote: Hello, On 11/26/10 12:12 PM, Javier Gallart wrote:
Hi Daniel sorry but I'm deeply ignorant of gdb, this is what I get when I try to run it:
use gdb for the core file: gdb /path/to/kamailio /path/to/corefile Then do the commands I sent. Cheers, Daniel
gdb --args ./kamailio -f ../etc/kamailio/kamailio.cfg GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/local/kamailio/sbin/kamailio...done. (gdb) run Starting program: /usr/local/kamailio/sbin/kamailio -f ../etc/kamailio/kamailio.cfg loading modules under /usr/local/kamailio/lib/kamailio/modules_k/:/usr/local/kamailio/lib/kamailio/modules/ [Thread debugging using libthread_db enabled] Cannot find new threads: generic error Regards Javi On Thu, Nov 25, 2010 at 10:55 PM, Daniel-Constantin Mierla <miconda@gmail.com <mailto:miconda@gmail.com>> wrote: On 11/25/10 4:54 PM, Javier Gallart wrote: Hi Daniel I completely reinstalled the OS and installed the latest kamailio git, but the problem persists, although no core is generated now. Apparently it does not depend on the db engine, same thing happens for mysql and postgres. You can see the full log here: http://pastebin.ca/2002031 The architechture details are: Ubuntu 10.04.1 LTS \n \l Linux kam-test 2.6.32-24-server #39-Ubuntu SMP Wed Jul 28 06:21:40 UTC 2010 x86_64 GNU/Linux can you send the following output of following commands in gdb? # frame 1 # p rows # p *rows # p values # p *values Thanks, Daniel -- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi Daniel
it's a clean 64 bit instalallation. This is the list of loaded modules: loadmodule "db_mysql.so" #!endif
loadmodule "db_postgres.so" loadmodule "mi_fifo.so" loadmodule "debugger.so" loadmodule "kex.so" loadmodule "tm.so" loadmodule "tmx.so" loadmodule "sl.so" loadmodule "rr.so" loadmodule "pv.so" loadmodule "avpops.so" loadmodule "maxfwd.so" loadmodule "usrloc.so" loadmodule "registrar.so" loadmodule "textops.so" loadmodule "textopsx.so" loadmodule "siputils.so" loadmodule "xlog.so" loadmodule "sanity.so" loadmodule "ctl.so" loadmodule "mi_rpc.so" loadmodule "acc.so" loadmodule "cfgutils.so" loadmodule "sqlops.so" loadmodule "htable.so" loadmodule "db_flatstore.so" loadmodule "uac_redirect.so" loadmodule "dialplan.so" loadmodule "auth.so" loadmodule "auth_db.so" loadmodule "permissions.so"
Regards
Javi On Mon, Dec 6, 2010 at 11:59 AM, Daniel-Constantin Mierla <miconda@gmail.com
wrote:
Hello,
On 12/6/10 11:08 AM, Javier Gallart wrote:
Hello
I haven't been able to fix this problem yet. Has anyone run into a similar issue?
is it a clean 64b install, or is a mixed 32b - 64b. I wonder if the modules are linked to a different version of the library.
I will try to get to a 64b for testing, although I was using dialplan on such arch many times with older releases.
Btw, can you paste the list of loaded modules in the config? Just to see which ones are using connection to db.
Cheers, Daniel
Thanks
Javi
On Sun, Nov 28, 2010 at 5:39 PM, Javier Gallart jgallartm@gmail.comwrote:
Hi
as you say, it also works for me in a 32b architechture (same kamailio version,db drivers, insert command, configuration...). I've tried to load the same configuration in 2 different Ubuntu 10.04 64b and it fails in both.
I've applied the ulimit command and then Ive started kamailio with -w /tmp. root@kam-test:/tmp# ls -l core -rw------- 1 root root 40361984 2010-11-28 11:23 core
You will find the core file anasysis here: http://pastebin.ca/2004631
Thanks
Javi
On Sat, Nov 27, 2010 at 10:29 AM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Helllo,
On 11/27/10 9:32 AM, Javier Gallart wrote:
Hi
sorry if i didn't make myself clear. It's not starting and no core files are generated either. The startup logs are at http://pastebin.ca/2002031
be sure you do:
ulimit -c unlimited
Then give -w parameter with a path where is writable for every user, e.g.:
/path/to/kamailio -w /tmp -f /path/to/config
Strange that I test as well ubuntu 10.04, but 32b, and all start fine with the same rule.
Thanks, Daniel
best regards
javi
On Fri, Nov 26, 2010 at 7:56 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
On 11/26/10 4:30 PM, Javier Gallart wrote:
Hi Daniel
no core files are generated after the last upgrade...
so now is starting ok? Or still fails but no core are generated?
Cheers, DAniel
Javi
On Fri, Nov 26, 2010 at 12:32 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
On 11/26/10 12:12 PM, Javier Gallart wrote:
Hi Daniel
sorry but I'm deeply ignorant of gdb, this is what I get when I try to run it:
use gdb for the core file:
gdb /path/to/kamailio /path/to/corefile
Then do the commands I sent.
Cheers, Daniel
gdb --args ./kamailio -f ../etc/kamailio/kamailio.cfg GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later < http://gnu.org/licenses/gpl.html%3E This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /usr/local/kamailio/sbin/kamailio...done. (gdb) run Starting program: /usr/local/kamailio/sbin/kamailio -f ../etc/kamailio/kamailio.cfg loading modules under /usr/local/kamailio/lib/kamailio/modules_k/:/usr/local/kamailio/lib/kamailio/modules/ [Thread debugging using libthread_db enabled] Cannot find new threads: generic error
Regards
Javi On Thu, Nov 25, 2010 at 10:55 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
On 11/25/10 4:54 PM, Javier Gallart wrote:
> Hi Daniel > > I completely reinstalled the OS and installed the latest kamailio > git, but the problem persists, although no core is generated now. Apparently > it does not depend on the db engine, same thing happens for mysql and > postgres. You can see the full log here: http://pastebin.ca/2002031 > The architechture details are: > Ubuntu 10.04.1 LTS \n \l > Linux kam-test 2.6.32-24-server #39-Ubuntu SMP Wed Jul 28 06:21:40 > UTC 2010 x86_64 GNU/Linux > can you send the following output of following commands in gdb?
# frame 1 # p rows # p *rows # p values # p *values
Thanks, Daniel
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
Hi Javier,
I got access to a troubleshooting environment where the issue could be reproduced. So now it is fixed on latest version of branch 3.1. Please give it a try and let me know if works ok for you. It was a 32b to 64b issues with a parameter given to pcre library (the reason didn't reproduce on my system).
Cheers, Daniel
On 12/6/10 12:47 PM, Javier Gallart wrote:
Hi Daniel
it's a clean 64 bit instalallation. This is the list of loaded modules: loadmodule "db_mysql.so" #!endif
loadmodule "db_postgres.so" loadmodule "mi_fifo.so" loadmodule "debugger.so" loadmodule "kex.so" loadmodule "tm.so" loadmodule "tmx.so" loadmodule "sl.so" loadmodule "rr.so" loadmodule "pv.so" loadmodule "avpops.so" loadmodule "maxfwd.so" loadmodule "usrloc.so" loadmodule "registrar.so" loadmodule "textops.so" loadmodule "textopsx.so" loadmodule "siputils.so" loadmodule "xlog.so" loadmodule "sanity.so" loadmodule "ctl.so" loadmodule "mi_rpc.so" loadmodule "acc.so" loadmodule "cfgutils.so" loadmodule "sqlops.so" loadmodule "htable.so" loadmodule "db_flatstore.so" loadmodule "uac_redirect.so" loadmodule "dialplan.so" loadmodule "auth.so" loadmodule "auth_db.so" loadmodule "permissions.so"
Regards
Javi On Mon, Dec 6, 2010 at 11:59 AM, Daniel-Constantin Mierla <miconda@gmail.com mailto:miconda@gmail.com> wrote:
Hello, On 12/6/10 11:08 AM, Javier Gallart wrote:
Hello I haven't been able to fix this problem yet. Has anyone run into a similar issue?
is it a clean 64b install, or is a mixed 32b - 64b. I wonder if the modules are linked to a different version of the library. I will try to get to a 64b for testing, although I was using dialplan on such arch many times with older releases. Btw, can you paste the list of loaded modules in the config? Just to see which ones are using connection to db. Cheers, Daniel
Hi Daniel
thanks for looking into this issue...it works now!. Kamailio is starting up smoothly with the latest git loading a non-empty diaplan. I've tested the dp_translate() function in the config and it also works fine.
There is a small problem with the "mi dp_translate" command. This is the dialplan table: | id | dpid | pr | match_op | match_exp | match_len | subst_exp | repl_exp | attrs | +----+------+----+----------+-----------+-----------+-----------+----------+-------+ | 1 | 1 | 1 | 1 | ^011 | 0 | ^011(.*) | 00\1 | test |
When I execute the fifo command it works fine: /usr/local/kamailio/sbin# kamctl fifo dp_translate 1 "01123456789" Output:: 0023456789 ATTRIBUTES:: test Jan 3 10:24:13 kam-test ./kamailio[5297]: DEBUG: dialplan [dp_repl.c:308]: regex operator testing Jan 3 10:24:13 kam-test ./kamailio[5297]: DEBUG: dialplan [dp_repl.c:344]: found a matching rule 0x7fecd47c7a80: pr 1, match_exp ^011 Jan 3 10:24:13 kam-test ./kamailio[5297]: DEBUG: dialplan [dp_repl.c:351]: the rule's attrs are test Jan 3 10:24:13 kam-test ./kamailio[5297]: DEBUG: dialplan [dp_repl.c:362]: the copied attributes are: test Jan 3 10:24:13 kam-test ./kamailio[5297]: DEBUG: dialplan [dialplan.c:541]: input 01123456789 with dpid 1 => output 0023456789
,whereas the mi command output is: sercmd> mi dp_translate 1 "01123456789" error: 500 - execution failed Jan 3 10:24:35 kam-test ./kamailio[5298]: DEBUG: dialplan [dp_repl.c:308]: regex operator testing Jan 3 10:24:35 kam-test ./kamailio[5298]: DEBUG: dialplan [dp_repl.c:339]: no matching rule Jan 3 10:24:35 kam-test ./kamailio[5298]: DEBUG: dialplan [dialplan.c:537]: could not translate "01123456789" with dpid 1
What do you think?
Regards
Javi
On Mon, Jan 3, 2011 at 12:30 PM, Daniel-Constantin Mierla <miconda@gmail.com
wrote:
Hi Javier,
I got access to a troubleshooting environment where the issue could be reproduced. So now it is fixed on latest version of branch 3.1. Please give it a try and let me know if works ok for you. It was a 32b to 64b issues with a parameter given to pcre library (the reason didn't reproduce on my system).
Cheers, Daniel
On 12/6/10 12:47 PM, Javier Gallart wrote:
Hi Daniel
it's a clean 64 bit instalallation. This is the list of loaded modules: loadmodule "db_mysql.so" #!endif
loadmodule "db_postgres.so" loadmodule "mi_fifo.so" loadmodule "debugger.so" loadmodule "kex.so" loadmodule "tm.so" loadmodule "tmx.so" loadmodule "sl.so" loadmodule "rr.so" loadmodule "pv.so" loadmodule "avpops.so" loadmodule "maxfwd.so" loadmodule "usrloc.so" loadmodule "registrar.so" loadmodule "textops.so" loadmodule "textopsx.so" loadmodule "siputils.so" loadmodule "xlog.so" loadmodule "sanity.so" loadmodule "ctl.so" loadmodule "mi_rpc.so" loadmodule "acc.so" loadmodule "cfgutils.so" loadmodule "sqlops.so" loadmodule "htable.so" loadmodule "db_flatstore.so" loadmodule "uac_redirect.so" loadmodule "dialplan.so" loadmodule "auth.so" loadmodule "auth_db.so" loadmodule "permissions.so"
Regards
Javi On Mon, Dec 6, 2010 at 11:59 AM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
On 12/6/10 11:08 AM, Javier Gallart wrote:
Hello
I haven't been able to fix this problem yet. Has anyone run into a similar issue?
is it a clean 64b install, or is a mixed 32b - 64b. I wonder if the modules are linked to a different version of the library.
I will try to get to a 64b for testing, although I was using dialplan on such arch many times with older releases.
Btw, can you paste the list of loaded modules in the config? Just to see which ones are using connection to db.
Cheers, Daniel
-- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
Thanks Juha...that was it.
Regards
Javi On Mon, Jan 3, 2011 at 4:37 PM, Juha Heinanen jh@tutpro.com wrote:
Javier Gallart writes:
,whereas the mi command output is: sercmd> mi dp_translate 1 "01123456789"
try
mi dp_translate 1 s:01123456789
-- juha