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

            Bug ID: 2230
           Summary: pktio_run_pcap:  fails make check when run with
                    valgrind
           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

This is not an obvious failure, but  running with an without valgrind  will
make this test pass or fail

root@odp-ubuntu-1504:~/check-odp/build/odp/platform/linux-generic/test/pktio#
cat pktio_run_pcap.log 
==18257== Memcheck, a memory error detector
==18257== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==18257== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==18257== Command: ./pktio/pktio_run_pcap
==18257== 
running with ./pktio/../../../../test/validation/pktio/pktio_main
        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: pcap:out=vald.pcap pcap:in=vald.pcap

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         pcap:out=vald.pcap
  type         pcap
  state        opened
  mac          02:e9:34:80:73:04
  mtu          65536
  promisc      yes


pktio
  handle       1
  name         pcap:in=vald.pcap
  type         pcap
  state        opened
  mac          02:e9:34:80:73:04
  mtu          65536
  promisc      yes

passed
  Test: pktio_test_pktio_config ...passed
  Test: pktio_test_info ...pktio 0
  name   pcap:out=vald.pcap
  driver pcap
pktio 1
  name   pcap:in=vald.pcap
  driver pcap
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_mtu ... 65536 passed
  Test: pktio_test_promisc ...passed
  Test: pktio_test_mac ...testing mac for pcap:out=vald.pcap
 2:E9:34:80:73:4 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:
pcap:out=vald.pcap pcap:in=vald.pcap

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

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

Elapsed time =    4.165 seconds
==18257== 
==18257== HEAP SUMMARY:
==18257==     in use at exit: 11,579 bytes in 98 blocks
==18257==   total heap usage: 128 allocs, 30 frees, 15,550 bytes allocated
==18257== 
==18257== LEAK SUMMARY:
==18257==    definitely lost: 0 bytes in 0 blocks
==18257==    indirectly lost: 0 bytes in 0 blocks
==18257==      possibly lost: 0 bytes in 0 blocks
==18257==    still reachable: 11,579 bytes in 98 blocks
==18257==         suppressed: 0 bytes in 0 blocks
==18257== Reachable blocks (those to which a pointer was found) are not shown.
==18257== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==18257== 
==18257== For counts of detected and suppressed errors, rerun with: -v
==18257== ERROR SUMMARY: 0 errors from 0 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