Bug 14779 - Negative values in max option to print.default causes crash
Negative values in max option to print.default causes crash
Status: CLOSED FIXED
Product: R
Classification: Unclassified
Component: I/O
R 2.12.2
ix86 (32-bit) Windows 32-bit
: P5 critical
Assigned To: R-core
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-10 15:29 UTC by James
Modified: 2012-01-10 16:13 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James 2012-01-10 15:29:19 UTC
Using negative values for the max option in print.default causes the program to hang and ballooning memory usage in RGui on Windows XP 32-bit. Tested with Rterm also, same issue, but no memory ballooning.

Have recieved reports from others of the same problem on 2.14.0 Win 7, and 2.14.0-patched Linux as well.


Reproducable example:
print("hello", max=-1)
Comment 1 Duncan Murdoch 2012-01-10 21:02:48 UTC
On 10/01/2012 9:29 AM, r-bugs@r-project.org wrote:
> https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14779
>
>             Summary: Negative values in max option to print.default causes
>                      crash
>             Product: R
>             Version: R 2.12.2
>            Platform: ix86 (32-bit)
>          OS/Version: Windows 32-bit
>              Status: NEW
>            Severity: critical
>            Priority: P5
>           Component: I/O
>          AssignedTo: R-core@R-project.org
>          ReportedBy: jamesarnold1978@hotmail.com
>     Estimated Hours: 0.0
>
>
> Using negative values for the max option in print.default causes the program to
> hang and ballooning memory usage in RGui on Windows XP 32-bit. Tested with
> Rterm also, same issue, but no memory ballooning.
>
> Have recieved reports from others of the same problem on 2.14.0 Win 7, and
> 2.14.0-patched Linux as well.
>
>
> Reproducable example:
> print("hello", max=-1)
>

I see it too in R-devel, will fix.

Duncan Murdoch