From hb at biostat.ucsf.edu  Sun Jul 28 19:52:22 2013
From: hb at biostat.ucsf.edu (Henrik Bengtsson)
Date: Sun, 28 Jul 2013 10:52:22 -0700
Subject: [Rd] Core dump with R --encoding=foo -e 1 (non-existing
	encoding)
In-Reply-To: <51F5576C.5070802@gmail.com>
References: <CAFDcVCQKUQMs0D_TMLdDcONeEt90ws54UhFD17R8Lvsaumyqgw@mail.gmail.com>
	<51F5576C.5070802@gmail.com>
Message-ID: <CAFDcVCTS8Gm1PONKjGxw9=85K79WZ8yTxXM1zCY1iUK=5DaeFA@mail.gmail.com>

On Sun, Jul 28, 2013 at 10:39 AM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
> On 13-07-28 1:31 PM, Henrik Bengtsson wrote:
>>
>> Trying to launch R with a *non-existing* encoding core dumps/crashes,
>> e.g. R --encoding=foo -e 1.
>>
>> EXAMPLES:
>>
>>> R --encoding=foo -e 1
>>
>> R version 3.0.1 (2013-05-16) -- "Good Sport"
>> Copyright (C) 2013 The R Foundation for Statistical Computing
>> Platform: x86_64-apple-darwin10.8.0 (64-bit)
>> [...]
>>>
>>>
>>   *** caught segfault ***
>> address 0xffffffffffffffff, cause 'memory not mapped'
>> aborting ...
>> Segmentation fault
>>
>>
>> % R --encoding=foo -e 1
>> R version 3.0.0 (2013-04-03) -- "Masked Marvel"
>> Copyright (C) 2013 The R Foundation for Statistical Computing
>> Platform: x86_64-unknown-linux-gnu (64-bit)
>> [...]
>>>
>>> <ERROR: re-encoding failure from encoding 'foo'>
>>
>>
>> (not sure if the above is a core dump, but the expression is not
>> echoed/evaluated)
>>
>>
>> %R --encoding=foo -e 1 (also Rterm --encoding=foo -e 1)
>> R Under development (unstable) (2013-07-26 r63419) -- "Unsuffered
>> Consequences"
>> Copyright (C) 2013 The R Foundation for Statistical Computing
>> Platform: x86_64-w64-mingw32/x64 (64-bit)
>> [...]
>> [crashes "R for Windows terminal front-end"]
>>
>>
>> Should I file a bug report?
>
>
> The general rule is that if a crash like that occurs in both the release
> version (which is 3.0.1, not 3.0.0) and R-patched, you should file a bug
> report.
>
> If it only occurs in R-patched or in R-devel, then a message to this list is
> probably better.
>
> If it only occurs in the release but not R-patched, then no report is
> necessary:  it has been fixed.

Thanks for the prompt reply; I've submitted PR#15405
[https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15405]

/Henrik

>
> Duncan Murdoch
>



[Rd] Core dump with R --encoding=foo -e 1 (non-existing encoding)
Henrik Bengtsson