From bugtracker@sip-router.org Wed Mar 5 11:40:27 2014 From: sip-router To: sr-dev@lists.kamailio.org Subject: [sr-dev] [tracker] Task opened: Crash in websocket module Date: Wed, 05 Mar 2014 10:40:21 +0000 Message-ID: <1394016021.5316ff15ef9e7@sip-router.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1220560103==" --===============1220560103== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY. A new Flyspray task has been opened. Details are below.=20 User who did this - Vitaliy Aleksandrov (Vitaliy)=20 Attached to Project - sip-router Summary - Crash in websocket module Task Type - Bug Report Category - Module Status - Unconfirmed Assigned To -=20 Operating System - All Severity - Medium Priority - Normal Reported Version - 4.1 Due in Version - Undecided Due Date - Undecided Details - Latest kamailio 4.1 has a problem very similar to the one described= in the FS#364. In very rare situation kamailio tries to make double free for wsc structure. core: #0 0x00007f18704da425 in raise () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007f18704ddb8b in abort () from /lib/x86_64-linux-gnu/libc.so.6 #2 0x0000000000557c02 in qm_free (qm=3D0x7f185e6ae000, p=3D0x7f185f04d700, f= ile=3D0x7f1868a6a637 "websocket: ws_conn.c", func=3D0x7f1868a6aed9 "_wsconn_r= m", line=3D140) at mem/q_malloc.c:470 #3 0x00007f1868a5b139 in _wsconn_rm (wsc=3D0x7f185f04d700) at ws_conn.c:140 #4 0x00007f1868a5c0e1 in wsconn_rm (wsc=3D0x7f185f04d700, run_event_route=3D= WSCONN_EVENTROUTE_YES) at ws_conn.c:310 #5 0x00007f1868a5f264 in encode_and_send_ws_frame (frame=3D0x7ffffdf56160, c= onn_close=3DCONN_CLOSE_DONT) at ws_frame.c:303 #6 0x00007f1868a63336 in ws_frame_transmit (data=3D0x7ffffdf56230) at ws_fra= me.c:709 #7 0x000000000045933c in sr_event_exec (type=3D11, data=3D0x7ffffdf56230) at= events.c:260 logs: kamailio[21357]: INFO: