MichaelChirico / r-bugs

A ⚠️read-only⚠️mirror of https://bugs.r-project.org/
20 stars 0 forks source link

[BUGZILLA #13838] model.matrix memory problem #3646

Closed MichaelChirico closed 4 years ago

MichaelChirico commented 4 years ago

From: Torsten Hothorn <Torsten.Hothorn@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::>-muenchen.de>

Hi,

`model.matrix' might kill R with a segfault (on a illposed problem, but anyway):

mydf <- as.data.frame(sapply(1:40, function(i) gl(2, 100))) f <- as.formula(paste(∼ - 1 + ", paste(names(mydf), collapse = ":"), sep = "")) X <- model.matrix(f, data = mydf)

caught segfault address 0x18, cause 'memory not mapped' Segmentation fault

Best wishes, Torsten

--please do not edit the information below--

Version: platform = i686-pc-linux-gnu arch = i686 os = linux-gnu system = i686, linux-gnu status = major = 2 minor = 9.0 year = 2009 month = 04 day = 17 svn rev = 48333 language = R version.string = R version 2.9.0 (2009-04-17)

Locale: LC_CTYPE=en_GB.UTF-8;LC_NUMERIC=C;LC_TIME=en_GB.UTF-8;LC_COLLATE=en_GB.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_GB.UTF-8;LC_PAPER=en_GB.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_GB.UTF-8;LC_IDENTIFICATION=C

Search Path: .GlobalEnv, package:stats, package:graphics, package:grDevices, package:utils, package:datasets, package:methods, Autoloads, package:base


METADATA

MichaelChirico commented 4 years ago

NOTES: Fixed in 2.9.1 patched


METADATA

MichaelChirico commented 4 years ago

Audit (from Jitterbug): Wed Aug 5 16:16:59 2009 ripley changed notes Wed Aug 5 16:16:59 2009 ripley moved from incoming to Models-fixed


METADATA