kayws426 / embox

Automatically exported from code.google.com/p/embox
0 stars 1 forks source link

tcp_init: NULL referenced #608

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Template with tcp_sock
2. while NET: initializing protocol embox.net.tcp:

==7361== Invalid read of size 4
==7361==    at 0x2D4B8: tcp_obj_lock (tcp.c:192)
==7361==    by 0x157B9: tcp_v4_hash (tcp_sock.c:437)
==7361==    by 0x2209C: sk_alloc (sock.c:144)
==7361==    by 0x13546: inet_create_sock (af_inet.c:34)
==7361==    by 0x2F4C3: tcp_v4_init (tcp.c:1143)
==7361==    by 0x2157B: net_proto_mod_enable (core.c:35)
==7361==    by 0x37564: invoke_mod_enable (core.c:181)
==7361==    by 0x37666: do_enable (core.c:230)
==7361==    by 0x37475: mod_traverse_rec_safe (core.c:148)
==7361==    by 0x37501: mod_traverse (core.c:164)
==7361==    by 0x372F3: mod_traverse_do (core.c:112)
==7361==    by 0x3745B: mod_traverse_rec_safe (core.c:144)
==7361==  Address 0xb8 is not stack'd, malloc'd or (recently) free'd
==7361== 
==7361== 
==7361== Process terminating with default action of signal 11 (SIGSEGV)
==7361==  Access not within mapped region at address 0xB8
==7361==    at 0x2D4B8: tcp_obj_lock (tcp.c:192)
==7361==    by 0x157B9: tcp_v4_hash (tcp_sock.c:437)
==7361==    by 0x2209C: sk_alloc (sock.c:144)
==7361==    by 0x13546: inet_create_sock (af_inet.c:34)
==7361==    by 0x2F4C3: tcp_v4_init (tcp.c:1143)
==7361==    by 0x2157B: net_proto_mod_enable (core.c:35)
==7361==    by 0x37564: invoke_mod_enable (core.c:181)
==7361==    by 0x37666: do_enable (core.c:230)
==7361==    by 0x37475: mod_traverse_rec_safe (core.c:148)
==7361==    by 0x37501: mod_traverse (core.c:164)
==7361==    by 0x372F3: mod_traverse_do (core.c:112)
==7361==    by 0x3745B: mod_traverse_rec_safe (core.c:144)

What is the expected output? What do you see instead?

Please use labels and text to provide additional information.

Original issue reported on code.google.com by drakon.m...@gmail.com on 1 May 2013 at 6:14

GoogleCodeExporter commented 9 years ago
can't reproduce in r9851

Original comment by ki.stfu on 14 Jun 2013 at 10:55