[OpenSIPS-Users] Opensips 1.7.2 segfault

Daniel Nihlén daniel at room40.se
Thu May 17 13:06:55 CEST 2012


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.

I anyone can help me with this Ill send you core-dump and full log right away, also good to know this is reproducable.

Syslog says 
May 17 02:36:55 sbc-sig02 kernel: [13780177.600239] opensips[23063]: segfault at 83c1000 ip 0805b3ee sp bffd66
a0 error 6 in opensips[8048000+139000]



Opensips log says (I took away log from other processes):
May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:core:parse_headers: flags=ffffffffffffffff
May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:core:get_hdr_field: content_length=208
May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:core:get_hdr_field: found end of header
May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:uri:has_totag: no totag
May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:core:parse_headers: flags=78
May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:tm:t_lookup_request: start searching: hash=7966, isACK=0
May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:tm:matching_3261: RFC3261 transaction matching failed
May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:tm:t_lookup_request: no transaction found
May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:core:parse_headers: flags=200
May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:rr:find_first_route: No Route headers found
May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:rr:loose_route: There is no Route HF
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']
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
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
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
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]
May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:db_mysql:db_mysql_get_columns: use DB_STRING result type
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
May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:avpops:db_query_avp: no result after query
May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:avpops:db_close_query: close avp query
May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:core:db_free_columns: freeing result columns at 0x81f063c
May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:core:db_free_rows: freeing 0 rows
May 17 02:36:55 sbc-sig02 /usr/local/sbin/opensips[23063]: DBG:core:db_free_result: freeing result set at 0x81f0734

May 17 02:36:56 sbc-sig02 /usr/local/sbin/opensips[23058]: DBG:core:handle_sigs: status = 139
May 17 02:36:56 sbc-sig02 /usr/local/sbin/opensips[23058]: INFO:core:handle_sigs: child process 23063 exited by a signal 11
May 17 02:36:56 sbc-sig02 /usr/local/sbin/opensips[23058]: INFO:core:handle_sigs: core was generated
May 17 02:36:56 sbc-sig02 /usr/local/sbin/opensips[23058]: INFO:core:handle_sigs: terminating due to SIGCHLD
May 17 02:36:56 sbc-sig02 /usr/local/sbin/opensips[23150]: INFO:core:sig_usr: signal 15 received
May 17 02:36:56 sbc-sig02 /usr/local/sbin/opensips[23149]: INFO:core:sig_usr: signal 15 received
May 17 02:36:56 sbc-sig02 /usr/local/sbin/opensips[23142]: INFO:core:sig_usr: signal 15 received
May 17 02:36:56 sbc-sig02 /usr/local/sbin/opensips[23141]: INFO:core:sig_usr: signal 15 received
May 17 02:36:56 sbc-sig02 /usr/local/sbin/opensips[23140]: INFO:core:sig_usr: signal 15 received
May 17 02:36:56 sbc-sig02 /usr/local/sbin/opensips[23139]: INFO:core:sig_usr: signal 15 received



Thanks a lot
Daniel


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120517/1ba1ef23/attachment.htm>


More information about the Users mailing list