Bug 16136 - adding recursive attribute to an name and printing it leads to crash
Summary: adding recursive attribute to an name and printing it leads to crash
Status: NEW
Alias: None
Product: R
Classification: Unclassified
Component: Low-level (show other bugs)
Version: R 3.0.2
Hardware: All AIX
: P5 enhancement
Assignee: R-core
URL:
Depends on:
Blocks:
 
Reported: 2015-01-06 14:17 UTC by Frank Schwidom
Modified: 2015-01-06 14:17 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Schwidom 2015-01-06 14:17:56 UTC
> na <- as.name( 'a')
> attr( na, 'na') <- na
> na

......

 *** caught segfault ***
address 0xff018ffc, cause 'memory not mapped'

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Selection: 

---------------------------------------------------

Solution:

adding attributes to names should be forbidden, because 
of the global effect of this operation.

or:

if attaching attributes to names it could be only 
take effect in local environments. the printing
routine should then recognize the recursion and
print labels like "reader-macros" in common lisp.