[OpenSIPS-Users] core dump when using uac_registrant + db_text

Vlad Paiu vladpaiu at opensips.org
Mon Oct 8 12:03:28 CEST 2012


Hello,

Can you please use gdb to open the core dump, and then run
      bt full
and paste here the output ?

Regards,

Vlad Paiu
OpenSIPS Developer
http://www.opensips-solutions.com


On 10/08/2012 12:59 PM, Alexandr A. Alexandrov wrote:
> Hi!
>
> I am trying to use uac_registrant with db_text.
> Here is 'registrant' table:
>
> id(int,auto) registrar(string) proxy(string,null) aor(string) 
> third_party_registrant(string,null) username(string,null) 
> password(string,null) binding_URI(string) binding_params(string,null) 
> expiry(int,null) forced_socket(string,null)
> 1:sip\:wi\ngsof\t.ma\ngosip.\ru::sip\:mf\tes\t1 at wi\ngsof\t.ma\ngosip.\ru::mf\tes\t1:somepass:sip\:mf\tes\t1 at wi\ngsof\t.ma\ngosip.\ru::::
>
> The row seems to be ok (all escapes, \n in the end of line)
>
> Here is what I get in log:
>
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: request for table [registrant]
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: db is [/usr/local/etc/opensips/dbtext]
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: loading file 
> [/usr/local/etc/opensips/dbtext/registrant]
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_table_new: mtime is 1349689164
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: column[0] is INT!
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: column[1] is STR!
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: column[1] is actually STRING!
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: column[2] is STR!
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: column[2] is actually STRING!
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: column[3] is STR!
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: column[3] is actually STRING!
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: column[4] is STR!
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: column[4] is actually STRING!
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: column[5] is STR!
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: column[5] is actually STRING!
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: column[6] is STR!
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: column[6] is actually STRING!
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: column[7] is STR!
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: column[7] is actually STRING!
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: column[8] is STR!
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: column[8] is actually STRING!
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: column[9] is INT!
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: column[10] is STR!
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_load_file: column[10] is actually STRING!
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_query: new res with 10 cols
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:db_text:dbt_result_new: new res with 10 cols
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:core:db_new_result: allocate 48 bytes for result set at 0x7fdded96baf8
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:core:db_allocate_columns: allocate 280 bytes for result columns at 
> 0x7fdded96a988
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> DBG:core:db_allocate_rows: allocate 336 bytes for result rows and 
> values at 0x7fdded96aab8
> Oct  8 13:39:30 prod2 /usr/local/sbin/opensips[30380]: 
> INFO:uac_registrant:load_reg_info_from_db: loading [1] records from db
> Oct  8 13:39:30 prod2 kernel: opensips[30380]: segfault at 0 ip 
> 00007fddeaf63ddf sp 00007ffff64e0f60 error 4 in 
> uac_registrant.so[7fddeaf61000+e000]
> Oct  8 13:39:30 prod2 opensips: DBG:core:wait_status_code: read code 0 
> ? rc = 0, errno=Inappropriate ioctl for device
> Oct  8 13:39:30 prod2 opensips: INFO:core:daemonize: pre-daemon 
> process exiting with -1
>
> Best reagrds,
> Alexandr A. Alexandrov
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121008/c75d0620/attachment.htm>


More information about the Users mailing list