[OpenSIPS-Users] Dialplan Segfaults with Blank Fields
Anca Vamanu
anca at opensips.org
Wed Jun 23 10:12:40 CEST 2010
Hi Dave,
I have fixed this. Please update from svn.
Thanks and regards,
--
Anca Vamanu
www.voice-system.ro
On 06/22/2010 11:22 PM, Dave May wrote:
> Bogdan,
>
> In my testing I found that this error still occurs in revision 6981, but only if debug=4 or higher.
>
> #0 0xb785c58b in build_rule (values=0x819acd4) at dp_db.c:382
> 382 LM_DBG("references:%d , max:%d\n",namecount,repl_comp->max_pmatch);
> (gdb) bt
> #0 0xb785c58b in build_rule (values=0x819acd4) at dp_db.c:382
> #1 0xb785d1a4 in dp_load_db () at dp_db.c:249
> #2 0xb785d860 in init_db_data () at dp_db.c:93
> #3 0xb785dc40 in init_data () at dp_db.c:154
> #4 0xb7859c6c in mod_init () at dialplan.c:205
> #5 0x080aa2d3 in init_mod (m=0x817d55c) at sr_module.c:457
> #6 0x080aa24c in init_mod (m=0x817d7b0) at sr_module.c:452
> #7 0x0806c4cb in main (argc=Cannot access memory at address 0x3
> ) at main.c:1351
>
> Dave.
>
> -----Original Message-----
> From: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu
> Sent: Thursday, June 10, 2010 11:10 AM
> To: OpenSIPS users mailling list
> Subject: Re: [OpenSIPS-Users] Dialplan Segfaults with Blank Fields
>
> Hi Sven,
>
> I made a fix on SVN trunk (see revision 6948) - please check it out.
>
> After more tests, I will move it to 1.6 branch too.
>
> Regards,
> Bogdan
>
> Sven Schulz wrote:
>
>> #0 0x00002b566cc159cc in build_rule (values=0x79f540) at dp_db.c:382
>> #1 0x00002b566cc168d3 in dp_load_db () at dp_db.c:249
>> #2 0x00002b566cc0fd1a in mi_reload_rules (cmd_tree=0x87, param=0x0)
>> at dialplan.c:496
>> #3 0x00002b566bb99cd3 in run_mi_cmd (fifo_stream=0x9897720) at
>> ../../mi/mi.h:104
>> #4 mi_fifo_server (fifo_stream=0x9897720) at fifo_fnc.c:490
>> #5 0x00002b566bb9afb1 in fifo_process (rank=<value optimized out>) at
>> mi_fifo.c:213
>> #6 0x000000000047671c in start_module_procs () at sr_module.c:574
>> #7 0x0000000000429e00 in main_loop (argc=1, argv=0x4) at main.c:872
>> #8 main (argc=1, argv=0x4) at main.c:1388
>>
>>
>>
>> On 6/4/10 11:24 AM, "Bogdan-Andrei Iancu"<bogdan at voice-system.ro> wrote:
>>
>> gdb /path/to/opensips /path/to/corefile
>>
>> once you get the gdb prompt, do "bt"
>>
>> Regards,
>> Bogdan
>>
>> Sven Schulz wrote:
>>
>>
>> How do I do that?
>>
>>
>> On 6/3/10 4:27 PM, "Bogdan-Andrei Iancu"
>> <bogdan at voice-system.ro> <mailto:bogdan at voice-system.ro> wrote:
>>
>>
>>
>>
>>
>> Hi Sven,
>>
>> could you get the backtrace from the core file ?
>>
>> Regards,
>> Bogdan
>>
>> Sven Schulz wrote:
>>
>>
>>
>>
>> I was having problem with control panel (dialplan) so
>> I decides to
>> enter diaplan rules using mysql commands. If I dont
>> populate the
>> fields ³sub_exp² and ³repl_exp², opensips will
>> segfault when doing a
>> opensipsctl fifo dp_reload. What Im a doing wrong?
>>
>> insert into dialplan
>> (dpid,pr,match_op,match_exp,match_len) values
>> ('0','1','1','911','0');
>>
>> Which is just a simple rule that matches 911 but
>> doesn¹t manipulate it.
>>
>> My debug looks like this:
>>
>>
>> Jun 3 10:40:51 os2 /sbin/opensips[31304]:
>> DBG:db_mysql:db_mysql_str2val: converting INT [0]
>> Jun 3 10:40:52 os2 /sbin/opensips[31304]:
>> DBG:db_mysql:db_mysql_str2val: converting INT [1]
>> Jun 3 10:40:52 os2 /sbin/opensips[31304]:
>> DBG:db_mysql:db_mysql_str2val: converting INT [1]
>> Jun 3 10:40:52 os2 /sbin/opensips[31304]:
>> DBG:db_mysql:db_mysql_str2val: converting STRING [911]
>> Jun 3 10:40:52 os2 /sbin/opensips[31304]:
>> DBG:db_mysql:db_mysql_str2val: converting INT [0]
>> Jun 3 10:40:52 os2 /sbin/opensips[31304]:
>> DBG:db_mysql:db_mysql_str2val: converting STRING []
>> Jun 3 10:40:52 os2 last message repeated 2 times
>> Jun 3 10:40:52 os2 /sbin/opensips[31304]:
>> DBG:dialplan:build_rule:
>> build_rule
>> Jun 3 10:40:52 os2 /sbin/opensips[31304]:
>> DBG:dialplan:build_rule:
>> references:2 , max:2
>> Jun 3 10:40:52 os2 /sbin/opensips[31304]:
>> DBG:dialplan:build_rule:
>> attrs are
>> Jun 3 10:40:52 os2 /sbin/opensips[31304]:
>> DBG:dialplan:add_rule2hash:
>> new dpl_id 0
>> Jun 3 10:40:52 os2 /sbin/opensips[31304]:
>> DBG:dialplan:add_rule2hash:
>> new index , len 0
>> Jun 3 10:40:52 os2 /sbin/opensips[31304]:
>> DBG:dialplan:add_rule2hash:
>> added the rule id 0 index 0 pr 1 next (nil) to the
>> index with 0 len
>> Jun 3 10:40:52 os2 /sbin/opensips[31304]:
>> DBG:dialplan:build_rule:
>> build_rule
>> Jun 3 10:40:52 os2 /sbin/opensips[31304]:
>> DBG:dialplan:build_rule:
>> references:2 , max:1
>> Jun 3 10:40:52 os2 /sbin/opensips[31304]:
>> DBG:dialplan:build_rule:
>> attrs are
>> Jun 3 10:40:52 os2 /sbin/opensips[31304]:
>> DBG:dialplan:add_rule2hash:
>> added the rule id 0 index 0 pr 1 next (nil) to the
>> index with 0 len
>> Jun 3 10:40:52 os2 /sbin/opensips[31304]:
>> DBG:dialplan:build_rule:
>> build_rule
>> Jun 3 10:40:52 os2 kernel: opensips[31304]: segfault at
>> 0000000000000020 rip 00002b2b257e79cc rsp
>> 00007fffaf333910 error 4
>> Jun 3 10:40:52 os2 /sbin/opensips[31314]:
>> CRITICAL:core:receive_fd:
>> EOF on 19
>> Jun 3 10:40:52 os2 /sbin/opensips[31266]:
>> INFO:core:handle_sigs: child
>> process 31304 exited by a signal 11
>> Jun 3 10:40:52 os2 /sbin/opensips[31314]:
>> DBG:core:handle_ser_child:
>> dead child 11, pid 31304 (shutting down?)
>> Jun 3 10:40:53 os2 /sbin/opensips[31266]:
>> INFO:core:handle_sigs: core
>> was generated
>> Jun 3 10:40:53 os2 /sbin/opensips[31314]:
>> DBG:core:io_watch_del:
>> io_watch_del (0x745920, 19, -1, 0x0) fd_no=21 called
>> Jun 3 10:40:53 os2 /sbin/opensips[31266]:
>> INFO:core:handle_sigs:
>> terminating due to SIGCHLD
>> Jun 3 10:40:53 os2 /sbin/opensips[31301]:
>> INFO:core:sig_usr: signal 15
>> received
>> Jun 3 10:40:53 os2 /sbin/opensips[31314]:
>> INFO:core:sig_usr: signal 15
>> received
>> ------------------------------------------------------------------------
>>
>>
More information about the Users
mailing list