https://bugs.linaro.org/show_bug.cgi?id=2229

            Bug ID: 2229
           Summary: pktio_run:  blocks are definitely lost
           Product: OpenDataPlane - linux- generic reference
           Version: v1.10
          Hardware: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: ---
         Component: Packet IO
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

cd check-odp
E_VALGRIND=1 CLEANUP=0 ./build.sh

root@odp-ubuntu-1504:~/check-odp/build/odp/platform/linux-generic/test/pktio#
cat pktio_run.log
==17555== Memcheck, a memory error detector
==17555== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==17555== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==17555== Command: ./pktio/pktio_run
==17555== 
running with pktio_main: 
pktio: using 'loop' device
        ODP API version: 1.10.0
        ODP implementation name:    linux-generic
        ODP implementation version: linux-generic 1.10.0-0 (v1.10.0)
'https://git.linaro.org/lng/odp.git' (1.10.0.0.git3.g79085b1)


     CUnit - A unit testing framework for C - Version 2.1-2
     http://cunit.sourceforge.net/

No interfaces specified, using default "loop".

Suite: Packet I/O Unsegmented
  Test: pktio_test_open
...pktio/socket.c:112:mac_addr_get_fd():ioctl(SIOCGIFHWADDR): No such device:
"nothere".
pktio/socket.c:519:sock_setup_pkt():ioctl(SIOCGIFINDEX): No such device:
"nothere".
odp_packet_io.c:238:setup_pktio_entry():Unable to init any I/O type.
passed
  Test: pktio_test_lookup ...passed
  Test: pktio_test_index ...passed
  Test: pktio_test_print ... 
pktio
  handle       1
  name         loop
  type         loop
  state        opened
  mac          02:e9:34:80:73:01
  mtu          2147483647
  promisc      yes

passed
  Test: pktio_test_pktio_config ...passed
  Test: pktio_test_info ...pktio 0
  name   loop
  driver loop
passed
  Test: pktio_test_pktin_queue_config_direct ...passed
  Test: pktio_test_pktin_queue_config_sched ...passed
  Test: pktio_test_pktin_queue_config_queue ...passed
  Test: pktio_test_pktout_queue_config ...passed
  Test: pktio_test_plain_queue ...passed
  Test: pktio_test_plain_multi ...passed
  Test: pktio_test_sched_queue ...passed
  Test: pktio_test_sched_multi ...passed
  Test: pktio_test_recv ...passed
  Test: pktio_test_recv_multi ...passed
  Test: pktio_test_recv_queue ...passed
  Test: pktio_test_recv_tmo ...passed
  Test: pktio_test_recv_mq_tmo ...passed
  Test: pktio_test_recv_mtu ...passed
  Test: pktio_test_mtu ... 2147483647 passed
  Test: pktio_test_promisc ...passed
  Test: pktio_test_mac ...testing mac for loop
 2:E9:34:80:73:1 passed
  Test: pktio_test_start_stop ...passed
  Test: pktio_test_recv_on_wonly ...passed
  Test: pktio_test_send_on_ronly ...passed
  Test: pktio_test_plain_multi_event ...passed
  Test: pktio_test_sched_multi_event ...passed
  Test: pktio_test_recv_multi_event ...passed
  Test: pktio_test_statistics_counters ...passed
  Test: pktio_test_pktin_ts ...passedNo interfaces specified, using default
"loop".

Suite: Packet I/O Segmented
  Test: pktio_test_plain_queue ...passed
  Test: pktio_test_plain_multi ...passed
  Test: pktio_test_sched_queue ...passed
  Test: pktio_test_sched_multi ...passed
  Test: pktio_test_recv ...passed
  Test: pktio_test_recv_multi ...passed
  Test: pktio_test_recv_mtu ...passed

Run Summary:    Type  Total    Ran Passed Failed Inactive
              suites      2      2    n/a      0        0
               tests     40     38     38      0        2
             asserts   1360   1360   1360      0      n/a

Elapsed time =    2.178 seconds
pktio: setting up test interfaces pktiop0p1, pktiop1p0, pktiop2p3, pktiop3p2.
        ODP API version: 1.10.0
        ODP implementation name:    linux-generic
        ODP implementation version: linux-generic 1.10.0-0 (v1.10.0)
