Skip to contentSkip to conversation

rte_cpu_get_flag_enabled() segmentation fault

DPDK/core Bug 1501 [email protected] 1 participant 1 message Jul 26, 2024

lore
Share & tools
lore
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=1501

            Bug ID: 1501
           Summary: rte_cpu_get_flag_enabled() segmentation fault
           Product: DPDK
           Version: 21.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: core
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

I create a rte_fib struct for routing purposes and I free it and recreate it periodically to update the routes. rte_fib_create() uses rte_cpu_get_flag_enabled() to check if my cpu has AVX512F or not and selects lookup function according to it. My cpu does not have AVX512F so rte_cpu_get_flag_enabled() returns 0 as expected and rte_fib_create() selects scalar lookup function. However, after a point rte_cpu_get_flag_enabled() causes a segmentation fault with SIGILL although it runs without any problem until that moment.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.