Thanks for the debugging. I guess VMware doesn't properly emulate the
CPUID instruction.

Please do:
1) take a tarball from git master at
https://ci.inria.fr/hwloc/job/master-0-tarball/ and build it
2) export HWLOC_COMPONENTS=-x86 in your terminal
3) do utils/hwloc/hwloc-gather-cpuid
4) tar cfj cpuid.tbz2 foo and send that cpuid.tbz2

Step (3) might do an infinite loop for the same reason, please replace
for(i=0; ; i++) {
with
for(i=0; i<10; i++) {
everywhere in utils/hwloc/hwloc-gather-cpuid.c

This tarball will help me find what's buggy in VMware CPUID instruction.


In the meantime, you can fix your hwloc by exporting
HWLOC_COMPONENTS=-x86 in your environment.

If somebody knows how do detect vmware by looking under /proc or /sys,
we could use that to automatically set that environment variable.

thanks
Brice




Le 01/02/2016 05:59, Jianjun Wen a écrit :
> I did a debug build. Found it loops forever in this loop in
> topology-x86.c:404.
>   
>
> /* Get package/core/thread information from cpuid 0x0b
>    * (Intel x2APIC)
>    */
>   if (cpuid_type == intel && has_x2apic(features)) {
>     unsigned level, apic_nextshift, apic_number, apic_type, apic_id =
> 0, apic_shift = 0, id;
>     for (level = 0; ; level++) {
>       ecx = level;
>       eax = 0x0b;
>       hwloc_x86_cpuid(&eax, &ebx, &ecx, &edx);
>       if (!eax && !ebx)
>         break;
>     }
>
> On Sun, Jan 31, 2016 at 8:30 PM, Christopher Samuel
> <sam...@unimelb.edu.au <mailto:sam...@unimelb.edu.au>> wrote:
>
>     On 01/02/16 15:09, Jianjun Wen wrote:
>
>     > 0x00007ffff7bce13c in look_proc () from /lib64/libhwloc.so.5
>     >
>     > Always the same place.
>
>     pstack on the process when stuck might give more of an insight as it
>     should give more of a stack trace.
>
>     Also running lstopo under strace should show what it is trying to
>     do at
>     that point.
>
>     All the best,
>     Chris
>     --
>      Christopher Samuel        Senior Systems Administrator
>      VLSCI - Victorian Life Sciences Computation Initiative
>      Email: sam...@unimelb.edu.au <mailto:sam...@unimelb.edu.au>
>     Phone: +61 (0)3 903 55545 <tel:%2B61%20%280%293%20903%2055545>
>      http://www.vlsci.org.au/      http://twitter.com/vlsci
>
>     _______________________________________________
>     hwloc-users mailing list
>     hwloc-us...@open-mpi.org <mailto:hwloc-us...@open-mpi.org>
>     Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users
>     Link to this post:
>     http://www.open-mpi.org/community/lists/hwloc-users/2016/01/1251.php
>
>
>
>
> -- 
> -Jianjun Wen
> Wancube.com - 3D photography
> Phone: 408 888 7023
>
>
> _______________________________________________
> hwloc-users mailing list
> hwloc-us...@open-mpi.org
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users
> Link to this post: 
> http://www.open-mpi.org/community/lists/hwloc-users/2016/01/1252.php

Reply via email to