<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 29 mars 2019 à 14:22, Bernhard Übelacker <<a href="mailto:bernhardu@mailbox.org" target="_blank">bernhardu@mailbox.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Jérémy,<br>
<br>
Am 29.03.19 um 12:44 schrieb Jérémy Lal:<br>
> This fails too:<br>
> yarnpkg add electron-spellchecker@1.1.2<br>
> <br>
> Are you all doing this on qemu or on real hardware ?<br>
> On i686 ?<br>
> I'm asking because buster does not support i586, nor does nodejs,<br>
> and it seems qemu defaults to something < i686 (to be verified).<br>
<br>
I tested just inside qemu.<br>
Teemu Ikonen's original report looks like on real hardware.<br>
<br>
Other cases where cpu features were related, the process<br>
usually gets a SIGILL on a instruction not supported.<br>
In this case we get SIGSEGV on a mov instruction, which<br>
is quite common I guess.<br>
So I am not sure, if in this case the cpu is the issue.<br>
<br>
Qemu can also use other cpu configurations like "-M max"<br>
or "-M host". That way it should be able to do all what the<br>
host is able to? Have not tested such a configuration.<br>
<br>
I have repeated the test on real hardware and it crashes<br>
the same as in the VM. I hope buster is supported on<br>
this hardware?<br></blockquote><div><br></div><div>Buster release notes:</div><div>"""</div><div>Nearly all x86-based (IA-32) processors still in use in personal computers are supported.</div><div>This also includes 32-bit AMD and VIA (former Cyrix) processors, and processors like the</div><div>Athlon XP and Intel P4 Xeon.<br>However, Debian GNU/Linux buster will not run on 586 (Pentium) or earlier processors.</div><div>"""</div><div><br></div><div>I let you check if that's all right for your host cpu.</div><div><br></div><div>So if i run qemu with the first P6 cpu that comes to mind, pentiumpro,</div><div>npm install electron-spellchecker@1.1.2</div><div>no longer crashes.</div><div><br></div><div>That doesn't prove there is no crash on a supported cpu, but that's a start.</div><div>Comparing the flags and address sizes might help.</div><div>Also upstream nodejs does not support 32bit cpu on linux platform.</div><div><br></div><div>Jérémy</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Kind regards,<br>
Bernhard<br>
<br>
<br>
<br>
Real hardware:<br>
root@debian-athlonx2-32:~# lscpu<br>
Architecture:        i686<br>
CPU op-mode(s):      32-bit, 64-bit<br>
Byte Order:          Little Endian<br>
Address sizes:       40 bits physical, 48 bits virtual<br>
CPU(s):              2<br>
On-line CPU(s) list: 0,1<br>
Thread(s) per core:  1<br>
Core(s) per socket:  2<br>
Socket(s):           1<br>
Vendor ID:           AuthenticAMD<br>
CPU family:          15<br>
Model:               107<br>
Model name:          AMD Athlon(tm) 64 X2 Dual Core Processor 5000+<br>
Stepping:            1<br>
CPU MHz:             1000.000<br>
CPU max MHz:         2600,0000<br>
CPU min MHz:         1000,0000<br>
BogoMIPS:            2009.24<br>
Virtualization:      AMD-V<br>
L1d cache:           64K<br>
L1i cache:           64K<br>
L2 cache:            512K<br>
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow rep_good cpuid extd_apicid pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch vmmcall lbrv<br>
<br>
Mär 29 14:10:10 debian-athlonx2-32 kernel: npm[5417]: segfault at 1085 ip b6f9023b sp bfd1a1b4 error 4 in libnode.so.64[b6eb4000+b4a000]<br>
Mär 29 14:10:10 debian-athlonx2-32 kernel: Code: 01 00 00 85 c0 74 16 8d 96 6c 01 00 00 39 d0 74 0c 83 ec 0c 50 e8 f5 14 f5 ff 83 c4 10 8b 86 4c 01 00 00 85 c0 74 0c 83 ec 0c <8b><br>
 10 50 ff 52 04 83 c4 10 8b 83 54 69 01 00 8b 4e 04 83 c0 08 89<br>
<br>
######<br>
<br>
<br>
Inside my qemu i386 VM with default cpu:<br>
root@debian:~# lscpu<br>
Architecture:        i686<br>
CPU op-mode(s):      32-bit<br>
Byte Order:          Little Endian<br>
Address sizes:       36 bits physical, 32 bits virtual<br>
CPU(s):              14<br>
On-line CPU(s) list: 0-13<br>
Thread(s) per core:  1<br>
Core(s) per socket:  1<br>
Socket(s):           14<br>
Vendor ID:           AuthenticAMD<br>
CPU family:          6<br>
Model:               6<br>
Model name:          QEMU Virtual CPU version 2.5+<br>
Stepping:            3<br>
CPU MHz:             2994.374<br>
BogoMIPS:            5988.74<br>
Hypervisor vendor:   KVM<br>
Virtualization type: full<br>
Flags:               fpu de pse tsc msr pae mce cx8 apic sep pge cmov pat mmx fxsr sse sse2 cpuid tsc_known_freq pni x2apic hypervisor vmmcall<br>
<br>
<br>
######<br>
<br>
<br>
$ qemu-system-i386 -cpu help<br>
...<br>
x86 host                  KVM processor with all supported host features  <br>
x86 max                   Enables all features supported by the accelerator in the current host<br>
</blockquote></div></div></div></div>