From mtmorgan at fhcrc.org  Tue Sep 25 14:34:12 2012
From: mtmorgan at fhcrc.org (Martin Morgan)
Date: Tue, 25 Sep 2012 05:34:12 -0700
Subject: [Rd] Segmentation fault when options(max.print =
	.Machine$integer.max)
In-Reply-To: <20577.41712.251060.307898@stat.math.ethz.ch>
References: <5060EFE8.60609@fhcrc.org>
	<20577.41712.251060.307898@stat.math.ethz.ch>
Message-ID: <5061A4C4.6030103@fhcrc.org>

On 09/25/2012 05:26 AM, Martin Maechler wrote:
>
>> Seemed like a good idea at the time,
>
> I'm curious.  Why is it (setting max.print much too large)
> a good idea?

I usually set it considerably smaller (50) than default to conserve 
screen real estate, but then occasionally need to see more than my small 
setting (e.g., ls(getNamespace("Matrix"))) and don't want to guess at 
how much I want to see.

Thanks for your fix.

Martin

>
>> but
>>   >   options(max.print = .Machine$integer.max)
>>   >   1:10
>>            [1]
>> Program received signal SIGSEGV, Segmentation fault.
>
>> because of an integer overflow at src/main/printvector.c:176
>
>>   > sessionInfo()
>> R Under development (unstable) (2012-09-24 r60800)
>> Platform: x86_64-unknown-linux-gnu (64-bit)
>> ...
>
>> also R-patched, etc.
>
> Thank you, Martin.   I'm about to commit fixes for this.
> "another" Martin.
>
>
>> Martin
>> --
>> Computational Biology / Fred Hutchinson Cancer Research Center
>> 1100 Fairview Ave. N.
>> PO Box 19024 Seattle, WA 98109


-- 
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109

Location: Arnold Building M1 B861
Phone: (206) 667-2793



[Rd] Segmentation fault when options(max.print = .Machine$integer.max)
Martin Morgan