Bug 15587 - Enable large matrices in rowsum.default()
Enable large matrices in rowsum.default()
Status: CLOSED FIXED
Product: R
Classification: Unclassified
Component: Wishlist
R 3.0.2
x86_64/x64/amd64 (64-bit) Linux
: P5 enhancement
Assigned To: R-core
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-02 15:51 UTC by Simen Gaure
Modified: 2013-12-03 09:37 UTC (History)
0 users

See Also:


Attachments
Small R-program triggering the overflow (124 bytes, text/plain)
2013-12-02 15:51 UTC, Simen Gaure
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simen Gaure 2013-12-02 15:51:46 UTC
Created attachment 1533 [details]
Small R-program triggering the overflow

The rowsum.default() for real matrices segfaults with matrices with more than 2^31 elements.

A fix is to declare offsetg and offset in rowsum() in src/main/unique.c as R_xlen_t


A similar problem may be present in rowsum_df(), but I have not looked at it.
Comment 1 Brian Ripley 2013-12-03 09:37:13 UTC
This example worked for me, but code has been changed.