{"action":"created","issue":{"url":"https://api.github.com/repos/catalinii/minisatip/issues/85","labels_url":"https://api.github.com/repos/catalinii/minisatip/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/catalinii/minisatip/issues/85/comments","events_url":"https://api.github.com/repos/catalinii/minisatip/issues/85/events","html_url":"https://github.com/catalinii/minisatip/issues/85","id":56664123,"number":85,"title":"crash: *** Error in `./minisatip': double free or corruption (out): 0x0000000000635cb0 ***","user":{"login":"pbriesch","id":1294832,"avatar_url":"https://avatars.githubusercontent.com/u/1294832?v=3","gravatar_id":"","url":"https://api.github.com/users/pbriesch","html_url":"https://github.com/pbriesch","followers_url":"https://api.github.com/users/pbriesch/followers","following_url":"https://api.github.com/users/pbriesch/following{/other_user}","gists_url":"https://api.github.com/users/pbriesch/gists{/gist_id}","starred_url":"https://api.github.com/users/pbriesch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbriesch/subscriptions","organizations_url":"https://api.github.com/users/pbriesch/orgs","repos_url":"https://api.github.com/users/pbriesch/repos","events_url":"https://api.github.com/users/pbriesch/events{/privacy}","received_events_url":"https://api.github.com/users/pbriesch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-05T12:30:27Z","updated_at":"2015-02-05T23:13:53Z","closed_at":null,"body":"Hi, please take a look:\r\n````\r\n[05/02 13:24:51.1270387]: read RTSP (from handle 33 sock_id 8, len: 0):\r\nPLAY rtsp://192.168.1.161/stream=2?addpids=300 RTSP/1.0\r\nCSeq: 3013\r\nSession: 0846930886\r\nUser-Agent: vdr-satip/1.0.2-GIT-0-155-g62e9d74 (device 0)\r\n\r\n\r\n[05/02 13:24:51.1270387]: starting init_hw 1\r\n[05/02 13:24:51.1270387]: detect_dvb_parameters (S)-> addpids=300\r\n[05/02 13:24:51.1270387]: detect_dvb_parameters (E) -> src=-1, fe=-1, freq=-1, fec=-1, sr=-1, pol=-1, ro=-1, msys=-1, mtype=-1, plts=-1, bw=-1, inv=-1, pids=NULL - apids=300 - dpids=NULL\r\n[05/02 13:24:51.1270387]: Setup stream 1 parameters, sock_id 8, handle 33\r\n[05/02 13:24:51.1270387]: copy_dvb_param start -> src=1, fe=0, freq=11837000, fec=3, sr=27500000, pol=2, ro=3, msys=5, mtype=0, plts=2, bw=8000000, inv=2, pids=NULL, apids=NULL, dpids=NULL\r\n[05/02 13:24:51.1270387]: copy_dvb_parameters -> src=1, fe=0, freq=11837000, fec=3 sr=27500000, pol=2, ro=3, msys=5, mtype=0, plts=2, bw=8000000, inv=2, pids=NULL, apids=300, dpids=NULL\r\n[05/02 13:24:51.1270387]: Play for stream 1, type 2, rsock 13, adapter 0, sock_id 8 handle 33\r\n[05/02 13:24:51.1270387]: setting DVB parameters for adapter 0 - master_sid 1 sid 1 old f:11837000\r\n[05/02 13:24:51.1270387]: copy_dvb_param start -> src=1, fe=0, freq=11837000, fec=3, sr=27500000, pol=2, ro=3, msys=5, mtype=0, plts=2, bw=8000000, inv=2, pids=NULL, apids=NULL, dpids=200\r\n[05/02 13:24:51.1270387]: copy_dvb_parameters -> src=1, fe=0, freq=11837000, fec=3 sr=27500000, pol=2, ro=3, msys=5, mtype=0, plts=2, bw=8000000, inv=2, pids=NULL, apids=300, dpids=NULL\r\n[05/02 13:24:51.1270387]: not tunning for SID 1 (do_tune=0, master_sid=1)\r\n[05/02 13:24:51.1270387]: setting filter on PID 300 for fd 14\r\n[05/02 13:24:51.1270387]: reply -> 33 (192.168.1.21:44049) CL:0 :\r\nRTSP/1.0 200 OK\r\nCseq: 3013\r\nDate: Thu, Feb 5 12:24:51 2015 GMT\r\nTransport: RTP/AVP;unicast;source=192.168.1.161;client_port=42388-42389;server_port=5500-5501\r\nSession: 0846930886;timeout=30\r\ncom.ses.streamID: 2\r\nRTP-Info: url=rtsp://192.168.1.161/stream=2?addpids=300;seq=0\r\n\r\n\r\n[05/02 13:24:51.1270441]: get_signal_new returned: Signal (0): 0, SNR(0): 0, BER: 0\r\n[05/02 13:24:51.1270443]: get_signal took 2 ms for adapter 1 handle 11 (status: 31, ber: 0, strength:356, snr: 92, max_strength: 577, max_snr: 301)\r\n[05/02 13:24:51.1270752]: bandwidth 889KB/s, total bandwidth: 1499 MB, HD: 1449 MB, SD: 48 MB, Other: 0 MB, notify: 0\r\n[05/02 13:24:51.1270848]: read RTSP (from handle 33 sock_id 8, len: 0):\r\nPLAY rtsp://192.168.1.161/stream=2?addpids=500&delpids=300 RTSP/1.0\r\nCSeq: 3014\r\nSession: 0846930886\r\nUser-Agent: vdr-satip/1.0.2-GIT-0-155-g62e9d74 (device 0)\r\n\r\n\r\n[05/02 13:24:51.1270848]: starting init_hw 1\r\n[05/02 13:24:51.1270848]: detect_dvb_parameters (S)-> addpids=500&delpids=300\r\n[05/02 13:24:51.1270848]: detect_dvb_parameters (E) -> src=-1, fe=-1, freq=-1, fec=-1, sr=-1, pol=-1, ro=-1, msys=-1, mtype=-1, plts=-1, bw=-1, inv=-1, pids=NULL - apids=500 - dpids=300\r\n[05/02 13:24:51.1270848]: Setup stream 1 parameters, sock_id 8, handle 33\r\n[05/02 13:24:51.1270848]: copy_dvb_param start -> src=1, fe=0, freq=11837000, fec=3, sr=27500000, pol=2, ro=3, msys=5, mtype=0, plts=2, bw=8000000, inv=2, pids=NULL, apids=NULL, dpids=NULL\r\n[05/02 13:24:51.1270848]: copy_dvb_parameters -> src=1, fe=0, freq=11837000, fec=3 sr=27500000, pol=2, ro=3, msys=5, mtype=0, plts=2, bw=8000000, inv=2, pids=NULL, apids=500, dpids=300\r\n[05/02 13:24:51.1270848]: Play for stream 1, type 2, rsock 13, adapter 0, sock_id 8 handle 33\r\n[05/02 13:24:51.1270848]: setting DVB parameters for adapter 0 - master_sid 1 sid 1 old f:11837000\r\n[05/02 13:24:51.1270848]: copy_dvb_param start -> src=1, fe=0, freq=11837000, fec=3, sr=27500000, pol=2, ro=3, msys=5, mtype=0, plts=2, bw=8000000, inv=2, pids=NULL, apids=500, dpids=NULL\r\n[05/02 13:24:51.1270848]: copy_dvb_parameters -> src=1, fe=0, freq=11837000, fec=3 sr=27500000, pol=2, ro=3, msys=5, mtype=0, plts=2, bw=8000000, inv=2, pids=NULL, apids=500, dpids=300\r\n[05/02 13:24:51.1270848]: deleting pids on adapter 0, sid 1, pids=300\r\n[05/02 13:24:51.1270848]: not tunning for SID 1 (do_tune=0, master_sid=1)\r\n[05/02 13:24:51.1270848]: clearing filters on PID 300 FD 14\r\n[05/02 13:24:51.1270848]: setting filter on PID 500 for fd 14\r\n[05/02 13:24:51.1270848]: reply -> 33 (192.168.1.21:44049) CL:0 :\r\nRTSP/1.0 200 OK\r\nCseq: 3014\r\nDate: Thu, Feb 5 12:24:51 2015 GMT\r\nTransport: RTP/AVP;unicast;source=192.168.1.161;client_port=42388-42389;server_port=5500-5501\r\nSession: 0846930886;timeout=30\r\ncom.ses.streamID: 2\r\nRTP-Info: url=rtsp://192.168.1.161/stream=2?addpids=500;seq=0\r\n\r\n\r\n[05/02 13:24:51.1270856]: read RTSP (from handle 16 sock_id 7, len: 0):\r\nPLAY rtsp://192.168.1.161/stream=3?addpids=5002 RTSP/1.0\r\nCSeq: 951\r\nSession: 0424238335\r\nUser-Agent: vdr-satip/1.0.2-GIT-0-155-g62e9d74 (device 1)\r\n\r\n\r\n[05/02 13:24:51.1270856]: starting init_hw 1\r\n[05/02 13:24:51.1270856]: detect_dvb_parameters (S)-> addpids=5002\r\n[05/02 13:24:51.1270856]: detect_dvb_parameters (E) -> src=-1, fe=-1, freq=-1, fec=-1, sr=-1, pol=-1, ro=-1, msys=-1, mtype=-1, plts=-1, bw=-1, inv=-1, pids=NULL - apids=5002 - dpids=NULL\r\n[05/02 13:24:51.1270856]: Setup stream 2 parameters, sock_id 7, handle 16\r\n[05/02 13:24:51.1270856]: copy_dvb_param start -> src=2, fe=0, freq=12654000, fec=3, sr=27500000, pol=2, ro=3, msys=5, mtype=0, plts=2, bw=8000000, inv=2, pids=NULL, apids=NULL, dpids=NULL\r\n[05/02 13:24:51.1270856]: copy_dvb_parameters -> src=2, fe=0, freq=12654000, fec=3 sr=27500000, pol=2, ro=3, msys=5, mtype=0, plts=2, bw=8000000, inv=2, pids=NULL, apids=5002, dpids=NULL\r\n[05/02 13:24:51.1270856]: Play for stream 2, type 2, rsock 17, adapter 1, sock_id 7 handle 16\r\n[05/02 13:24:51.1270856]: setting DVB parameters for adapter 1 - master_sid 2 sid 2 old f:12654000\r\n[05/02 13:24:51.1270856]: copy_dvb_param start -> src=2, fe=0, freq=12654000, fec=3, sr=27500000, pol=2, ro=3, msys=5, mtype=0, plts=2, bw=8000000, inv=2, pids=NULL, apids=5002, dpids=NULL\r\n[05/02 13:24:51.1270856]: copy_dvb_parameters -> src=2, fe=0, freq=12654000, fec=3 sr=27500000, pol=2, ro=3, msys=5, mtype=0, plts=2, bw=8000000, inv=2, pids=NULL, apids=5002, dpids=NULL\r\n[05/02 13:24:51.1270856]: not tunning for SID 2 (do_tune=0, master_sid=2)\r\n[05/02 13:24:51.1270856]: setting filter on PID 5002 for fd 34\r\n[05/02 13:24:51.1270856]: reply -> 16 (192.168.1.21:44046) CL:0 :\r\nRTSP/1.0 200 OK\r\nCseq: 951\r\nDate: Thu, Feb 5 12:24:51 2015 GMT\r\nTransport: RTP/AVP;unicast;source=192.168.1.161;client_port=55044-55045;server_port=5500-5501\r\nSession: 0424238335;timeout=30\r\ncom.ses.streamID: 3\r\nRTP-Info: url=rtsp://192.168.1.161/stream=3?addpids=5002;seq=0\r\n\r\n\r\n^Cselect_and_execute: select() error: Interrupted system call\r\n[05/02 13:24:51.1270937]: The main loop ended, run_loop = 0\r\n[05/02 13:24:51.1270937]: sockets_del: 8 -> handle 33, sid 1\r\n[05/02 13:24:51.1270937]: sockets_del: 8 Last open socket is at index 7 current_handle 33\r\n[05/02 13:24:51.1270937]: sockets_del: 7 -> handle 16, sid 2\r\n[05/02 13:24:51.1270937]: sockets_del: 7 Last open socket is at index 6 current_handle 16\r\n[05/02 13:24:51.1270937]: sockets_del: 6 -> handle 12, sid 1\r\n[05/02 13:24:51.1270937]: closing DVR socket -1 pos 6 aid 1\r\n[05/02 13:24:51.1270937]: closing adapter 1  -> fe:11 dvr:12\r\n[05/02 13:24:51.1270937]: closing stream 2\r\n[05/02 13:24:51.1270937]: adapter.c:315: get_adapter returns NULL for adapter_id 1\r\n[05/02 13:24:51.1270937]: closed stream 2\r\n[05/02 13:24:51.1270937]: deleting pids on adapter 1, sid -1, pids=NULL\r\n[05/02 13:24:51.1270937]: clearing filters on PID 18 FD 28\r\n[05/02 13:24:51.1270937]: clearing filters on PID 0 FD 29\r\n[05/02 13:24:51.1270937]: clearing filters on PID 16 FD 30\r\n[05/02 13:24:51.1270937]: clearing filters on PID 17 FD 31\r\n[05/02 13:24:51.1270937]: clearing filters on PID 20 FD 32\r\n[05/02 13:24:51.1270937]: clearing filters on PID 5002 FD 34\r\n[05/02 13:24:51.1270937]: sockets_del: 6 -> handle -1, sid 1\r\n[05/02 13:24:51.1270937]: done closing adapter 1\r\n[05/02 13:24:51.1270938]: sockets_del: 6 Last open socket is at index 5 current_handle 12\r\n[05/02 13:24:51.1270938]: sockets_del: 5 -> handle 10, sid 0\r\n[05/02 13:24:51.1270938]: closing DVR socket -1 pos 5 aid 0\r\n[05/02 13:24:51.1270938]: closing adapter 0  -> fe:9 dvr:10\r\n[05/02 13:24:51.1270938]: closing stream 1\r\n[05/02 13:24:51.1270938]: adapter.c:315: get_adapter returns NULL for adapter_id 0\r\n[05/02 13:24:51.1270938]: closed stream 1\r\n[05/02 13:24:51.1270938]: deleting pids on adapter 0, sid -1, pids=NULL\r\n[05/02 13:24:51.1270938]: clearing filters on PID 0 FD 18\r\n[05/02 13:24:51.1270938]: clearing filters on PID 16 FD 19\r\n[05/02 13:24:51.1270938]: clearing filters on PID 17 FD 20\r\n[05/02 13:24:51.1270938]: clearing filters on PID 18 FD 21\r\n[05/02 13:24:51.1270938]: clearing filters on PID 20 FD 22\r\n[05/02 13:24:51.1270938]: clearing filters on PID 101 FD 23\r\n[05/02 13:24:51.1270938]: clearing filters on PID 102 FD 24\r\n[05/02 13:24:51.1270938]: clearing filters on PID 103 FD 25\r\n[05/02 13:24:51.1270938]: clearing filters on PID 105 FD 26\r\n[05/02 13:24:51.1270938]: clearing filters on PID 106 FD 27\r\n[05/02 13:24:51.1270938]: clearing filters on PID 500 FD 14\r\n[05/02 13:24:51.1270938]: sockets_del: 5 -> handle -1, sid 0\r\n[05/02 13:24:51.1270938]: done closing adapter 0\r\n[05/02 13:24:51.1270938]: sockets_del: 5 Last open socket is at index 4 current_handle 10\r\n[05/02 13:24:51.1270938]: sockets_del: 4 -> handle 8, sid -1\r\n[05/02 13:24:51.1270938]: sockets_del: 4 Last open socket is at index 3 current_handle 8\r\n[05/02 13:24:51.1270938]: sockets_del: 3 -> handle 6, sid -1\r\n[05/02 13:24:51.1270938]: sockets_del: 3 Last open socket is at index 2 current_handle 6\r\n[05/02 13:24:51.1270938]: sockets_del: 2 -> handle 5, sid -1\r\n[05/02 13:24:51.1270938]: sockets_del: 2 Last open socket is at index 1 current_handle 5\r\n[05/02 13:24:51.1270938]: sockets_del: 1 -> handle 4, sid -1\r\n[05/02 13:24:51.1270938]: sockets_del: 1 Last open socket is at index 0 current_handle 4\r\nstream.c:767 allocation_wrapper free called with argument 0x635500 - done free\r\nstream.c:769 allocation_wrapper free called with argument 0x63a4d0 - done free\r\nstream.c:771 allocation_wrapper free called with argument 0x63a620 - done free\r\nstream.c:773 allocation_wrapper free called with argument 0x63a770 - done free\r\nstream.c:767 allocation_wrapper free called with argument 0x63acb0 - done free\r\nstream.c:769 allocation_wrapper free called with argument 0x63ae00 - done free\r\nstream.c:771 allocation_wrapper free called with argument 0x63af50 - done free\r\nstream.c:773 allocation_wrapper free called with argument 0x63b0a0 - done free\r\nstream.c:767 allocation_wrapper free called with argument 0x63b5e0 - done free\r\nstream.c:769 allocation_wrapper free called with argument 0x63b730 - done free\r\nstream.c:771 allocation_wrapper free called with argument 0x63b880 - done free\r\nstream.c:773 allocation_wrapper free called with argument 0x63b9d0 - done free\r\nadapter.c:710 allocation_wrapper free called with argument 0x635cb0*** Error in `./minisatip': double free or corruption (out): 0x0000000000635cb0 ***\r\nRECEIVED SIGNAL 6 - SP=0 IP=0 main=4048AB read_dmx=40AA81 clock_gettime=7F896ADB5B90\r\nObtained 10 stack frames.\r\n0x404f52 : print_trace at /home/pbriesch/minisatip/minisatip.c:932\r\n0x405093 : posix_signal_handler at /home/pbriesch/minisatip/minisatip.c:973\r\n0x7f896b289c90 : ?? ??:0\r\n0x7f896ace3e37 : ?? ??:0\r\n0x7f896ace5528 : ?? ??:0\r\n0x7f896ad25b04 : ?? ??:0\r\n0x7f896ad2d116 : ?? ??:0\r\n0x4052fb : myfree at /home/pbriesch/minisatip/minisatip.c:1051\r\n0x412dbc : free_all_adapters at /home/pbriesch/minisatip/adapter.c:708 (discriminator 2)\r\n0x407f99 : free_all at /home/pbriesch/minisatip/socketworks.c:635"},"comment":{"url":"https://api.github.com/repos/catalinii/minisatip/issues/comments/73150610","html_url":"https://github.com/catalinii/minisatip/issues/85#issuecomment-73150610","issue_url":"https://api.github.com/repos/catalinii/minisatip/issues/85","id":73150610,"user":{"login":"catalinii","id":8200209,"avatar_url":"https://avatars.githubusercontent.com/u/8200209?v=3","gravatar_id":"","url":"https://api.github.com/users/catalinii","html_url":"https://github.com/catalinii","followers_url":"https://api.github.com/users/catalinii/followers","following_url":"https://api.github.com/users/catalinii/following{/other_user}","gists_url":"https://api.github.com/users/catalinii/gists{/gist_id}","starred_url":"https://api.github.com/users/catalinii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catalinii/subscriptions","organizations_url":"https://api.github.com/users/catalinii/orgs","repos_url":"https://api.github.com/users/catalinii/repos","events_url":"https://api.github.com/users/catalinii/events{/privacy}","received_events_url":"https://api.github.com/users/catalinii/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T23:13:53Z","updated_at":"2015-02-05T23:13:53Z","body":"I will reopen this one, my next commit hopefully will have a fix.\r\nWill keep this open for a while to see if it happens again."}}