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

            Bug ID: 2033
           Summary: odp_cpuinfo_parser() causes segfault on systems where
                    cpu speed info is missing in sysinfo->model_str
           Product: OpenDataPlane - linux- generic reference
           Version: 1.7
          Hardware: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: critical
          Priority: ---
         Component: General ODP
          Assignee: lng-odp@lists.linaro.org
          Reporter: pasi.orp...@nokia.com

Overview: odp_cpuinfo_parser() expects to find "@ x.xGHz" in sysinfo->model_str
and when it fails causes segmentation fault.

The used environment was KVM virtualized guest in which the first 8 lines of
/proc/cpuinfo looks like this:

processor       : 47
vendor_id       : GenuineIntel
cpu family      : 6
model           : 42
model name      : Intel Xeon E312xx (Sandy Bridge)
stepping        : 1
microcode       : 0x1
cpu MHz         : 2394.230
...

No trailing "@ x.xGHz" in model name.

Steps to Reproduce:
1. System where the cpu model name does not include speed
2. Run any application than calls odp_init_global()

Results: SEGFAULT at application startup.

Line that segfaults:
at ../../../platform/linux-generic/arch/x86/odp_sysinfo_parse.c:27
27                              *(pos - 1) = '\0';

Additional Information:
The cpu MHz is displayed in its own field so why not get it from there?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to