sasikanthbabu/Layer3Switch — Issue #10: invaild read size in valgrind
Author: sasikanthbabu
Created: 2012-02-28 19:09:29+00:00
State: open

OpenSwitch# ping 192.168.122.1
PING 192.168.122.1 (192.168.122.1): 56 data bytes
==21207== Invalid read of size 2
==21207== at 0x806A917: recv_raw (api_msg.c:92)
==21207== by 0x805B592: raw_input (raw.c:108)
==21207== by 0x805A33C: ip_input (ip_rxtx.c:553)
==21207== by 0x80706A2: ethernet_input (etharp.c:1488)
==21207== by 0x80762BF: process_pkt (gdd_generic.c:60)
==21207== by 0x8092CB0: packet_processing_task (packet.c:35)
==21207== by 0x8064908: tsk_wrap (tsk_main.c:84)
==21207== by 0x4CF39918: start_thread (pthread_create.c:301)
==21207== by 0x4CE7BD4D: clone (clone.S:133)
==21207== Address 0x4419ed4 is not stack'd, malloc'd or (recently) free'd
==21207==
==21207== Invalid read of size 4
==21207== at 0x806A931: recv_raw (api_msg.c:93)
==21207== by 0x805B592: raw_input (raw.c:108)
==21207== by 0x805A33C: ip_input (ip_rxtx.c:553)
==21207== by 0x80706A2: ethernet_input (etharp.c:1488)
==21207== by 0x80762BF: process_pkt (gdd_generic.c:60)
==21207== by 0x8092CB0: packet_processing_task (packet.c:35)
==21207== by 0x8064908: tsk_wrap (tsk_main.c:84)
==21207== by 0x4CF39918: start_thread (pthread_create.c:301)
==21207== by 0x4CE7BD4D: clone (clone.S:133)
==21207== Address 0x4419ed0 is 12 bytes after a block of size 68 alloc'd
==21207== at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==21207== by 0x806B259: netconn_alloc (api_msg.c:568)
==21207== by 0x806A0E5: netconn_new_with_proto_and_callback (api_lib.c:77)
==21207== by 0x806D97C: lwip_socket (sockets.c:1107)
==21207== by 0x805B20B: ping (ping.c:415)
==21207== by 0x805B4EB: ping_me (ping.c:487)
==21207== by 0x8059027: cparser_cmd_ping_hostaddr (ip_cli.c:81)
==21207== by 0x805148A: cparser_glue_ping_hostaddr (cparser_tree.c:65)
==21207== by 0x804D78C: cparser_execute_cmd (cparser.c:264)
==21207== by 0x804E483: cparser_input (cparser.c:628)
==21207== by 0x804E52D: cparser_run (cparser.c:651)
==21207== by 0x804A7A6: cmdinterface (cli_main.c:245)