From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 9B5F61B659 for ; Fri, 3 Nov 2017 22:03:24 +0100 (CET) Received: by mail-wm0-f47.google.com with SMTP id r196so3996549wmf.2 for ; Fri, 03 Nov 2017 14:03:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=EB9DmoyWNFI76og1dcsAAuDLbDdMD27onSSEvzdAYec=; b=suESEh2ECQqYw6b9JVzstlV0TCnpYo5km83J5l+E9zqPKRuQYUzSQJ2kCjAv2WVO6V wlMDyB31OV3v2AiKKSqEkfaqSMbD1oyQJ2PiDRtOrEzbtLSKNxRkxVQEFY93ZJmtKK8v Luds4sB2gzvzUCoN5wq7IGz1ZLGHy6+ttOjk9IBT1d1mxjOib61Ehjbm9CAMmB8NRtpX MAmWGZTobzmy7Eue2AUQzURKysjXO/VnvMDAHamGVjkE/25WoAoGjM8hCIJQb7nE5Zm+ Aw5qlaBWlOvEfnIMLnM+TMzIPXiD3MAZw7sx3rQ7LwYnv8e+wSiYc7dgeGqUTdkTCQ4A dj+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=EB9DmoyWNFI76og1dcsAAuDLbDdMD27onSSEvzdAYec=; b=tugEk77Ajpjfrwq0k/4Uc3PfenZAPPWcKKX/3d1NVsSYQnSmmd6mLw+QlTTz+P1yIl vD+fdKIfKAFMz+WQdcC7WiJ8vE6cR4HFi2WnFRhhhgJDoB2WLMv4bx3aTXht5e+xjZC8 UbwmvzZtYDEfD2vUnur1bZRJQREC2wtfM1hEPEcer51a14M7OvI4CLK/wprPGPoekNe/ QOL3elMJO8lJQXENIsAPRmU3Ha2h5UwHdplTGHajRsNqxNQFgZpP2ukiMp7VR3bZNUZv MTF0d0Od4aGfFdGbT9PLRKySzKdnpBURHVm9pWMskm3fYa7yq5Wof0syUnLFIHKsASub Yr2w== X-Gm-Message-State: AMCzsaWGBdHxcxqHgO9eNYaG1l+E7VoyBnA5Wrt8rMqN/GUqdJQyYX3z TF7yk2rlKU+76B1QgK8Lbj2hF38HAWwQg8JI3AYkfg== X-Google-Smtp-Source: ABhQp+Rw5De2bPAmDJTpuam+0+gCoaocmjuz2e1jcsswee0K69fxysVXf1jQbVy9Lp10voBegUZjaf/JxSKfNB56ogk= X-Received: by 10.80.191.15 with SMTP id f15mr10576685edk.82.1509743003711; Fri, 03 Nov 2017 14:03:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.140.163 with HTTP; Fri, 3 Nov 2017 14:03:23 -0700 (PDT) From: sreenaath vasudevan Date: Fri, 3 Nov 2017 14:03:23 -0700 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Valgrind with DPDK - Error in "EAL: Segment sanity check failed" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Nov 2017 21:03:24 -0000 Hi I am trying to run DPDK 2.2 example application "l2fwd" with valgrind and run in to the "Segment Sanity check failed" error. I tried with standard valgrind-3.10 and the modified one ( https://github.com/bisdn/valgrind-hugepages) and run in to the same issue Does anyone has any suggestions? Following is the error log ------------------------------------------------------- ~# valgrind /home/user/l2fwd -c 0x00ffffff -n 2 -- -q 10 -p 0xffffffff =3D=3D2002=3D=3D Memcheck, a memory error detector =3D=3D2002=3D=3D Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward e= t al. =3D=3D2002=3D=3D Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyri= ght info =3D=3D2002=3D=3D Command: /home/admin/l2fwd -c 0x00ffffff -n 2 -- -q 10 -p 0xffffffff =3D=3D2002=3D=3D =3D=3D2002=3D=3D Warning: set address range perms: large range [0x82f000, 0x20bb5000) (defined) EAL: Detected lcore 0 as core 0 on socket 0 EAL: Detected lcore 1 as core 1 on socket 0 EAL: Detected lcore 2 as core 2 on socket 0 EAL: Detected lcore 3 as core 3 on socket 0 EAL: Detected lcore 4 as core 4 on socket 0 EAL: Detected lcore 5 as core 5 on socket 0 EAL: Detected lcore 6 as core 6 on socket 0 EAL: Detected lcore 7 as core 8 on socket 0 EAL: Detected lcore 8 as core 9 on socket 0 EAL: Detected lcore 9 as core 10 on socket 0 EAL: Detected lcore 10 as core 11 on socket 0 EAL: Detected lcore 11 as core 12 on socket 0 EAL: Detected lcore 12 as core 13 on socket 0 EAL: Detected lcore 13 as core 14 on socket 0 EAL: Detected lcore 14 as core 0 on socket 0 EAL: Detected lcore 15 as core 1 on socket 0 EAL: Detected lcore 16 as core 2 on socket 0 EAL: Detected lcore 17 as core 3 on socket 0 EAL: Detected lcore 18 as core 4 on socket 0 EAL: Detected lcore 19 as core 5 on socket 0 EAL: Detected lcore 20 as core 6 on socket 0 EAL: Detected lcore 21 as core 8 on socket 0 EAL: Detected lcore 22 as core 9 on socket 0 EAL: Detected lcore 23 as core 10 on socket 0 EAL: Detected lcore 24 as core 11 on socket 0 EAL: Detected lcore 25 as core 12 on socket 0 EAL: Detected lcore 26 as core 13 on socket 0 EAL: Detected lcore 27 as core 14 on socket 0 EAL: Support maximum 128 logical core(s) by configuration. EAL: Detected 28 lcore(s) EAL: VFIO modules not all loaded, skip VFIO support=E2=80=A6 EAL: Searching for IVSHMEM devices... EAL: No IVSHMEM configuration found! EAL: Setting up physically contiguous memory... EAL: cannot open /proc/self/numa_maps, consider that all memory is in socket_id 0 =3D=3D2002=3D=3D Source and destination overlap in memcpy(0x21d1c710, 0x21d= 1c710, 4144) =3D=3D2002=3D=3D at 0x215C2FAE: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:= 1022) =3D=3D2002=3D=3D by 0x49CE01: sort_by_physaddr.isra.3 (eal_memory.c:747) =3D=3D2002=3D=3D by 0x49D9A0: rte_eal_hugepage_init (eal_memory.c:1198) =3D=3D2002=3D=3D by 0x4A92E7: rte_eal_memory_init (eal_common_memory.c:1= 45) =3D=3D2002=3D=3D by 0x49B6F4: rte_eal_init (eal.c:793) =3D=3D2002=3D=3D by 0x42A98E: main (main.c:550) =3D=3D2002=3D=3D EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x22200000 (size =3D 0x200000) EAL: Ask a virtual area of 0x4400000 bytes EAL: Virtual area found at 0x22400000 (size =3D 0x4400000) EAL: Segment sanity check failed: wrong physaddr at 0x22600000 (offset 0x200000: 0x0 (expected 0x200000) EAL: Failed to remap 2 MB pages PANIC in rte_eal_init(): Cannot init memory 6: [/home/admin/l2fwd() [0x42c658]] 5: [/lib/libc.so.6(__libc_start_main+0x10f) [0x3bb8e21b5f]] 4: [/home/admin/l2fwd(main+0x1f) [0x42a98f]] 3: [/home/admin/l2fwd(rte_eal_init+0xea7) [0x49bd87]] 2: [/home/admin/l2fwd(__rte_panic+0xc2) [0x425348]] 1: [/home/admin/l2fwd(rte_dump_stack+0x23) [0x4a2933]] =3D=3D2002=3D=3D =3D=3D2002=3D=3D Process terminating with default action of signal 6 (SIGAB= RT) =3D=3D2002=3D=3D at 0x3BB8E3512B: raise (raise.c:56) =3D=3D2002=3D=3D by 0x3BB8E3823E: abort (abort.c:89) =3D=3D2002=3D=3D by 0x42534C: __rte_panic (eal_debug.c:89) =3D=3D2002=3D=3D by 0x49BD86: rte_eal_init (eal.c:794) =3D=3D2002=3D=3D by 0x42A98E: main (main.c:550) =3D=3D2002=3D=3D =3D=3D2002=3D=3D HEAP SUMMARY: =3D=3D2002=3D=3D in use at exit: 296 bytes in 3 blocks =3D=3D2002=3D=3D total heap usage: 845 allocs, 842 frees, 811,613 bytes a= llocated =3D=3D2002=3D=3D =3D=3D2002=3D=3D =3D=3D2002=3D=3D LEAK SUMMARY: =3D=3D2002=3D=3D definitely lost: 0 bytes in 0 blocks =3D=3D2002=3D=3D indirectly lost: 0 bytes in 0 blocks =3D=3D2002=3D=3D possibly lost: 0 bytes in 0 blocks =3D=3D2002=3D=3D still reachable: 296 bytes in 3 blocks =3D=3D2002=3D=3D suppressed: 0 bytes in 0 blocks =3D=3D2002=3D=3D Rerun with --leak-check=3Dfull to see details of leaked me= mory =3D=3D2002=3D=3D =3D=3D2002=3D=3D For counts of detected and suppressed errors, rerun with: = -v =3D=3D2002=3D=3D ERROR SUMMARY: 19 errors from 1 contexts (suppressed: 0 fr= om 0) Aborted (core dumped) --=20 regards sreenaath