influxdb icon indicating copy to clipboard operation
influxdb copied to clipboard

Published x86_64 v3 binaries require AVX?

Open nwf opened this issue 6 months ago • 0 comments

I'm unsure whether this is deliberate and this bug should instead apply to https://github.com/influxdata/docs-v2/blob/67963c8e560ca38e7f61162ffbd2682b50300635/content/influxdb3/core/install.md , which simply offers amd64/x86_64 builds of Influxdb v3, suggesting pretty wide architectural support, but here goes...

Attempting to run the published InfluxDB v3 binaries [^0] on a lovely little machine with a Intel(R) Atom(TM) CPU C2758 @ 2.40GHz CPU dies a rather immediate and horrible death thus:

$ gdb --args /usr/bin/influxdb3
(gdb) r
Starting program: /usr/bin/influxdb3
warning: Error disabling address space randomization: Function not implemented
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction.
0x0000563fab2296b2 in influxdb3::main ()
(gdb) disass
   0x0000563fab229680 <+0>:     push   %rbp                       
   0x0000563fab229681 <+1>:     mov    %rsp,%rbp                              
   0x0000563fab229684 <+4>:     push   %r15                                   
   0x0000563fab229686 <+6>:     push   %r14
   0x0000563fab229688 <+8>:     push   %r13
   0x0000563fab22968a <+10>:    push   %r12
   0x0000563fab22968c <+12>:    push   %rbx
   0x0000563fab22968d <+13>:    mov    %rsp,%r11
   0x0000563fab229690 <+16>:    sub    $0xc000,%r11
   0x0000563fab229697 <+23>:    sub    $0x1000,%rsp
   0x0000563fab22969e <+30>:    movq   $0x0,(%rsp)
   0x0000563fab2296a6 <+38>:    cmp    %r11,%rsp
   0x0000563fab2296a9 <+41>:    jne    0x563fab229697 <_ZN9influxdb34main17h7952dff2a5a8128eE+23>
   0x0000563fab2296ab <+43>:    sub    $0x628,%rsp
=> 0x0000563fab2296b2 <+50>:    vpxor  %xmm0,%xmm0,%xmm0

Looking over at https://www.felixcloutier.com/x86/pxor, we see that this is indeed an AVX instruction, which this processor certainly does not have. The need for AVX was seemingly previously discovered in https://github.com/influxdata/influxdb/issues/26346 but apparently without prompting an update to the documentation.

ETA: Somehow I missed https://github.com/influxdata/influxdb/issues/26150 . Sorry!

[^0]: From the docker image sha256:62276b5841c54271f8f61aa75754dd094ac8889e0e3df13143eb2efa2f3436e3 specifically, but I tried again with https://dl.influxdata.com/influxdb/releases/influxdb3-core-3.1.0_linux_amd64.tar.gz just in case.

nwf avatar Jun 13 '25 04:06 nwf