Bug 16136

Summary: adding recursive attribute to an name and printing it leads to crash
Product: R Reporter: Frank Schwidom <schwidom>
Component: Low-levelAssignee: R-core <R-core>
Status: NEW ---    
Severity: enhancement    
Priority: P5    
Version: R 3.0.2   
Hardware: All   
OS: AIX   

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.