'https://git.linaro.org/lng/odp.git' (1.10.0.0.git3.g79085b1)


     CUnit - A unit testing framework for C - Version 2.1-2
     http://cunit.sourceforge.net/

Using paired interfaces: pktiop0p1 pktiop1p0

Suite: Packet I/O Unsegmented
  Test: pktio_test_open
...pktio/socket.c:112:mac_addr_get_fd():ioctl(SIOCGIFHWADDR): No such device:
"nothere".
pktio/socket.c:519:sock_setup_pkt():ioctl(SIOCGIFINDEX): No such device:
"nothere".
odp_packet_io.c:238:setup_pktio_entry():Unable to init any I/O type.
passed
  Test: pktio_test_lookup ...passed
  Test: pktio_test_index ...passed
  Test: pktio_test_print ... 
pktio
  handle       1
  name         pktiop0p1
  type         socket_mmap
  state        opened
  mac          36:fe:c6:cc:bc:8a
  mtu          9216
  promisc      no


pktio
  handle       1
  name         pktiop1p0
  type         socket_mmap
  state        opened
  mac          86:29:85:35:e2:e2
  mtu          9216
  promisc      no

passed
  Test: pktio_test_pktio_config ...passed
  Test: pktio_test_info ...pktio 0
  name   pktiop0p1
  driver socket_mmap
pktio 1
  name   pktiop1p0
  driver socket_mmap
passed
  Test: pktio_test_pktin_queue_config_direct ...passed
  Test: pktio_test_pktin_queue_config_sched ...passed
  Test: pktio_test_pktin_queue_config_queue ...passed
  Test: pktio_test_pktout_queue_config ...passed
  Test: pktio_test_plain_queue ...passed
  Test: pktio_test_plain_multi ...passed
  Test: pktio_test_sched_queue ...odp_packet_io.c:716:pktin_poll():Bad pktio
entry
odp_packet_io.c:716:pktin_poll():Bad pktio entry
passed
  Test: pktio_test_sched_multi ...odp_packet_io.c:716:pktin_poll():Bad pktio
entry
odp_packet_io.c:716:pktin_poll():Bad pktio entry
passed
  Test: pktio_test_recv ...passed
  Test: pktio_test_recv_multi ...passed
  Test: pktio_test_recv_queue ...passed
  Test: pktio_test_recv_tmo ...error: header magic invalid 8650752
passed
  Test: pktio_test_recv_mq_tmo ...passed
  Test: pktio_test_recv_mtu ...error: header magic invalid 0
odp_packet_io.c:716:pktin_poll():Bad pktio entry
odp_packet_io.c:716:pktin_poll():Bad pktio entry
passed
  Test: pktio_test_send_failure
...pktio/socket_mmap.c:313:pkt_mmap_v2_tx():sendto(pkt mmap): Message too long
passed
  Test: pktio_test_mtu ... 9216 passed
  Test: pktio_test_promisc ...passed
  Test: pktio_test_mac ...testing mac for pktiop0p1
 36:FE:C6:CC:BC:8A passed
  Test: pktio_test_start_stop ...error: offset invalid
error: offset invalid
error: header magic invalid 0
error: header magic invalid 0
error: header magic invalid 0
error: header magic invalid 0
passed
  Test: pktio_test_recv_on_wonly ...passed
  Test: pktio_test_send_on_ronly ...passed
  Test: pktio_test_plain_multi_event ...passed
  Test: pktio_test_sched_multi_event ...odp_packet_io.c:716:pktin_poll():Bad
pktio entry
odp_packet_io.c:716:pktin_poll():Bad pktio entry
passed
  Test: pktio_test_recv_multi_event ...passed
  Test: pktio_test_statistics_counters ...odp_packet_io.c:716:pktin_poll():Bad
pktio entry
passed
  Test: pktio_test_pktin_ts ...passedUsing paired interfaces: pktiop0p1
pktiop1p0

Suite: Packet I/O Segmented
  Test: pktio_test_plain_queue ...passed
  Test: pktio_test_plain_multi ...passed
  Test: pktio_test_sched_queue ...odp_packet_io.c:716:pktin_poll():Bad pktio
entry
odp_packet_io.c:716:pktin_poll():Bad pktio entry
passed
  Test: pktio_test_sched_multi ...odp_packet_io.c:716:pktin_poll():Bad pktio
