You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/04/07 16:55:55 UTC

[GitHub] [arrow] guocanwen opened a new issue #9934: core when read Int64Array

guocanwen opened a new issue #9934:
URL: https://github.com/apache/arrow/issues/9934


     _chunk = _column->chunk(_chunk_idx);
     auto items = static_cast<arrow::ListArray*>(_chunk.get());
     auto values = std::static_pointer_cast<arrow::Int64Array>(items->values());
     auto raw_values = values->data()->GetValues<int64_t>(1);  **//  or auto raw_values = values->raw_values()**
     int temp = 0;
     if (values->data()->GetValues<int64_t>(1) != values->raw_values()) {
             LOG(ERROR) << "Are you kidding!. a=" << values->data()->GetValues<int64_t>(1)
                      << ", b=" << values->raw_values();  //  The log outputs
      }
      for (int d = 0; d < values->length(); ++d) {
           temp += *(raw_values + d);   **// Come here after run a few times. Can not access memory by address**
      }
      LOG(ERROR) << "addr=" << (int64_t) _chunk.get() << ", temp=" << temp;
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [arrow] emkornfield closed issue #9934: core when read Int64Array

Posted by GitBox <gi...@apache.org>.
emkornfield closed issue #9934:
URL: https://github.com/apache/arrow/issues/9934


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [arrow] guocanwen commented on issue #9934: core when read Int64Array

Posted by GitBox <gi...@apache.org>.
guocanwen commented on issue #9934:
URL: https://github.com/apache/arrow/issues/9934#issuecomment-815071335


   core  dump every run


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [arrow] emkornfield commented on issue #9934: core when read Int64Array

Posted by GitBox <gi...@apache.org>.
emkornfield commented on issue #9934:
URL: https://github.com/apache/arrow/issues/9934#issuecomment-815409006


   Hi @guocanwen we prefer to handle questions on the [user@ or dev@](https://arrow.apache.org/community/).    The code is a little bit hard to read but does not seem unreasonable.  I would suggest removing the auto values so it is a little bit cleare (and it looks like github my have removed some '>' values.  It would also be useful to understand the source of these values.  For instance it looks like all of you casts are blind casts, it would be good to assert the expected types.
   
   going to resolve, please feel free to start a mailing list discussion (and provide the details above).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org