You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "mapleFU (via GitHub)" <gi...@apache.org> on 2023/03/08 08:37:04 UTC

[GitHub] [arrow] mapleFU opened a new issue, #34496: [C++][Parquet] Parquet Unittest `RecordReaderStressTest` may segment fault

mapleFU opened a new issue, #34496:
URL: https://github.com/apache/arrow/issues/34496

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   In `RecordReaderStressTest.StressTest`.
   
   ```c++
     std::default_random_engine gen(seed1);
     // Generate random number of pages with random number of values per page.
     std::uniform_int_distribution<int> d(0, 2000);
     const int num_pages = d(gen);
     const int levels_per_page = d(gen);
   ```
   
   If `num_pages == 0`, then, it will cause:
   
   ```c++
   // Generates pages from randomly generated data
   template <typename Type>
   static inline int MakePages(...) {
     int num_levels = levels_per_page * num_pages; // -> to 0
     ...
       // Create repitition levels
     if (max_rep_level > 0) {
       rep_levels[0] = 0; // --> invalid memory visit
     }
   ``` 
   
   
   This is introduced in https://github.com/apache/arrow/pull/14879
   
   ### Component(s)
   
   C++, Parquet


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org

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


[GitHub] [arrow] mapleFU commented on issue #34496: [C++][Parquet] Parquet Unittest `RecordReaderStressTest` may segment fault

Posted by "mapleFU (via GitHub)" <gi...@apache.org>.
mapleFU commented on issue #34496:
URL: https://github.com/apache/arrow/issues/34496#issuecomment-1459741510

   Reproduce:
   `RecordReaderStressTest.StressTest`: make seed1 == seed2 == 623


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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


[GitHub] [arrow] mapleFU commented on issue #34496: [C++][Parquet] Parquet Unittest `RecordReaderStressTest` may segment fault

Posted by "mapleFU (via GitHub)" <gi...@apache.org>.
mapleFU commented on issue #34496:
URL: https://github.com/apache/arrow/issues/34496#issuecomment-1459753310

   cc @fatemehp @emkornfield 


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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


[GitHub] [arrow] mapleFU commented on issue #34496: [C++][Parquet] Parquet Unittest `RecordReaderStressTest` may segment fault

Posted by "mapleFU (via GitHub)" <gi...@apache.org>.
mapleFU commented on issue #34496:
URL: https://github.com/apache/arrow/issues/34496#issuecomment-1459807578

   Submit a tiny fixing here: https://github.com/apache/arrow/pull/34497


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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


[GitHub] [arrow] westonpace closed issue #34496: [C++][Parquet] Parquet Unittest `RecordReaderStressTest` may segment fault

Posted by "westonpace (via GitHub)" <gi...@apache.org>.
westonpace closed issue #34496: [C++][Parquet] Parquet Unittest `RecordReaderStressTest` may segment fault
URL: https://github.com/apache/arrow/issues/34496


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org

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