entry
odp_packet_io.c:716:pktin_poll():Bad pktio entry
passed
  Test: pktio_test_recv ...passed
  Test: pktio_test_recv_multi ...passed
  Test: pktio_test_recv_mtu ...odp_packet_io.c:716:pktin_poll():Bad pktio entry
odp_packet_io.c:716:pktin_poll():Bad pktio entry
passed
  Test: pktio_test_send_failure
...pktio/socket_mmap.c:313:pkt_mmap_v2_tx():sendto(pkt mmap): Message too long
passed

Run Summary:    Type  Total    Ran Passed Failed Inactive
              suites      2      2    n/a      0        0
               tests     40     40     40      0        0
             asserts   1890   1890   1890      0      n/a

Elapsed time =    4.249 seconds
        ODP API version: 1.10.0
        ODP implementation name:    linux-generic
        ODP implementation version: linux-generic 1.10.0-0 (v1.10.0)
'https://git.linaro.org/lng/odp.git' (1.10.0.0.git3.g79085b1)


     CUnit - A unit testing framework for C - Version 2.1-2
     http://cunit.sourceforge.net/

Using paired interfaces: pktiop0p1 pktiop1p0

Suite: Packet I/O Unsegmented
  Test: pktio_test_open
...pktio/socket.c:519:sock_setup_pkt():ioctl(SIOCGIFINDEX): No such device:
"nothere".
odp_packet_io.c:238:setup_pktio_entry():Unable to init any I/O type.
passed
  Test: pktio_test_lookup ...passed
  Test: pktio_test_index ...passed
  Test: pktio_test_print ... 
pktio
  handle       1
  name         pktiop0p1
  type         socket
  state        opened
  mac          36:fe:c6:cc:bc:8a
  mtu          9216
  promisc      no


pktio
  handle       1
  name         pktiop1p0
  type         socket
  state        opened
  mac          86:29:85:35:e2:e2
  mtu          9216
  promisc      no

passed
  Test: pktio_test_pktio_config ...passed
  Test: pktio_test_info ...pktio 0
  name   pktiop0p1
  driver socket
pktio 1
  name   pktiop1p0
  driver socket
passed
  Test: pktio_test_pktin_queue_config_direct ...passed
  Test: pktio_test_pktin_queue_config_sched ...passed
  Test: pktio_test_pktin_queue_config_queue ...passed
  Test: pktio_test_pktout_queue_config ...passed
  Test: pktio_test_plain_queue ...passed
  Test: pktio_test_plain_multi ...passed
  Test: pktio_test_sched_queue ...odp_packet_io.c:716:pktin_poll():Bad pktio
entry
odp_packet_io.c:716:pktin_poll():Bad pktio entry
passed
  Test: pktio_test_sched_multi ...odp_packet_io.c:716:pktin_poll():Bad pktio
entry
odp_packet_io.c:716:pktin_poll():Bad pktio entry
passed
  Test: pktio_test_recv ...passed
  Test: pktio_test_recv_multi ...passed
  Test: pktio_test_recv_queue ...passed
  Test: pktio_test_recv_tmo ...passed
  Test: pktio_test_recv_mq_tmo ...passed
  Test: pktio_test_recv_mtu ...odp_packet_io.c:716:pktin_poll():Bad pktio entry
odp_packet_io.c:716:pktin_poll():Bad pktio entry
passed
  Test: pktio_test_send_failure
...pktio/socket.c:772:sock_mmsg_send():sendmmsg(): Message too long
passed
  Test: pktio_test_mtu ... 9216 passed
  Test: pktio_test_promisc ...passed
  Test: pktio_test_mac ...testing mac for pktiop0p1
 36:FE:C6:CC:BC:8A passed
  Test: pktio_test_start_stop ...passed
  Test: pktio_test_recv_on_wonly ...passed
  Test: pktio_test_send_on_ronly ...passed
  Test: pktio_test_plain_multi_event ...passed
  Test: pktio_test_sched_multi_event ...odp_packet_io.c:716:pktin_poll():Bad
pktio entry
odp_packet_io.c:716:pktin_poll():Bad pktio entry
passed
  Test: pktio_test_recv_multi_event ...passed
  Test: pktio_test_statistics_counters ...odp_packet_io.c:716:pktin_poll():Bad
