[OpenSIPS-Devel] [opensips] [1.11] Crash on TCP read (#813)

Saúl Ibarra Corretgé saghul at gmail.com
Fri Mar 4 15:10:18 CET 2016


There you go:

~~~~
(gdb) bt
#0  tcp_read_req (con=con at entry=0xa773e948,
bytes_read=bytes_read at entry=0xbfb3b8cc)
at tcp_read.c:711
#1  0x080e08a2 in handle_io (fm=0x99015c8, idx=idx at entry=-1,
event_type=event_type at entry=1) at tcp_read.c:1036
#2  0x080e271c in io_wait_loop_epoll (repeat=<optimized out>, h=<optimized
out>, t=<optimized out>) at io_wait.h:867
#3  tcp_receive_loop (unix_sock=72) at tcp_read.c:1144
#4  0x080dc690 in tcp_init_children (chd_rank=chd_rank at entry=0x81e362c,
startup_done=startup_done at entry=0x0) at tcp_main.c:2378
#5  0x0805db02 in main_loop () at main.c:1011
#6  main (argc=11, argv=0xbfb3bbf4) at main.c:1612
(gdb) print req
$1 = (struct tcp_req *) 0x995eaf8
(gdb) print cur
cur_lock             curr_dir             current_dlg_pointer  current_req
(gdb) print current_req
$2 = {next = 0x0,
  buf = "\r\n\r\n2.0 200 OK\r\nVia: SIP/2.0/TLS
81.23.228.129:443;received=81.23.228.129;branch=z9hG4bK5a46.32065967.0\r\nVia:
SIP/2.0/UDP 81.23.228.150:5060;branch=z9hG4bK5a46.b782e725.0\r\nRecord-Route:
<sip:81.23.228"...,
  start = 0x8221ae4 "\r\n\r\n2.0 200 OK\r\nVia: SIP/2.0/TLS
81.23.228.129:443;received=81.23.228.129;branch=z9hG4bK5a46.32065967.0\r\nVia:
SIP/2.0/UDP 81.23.228.150:5060;branch=z9hG4bK5a46.b782e725.0\r\nRecord-Route:
<sip:81.23.228"...,
  pos = 0x8221ae4 "\r\n\r\n2.0 200 OK\r\nVia: SIP/2.0/TLS
81.23.228.129:443;received=81.23.228.129;branch=z9hG4bK5a46.32065967.0\r\nVia:
SIP/2.0/UDP 81.23.228.150:5060;branch=z9hG4bK5a46.b782e725.0\r\nRecord-Route:
<sip:81.23.228"...,
  parsed = 0x8221ae4 "\r\n\r\n2.0 200 OK\r\nVia: SIP/2.0/TLS
81.23.228.129:443;received=81.23.228.129;branch=z9hG4bK5a46.32065967.0\r\nVia:
SIP/2.0/UDP 81.23.228.150:5060;branch=z9hG4bK5a46.b782e725.0\r\nRecord-Route:
<sip:81.23.228"..., body = 0x0, content_len = 0,
  has_content_len = 0, complete = 0, bytes_to_go = 0, error = TCP_REQ_OK,
state = H_SKIP_EMPTY}
(gdb) print *req
Cannot access memory at address 0x995eaf8
(gdb)
~~~~


I'm currently using the system allocator.


On Fri, Mar 4, 2016 at 2:58 PM, Răzvan Crainea <notifications at github.com>
wrote:

> What allocator are you using? Could you print the req variable in gdb and
> paste the output here?
>
>> Reply to this email directly or view it on GitHub
> <https://github.com/OpenSIPS/opensips/issues/813#issuecomment-192293339>.
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>
>


-- 
/Saúl
bettercallsaghul.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160304/4d29e3f4/attachment.htm>


More information about the Devel mailing list