You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "David Li (Jira)" <ji...@apache.org> on 2021/04/29 14:34:00 UTC

[jira] [Comment Edited] (ARROW-12587) [R][C++][Packaging] Illegal opcode error on aggregate Array/ChunkedArray of integer

    [ https://issues.apache.org/jira/browse/ARROW-12587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17335534#comment-17335534 ] 

David Li edited comment on ARROW-12587 at 4/29/21, 2:33 PM:
------------------------------------------------------------

According to a disassembler, it's crashing on an AVX512 instruction, so maybe Arrow is picking the wrong SIMD level, or was built with the wrong flags:
{noformat}
Raw Hex (zero bytes in bold):

62F1FF087BC0BF3800   

String Literal:

"\x62\xF1\xFF\x08\x7B\xC0\xBF\x38\x00"

Array Literal:

{ 0x62, 0xF1, 0xFF, 0x08, 0x7B, 0xC0, 0xBF, 0x38, 0x00 }
Disassembly:

0:  62 f1 ff 08 7b c0       vcvtusi2sd xmm0,xmm0,rax
6:  bf                      .byte 0xbf
7:  38 00                   cmp    BYTE PTR [rax],al
{noformat}
The backtrace ends at {{arrow::compute::aggregate::MeanImpl<arrow::Int32Type, (arrow::compute::SimdLevel::type)4>::Finalize}} and {{SimdLevel = 4}} corresponds to AVX512.


was (Author: lidavidm):
According to a disassembler, it's crashing on an AVX512 instruction, so maybe Arrow is picking the wrong SIMD level, or was built with the wrong flags:
{noformat}
Raw Hex (zero bytes in bold):

62F1FF087BC0BF3800   

String Literal:

"\x62\xF1\xFF\x08\x7B\xC0\xBF\x38\x00"

Array Literal:

{ 0x62, 0xF1, 0xFF, 0x08, 0x7B, 0xC0, 0xBF, 0x38, 0x00 }
Disassembly:

0:  62 f1 ff 08 7b c0       vcvtusi2sd xmm0,xmm0,rax
6:  bf                      .byte 0xbf
7:  38 00                   cmp    BYTE PTR [rax],al
{noformat}

> [R][C++][Packaging] Illegal opcode error on aggregate Array/ChunkedArray of integer
> -----------------------------------------------------------------------------------
>
>                 Key: ARROW-12587
>                 URL: https://issues.apache.org/jira/browse/ARROW-12587
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, Packaging, R
>    Affects Versions: 4.0.0
>            Reporter: Ian Cook
>            Priority: Major
>
> I see this error with the 4.0.0 version of the R package with the C++ library from either Autobrew or Homebrew:
> {code:java}
> sum(Array$create(c(1L, 2L))) 
> ## *** caught illegal operation ***
> ## address 0x109f1b45c, cause 'illegal opcode'{code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)