pktio entry
passed
  Test: pktio_test_pktin_ts ...passedUsing paired interfaces: pktiop0p1
pktiop1p0

Suite: Packet I/O Segmented
  Test: pktio_test_plain_queue ...passed
  Test: pktio_test_plain_multi ...passed
  Test: pktio_test_sched_queue ...odp_packet_io.c:716:pktin_poll():Bad pktio
entry
odp_packet_io.c:716:pktin_poll():Bad pktio entry
passed
  Test: pktio_test_sched_multi ...odp_packet_io.c:716:pktin_poll():Bad pktio
entry
odp_packet_io.c:716:pktin_poll():Bad pktio entry
passed
  Test: pktio_test_recv ...passed
  Test: pktio_test_recv_multi ...passed
  Test: pktio_test_recv_mtu ...odp_packet_io.c:716:pktin_poll():Bad pktio entry
odp_packet_io.c:716:pktin_poll():Bad pktio entry
passed
  Test: pktio_test_send_failure
...pktio/socket.c:772:sock_mmsg_send():sendmmsg(): Message too long
passed

Run Summary:    Type  Total    Ran Passed Failed Inactive
              suites      2      2    n/a      0        0
               tests     40     40     40      0        0
             asserts   1890   1890   1890      0      n/a

Elapsed time =    4.175 seconds
pktio: removing test interfaces pktiop0p1, pktiop1p0, pktiop2p3, pktiop3p2
==17555== 
==17555== HEAP SUMMARY:
==17555==     in use at exit: 27,593 bytes in 145 blocks
==17555==   total heap usage: 479 allocs, 334 frees, 165,844 bytes allocated
==17555== 
==17555== 18 bytes in 1 blocks are definitely lost in loss record 7 of 50
==17555==    at 0x4C2BBA0: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17555==    by 0x4EC3429: strdup (strdup.c:42)
==17555==    by 0x115B88: ??? (in /bin/dash)
==17555==    by 0x11AA52: ??? (in /bin/dash)
==17555==    by 0x10F291: ??? (in /bin/dash)
==17555==    by 0x10F7DE: ??? (in /bin/dash)
==17555==    by 0x10E745: ??? (in /bin/dash)
==17555==    by 0x10E745: ??? (in /bin/dash)
==17555==    by 0x10E745: ??? (in /bin/dash)
==17555==    by 0x10E859: ??? (in /bin/dash)
==17555==    by 0x10E859: ??? (in /bin/dash)
==17555==    by 0x10E859: ??? (in /bin/dash)
==17555==    by 0x10E859: ??? (in /bin/dash)
==17555==    by 0x10E859: ??? (in /bin/dash)
==17555==    by 0x10E859: ??? (in /bin/dash)
==17555==    by 0x10ED5F: ??? (in /bin/dash)
==17555==    by 0x10F99E: ??? (in /bin/dash)
==17555==    by 0x10E745: ??? (in /bin/dash)
==17555==    by 0x10E859: ??? (in /bin/dash)
==17555==    by 0x10E859: ??? (in /bin/dash)
==17555==    by 0x10E859: ??? (in /bin/dash)
==17555==    by 0x10E745: ??? (in /bin/dash)
==17555==    by 0x10E745: ??? (in /bin/dash)
==17555==    by 0x10E859: ??? (in /bin/dash)
==17555==    by 0x10E859: ??? (in /bin/dash)
==17555==    by 0x10E859: ??? (in /bin/dash)
==17555==    by 0x10E859: ??? (in /bin/dash)
==17555==    by 0x10ED5F: ??? (in /bin/dash)
==17555==    by 0x10F99E: ??? (in /bin/dash)
==17555==    by 0x10E745: ??? (in /bin/dash)
==17555== 
==17555== LEAK SUMMARY:
==17555==    definitely lost: 18 bytes in 1 blocks
==17555==    indirectly lost: 0 bytes in 0 blocks
==17555==      possibly lost: 0 bytes in 0 blocks
==17555==    still reachable: 27,575 bytes in 144 blocks
==17555==         suppressed: 0 bytes in 0 blocks
==17555== Reachable blocks (those to which a pointer was found) are not shown.
==17555== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==17555== 
==17555== For counts of detected and suppressed errors, rerun with: -v
==17555== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to