[asterisk-bugs] [JIRA] (ASTERISK-23675) Segmentation Fault on first registration using res_odbc
Leandro Dardini (JIRA)
noreply at issues.asterisk.org
Fri Apr 25 19:53:18 CDT 2014
Leandro Dardini created ASTERISK-23675:
------------------------------------------
Summary: Segmentation Fault on first registration using res_odbc
Key: ASTERISK-23675
URL: https://issues.asterisk.org/jira/browse/ASTERISK-23675
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Resources/res_config_odbc
Affects Versions: 12.2.0
Environment: Linux, CentOS 6.5, 64bit
Reporter: Leandro Dardini
Severity: Critical
Attachments: backtrace.txt
Starting with a perfectly working configuration for asterisk 12.1.1 using realtime sip peers via ODBC on MySQL server, compiled asterisk 12.2.0 and run, it crashes with segmentation fault when the first registration attempt is received by a phone.
Last part of backtrace:
Core was generated by `/usr/sbin/asterisk -f -vvvg -c'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007f70708e9cb7 in update_odbc (database=0x7f706b848200 "asterisk1", table=0x7f706b848100 "sipfriends", keyfield=0x7f707ab6139b "name", lookup=0x7f70c006e3c8 "101-IDSSOFT", fields=0x7f70c000a8c0) at res_config_odbc.c:493
493 while ((field = field->next)) {
#0 0x00007f70708e9cb7 in update_odbc (database=0x7f706b848200 "asterisk1", table=0x7f706b848100 "sipfriends", keyfield=0x7f707ab6139b "name", lookup=0x7f70c006e3c8 "101-IDSSOFT", fields=0x7f70c000a8c0) at res_co
nfig_odbc.c:493
obj = 0x3034d28
stmt = 0x7f706b848100
sql = "UPDATE sipfriends SET regserver=?, lastms=?, defaultuser=?, port=?", '\000' <repeats 14 times>"\377, \377\377\377\000\000\000\000\000\205\204kp\177", '\000' <repeats 26 times>"\223, uR\000\000\000\
000\000`\205\204k\000\000\070f\340\063\211\000\000\000\000\000\v*a\000\000\000\000\000\205\061a\000\000\000\000\000\377\377\377\377\354\t\000\000\364\"a\000\000\000\000\000\016*a\000\000\000\000\000y1a\000\000\00
0\000\000P\200\204kp\177\000\000\035HM\000\000\000\000\000ҙ$\002\000\000\000\000\240\200\204kp\177\000\000Ѐ\204kp\177\000\000\310IM\000\000\000\000\000\350\317\006\300p\177\000\000\220\201\204kp"...
rowcount = 0
field = 0x0
res = 32624
count = 4
paramcount = 4
cps = {sql = 0x7f706b847f70 "UPDATE sipfriends SET regserver=?, lastms=?, defaultuser=?, port=?", extra = 0x7f70c006e3c8 "101-IDSSOFT", __field_mgr_pool = 0x7f70c00797c0, encoding = {0x8c6e46 "" <repeats
256 times>}, __field_mgr = {last_alloc = 0x0, embedded_pool = 0x0}, fields = 0x7f70c000a8c0, skip = 0}
tableptr = 0x31f8380
column = 0x31f8510
connected_flag = {flags = 4}
__PRETTY_FUNCTION__ = "update_odbc"
#1 0x00000000004d5a6c in ast_update_realtime_fields (family=0x7f707ab61367 "sippeers", keyfield=0x7f707ab6139b "name", lookup=0x7f70c006e3c8 "101-IDSSOFT", fields=0x7f70c000a8c0) at config.c:2940
eng = 0x7f7070aed760
res = -1
i = 1
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list