Re: [Rd] with(x, Recall()) Crash

From: Duncan Murdoch <murdoch.duncan_at_gmail.com>
Date: Tue, 06 Jul 2010 18:45:03 -0400

On 06/07/2010 5:38 PM, McGehee, Robert wrote:
> R-devel,
> I discovered a segfault in my R code that boiled down to my incorrect
> use of the Recall() function embedded within a with() function. Since
> segfaults are generally bad things, even when it's the user's fault for
> writing nonsense code, I thought I'd pass along the offending code. I've
> tested the crash on R 2.11.1 (on Linux and Mac), but not in devel
> versions of R.
>

Thanks for posting that. It does still exist on R-devel, and as you say, it shouldn't. I'll fix it.

Duncan Murdoch
> HTH, Robert
>
>
>> x <- 1
>> with(x, Recall())
>>
> *** caught segfault ***
> address 0x1db, cause 'memory not mapped'
>
> Traceback:
> 1: eval(expr, envir, enclos)
> 2: Recall()
> 3: eval(expr, envir, enclos)
> 4: eval(substitute(expr), data, enclos = parent.frame())
> 5: with.default(x, Recall())
> 6: with(x, Recall())
>
>
>> R.version
>>
> _
> platform x86_64-unknown-linux-gnu
> arch x86_64
> os linux-gnu
> system x86_64, linux-gnu
> status
> major 2
> minor 11.1
> year 2010
> month 05
> day 31
> svn rev 52157
> language R
> version.string R version 2.11.1 (2010-05-31)
>
> Robert McGehee, CFA
> Geode Capital Management, LLC
> One Post Office Square, 28th Floor | Boston, MA | 02109
> Tel: 617/392-8396 Fax:617/476-6389
> mailto:robert.mcgehee_at_geodecapital.com
>
>
>
>> This e-mail, and any attachments hereto, are intended for use by the
>>
> addressee(s) only and may contain information that is (i) confidential
> information of Geode Capital Management, LLC and/or its affiliates,
> and/or (ii) proprietary information of Geode Capital Management, LLC
> and/or its affiliates. If you are not the intended recipient of this
> e-mail, or if you have otherwise received this e-mail in error, please
> immediately notify me by telephone (you may call collect), or by e-mail,
> and please permanently delete the original, any print outs and any
> copies of the foregoing. Any dissemination, distribution or copying of
> this e-mail is strictly prohibited.
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 06 Jul 2010 - 22:47:23 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 07 Jul 2010 - 11:40:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive