SCM

[#6778] Another memory corruption / seg.fault

Date:
2022-08-31 11:11
Priority:
3
State:
Open
Submitted by:
Martin Maechler (mmaechler)
Assigned to:
Nobody (None)
Hardware:
None
Product:
None
Operating System:
Linux
Component:
None
Version:
None
Severity:
None
Resolution:
Accepted As Bug
URL:
Summary:
Another memory corruption / seg.fault

Detailed description
Found when looking for a repr.ex. for [#6610];
did not have time yet to run in the debugger or with valgrind. Just so we don't forget:


set.seed(47)
rN <- rsparsematrix(nrow=2669041, ncol=296289, nnz = 5288431, rand.x = NULL)
dim(X.X <- crossprod(rN)) ## 296289 296289
nnzero(X.X) # 10780717 = 10 mio = *twice* those in the [#6610] example
str(X.X)
## Formal class 'nsCMatrix' [package "Matrix"] with 6 slots
## ..@ i : int [1:5538503] 0 1 2 3 4 5 6 7 8 9 ...
## ..@ p : int [1:296290] 0 1 2 3 4 5 6 7 8 9 ...
## ..@ Dim : int [1:2] 296289 296289
## ..@ Dimnames:List of 2
## .. ..$ : NULL
## .. ..$ : NULL
## ..@ uplo : chr "U"
## ..@ factors : list()

qr(X.X)
## *** caught segfault ***
## address 0x119784650, cause 'memory not mapped'

Comments:

No Comments Have Been Posted

Attached Files:

Changes

No Changes Have Been Made to This Item

Thanks to:
Vienna University of Economics and Business Powered By FusionForge