<div>Incoming INVITE makes Opensips segfault. INVITE is missing host (only has a phone number, not so good) in r-uri and I am running rewritehostport host on the request. Not sure if that exactly what causes segfault, and even if sip is malformed i think segfault is a bit tough.</div><div><br></div><div>I anyone can help me with this Ill send you core-dump and full log right away, also good to know this is reproducable.</div><div><br></div><div>
Syslog says
</div><div><div>May 17 02:36:55 sbc-sig02 kernel: [13780177.600239] opensips[23063]: segfault at 83c1000 ip 0805b3ee sp bffd66</div><div>a0 error 6 in opensips[8048000+139000]</div></div><div><br></div><div><br></div><div>Opensips log says (I took away log from other processes):</div><div><div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:core:parse_headers: flags=ffffffffffffffff</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:core:get_hdr_field: content_length=208</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:core:get_hdr_field: found end of header</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:uri:has_totag: no totag</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:core:parse_headers: flags=78</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:tm:t_lookup_request: start searching: hash=7966, isACK=0</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:tm:matching_3261: RFC3261 transaction matching failed</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:tm:t_lookup_request: no transaction found</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:core:parse_headers: flags=200</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:rr:find_first_route: No Route headers found</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:rr:loose_route: There is no Route HF</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:avpops:ops_dbquery_avps: query [SELECT dest_ip from mobot_forward where number='0850385721']</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:core:db_new_result: allocate 28 bytes for result set at 0x81f0734</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:db_mysql:db_mysql_get_columns: 1 columns returned from the query</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:core:db_allocate_columns: allocate 16 bytes for result columns at 0x81f063c</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:db_mysql:db_mysql_get_columns: RES_NAMES(0x81f0640)[0]=[dest_ip]</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:db_mysql:db_mysql_get_columns: use DB_STRING result type</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:db_mysql:db_mysql_convert_rows: no rows returned from the query</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:avpops:db_query_avp: no result after query</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:avpops:db_close_query: close avp query</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:core:db_free_columns: freeing result columns at 0x81f063c</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:core:db_free_rows: freeing 0 rows</div><div>May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:core:db_free_result: freeing result set at 0x81f0734</div></div><div>May 17 02:36:56 sbc-sig02 /usr/local/sbin/opensips[23058]: DBG:core:handle_sigs: status = 139</div><div>May 17 02:36:56 sbc-sig02 /usr/local/sbin/opensips[23058]: INFO:core:handle_sigs: child process 23063 exited by a signal 11</div><div>May 17 02:36:56 sbc-sig02 /usr/local/sbin/opensips[23058]: INFO:core:handle_sigs: core was generated</div><div>May 17 02:36:56 sbc-sig02 /usr/local/sbin/opensips[23058]: INFO:core:handle_sigs: terminating due to SIGCHLD</div><div>May 17 02:36:56 sbc-sig02 /usr/local/sbin/opensips[23150]: INFO:core:sig_usr: signal 15 received</div><div>May 17 02:36:56 sbc-sig02 /usr/local/sbin/opensips[23149]: INFO:core:sig_usr: signal 15 received</div><div>May 17 02:36:56 sbc-sig02 /usr/local/sbin/opensips[23142]: INFO:core:sig_usr: signal 15 received</div><div>May 17 02:36:56 sbc-sig02 /usr/local/sbin/opensips[23141]: INFO:core:sig_usr: signal 15 received</div><div>May 17 02:36:56 sbc-sig02 /usr/local/sbin/opensips[23140]: INFO:core:sig_usr: signal 15 received</div><div>May 17 02:36:56 sbc-sig02 /usr/local/sbin/opensips[23139]: INFO:core:sig_usr: signal 15 received</div></div><div><br></div><div><br></div><div>Thanks a lot</div><div>Daniel</div><div><br></div><div><br></div>
<div></div>